From 6b8d36d043243b62df7cfd0913f46d568c01affe Mon Sep 17 00:00:00 2001 From: Alexey Pavlov Date: Mon, 16 Dec 2019 13:41:31 +0300 Subject: [PATCH] python2-sphinx: Drop package --- mingw-w64-python2-sphinx/PKGBUILD | 106 ------------------ mingw-w64-python2-sphinx/sphinx2-i686.install | 14 --- .../sphinx2-x86_64.install | 14 --- 3 files changed, 134 deletions(-) delete mode 100644 mingw-w64-python2-sphinx/PKGBUILD delete mode 100644 mingw-w64-python2-sphinx/sphinx2-i686.install delete mode 100644 mingw-w64-python2-sphinx/sphinx2-x86_64.install diff --git a/mingw-w64-python2-sphinx/PKGBUILD b/mingw-w64-python2-sphinx/PKGBUILD deleted file mode 100644 index c96206c969..0000000000 --- a/mingw-w64-python2-sphinx/PKGBUILD +++ /dev/null @@ -1,106 +0,0 @@ -# Maintainer: Alexey Pavlov -# Contributor: Ray Donnelly - -_pyname=Sphinx -_realname=sphinx -pkgbase=mingw-w64-python2-${_realname} -pkgname=("${MINGW_PACKAGE_PREFIX}-python2-${_realname}") -pkgver=1.8.5 -pkgrel=2 -pkgdesc="Python documentation generator (mingw-w64)" -arch=('any') -license=('BSD') -url="https://www.sphinx-doc.org/" -makedepends=( - "${MINGW_PACKAGE_PREFIX}-python2-colorama" - "${MINGW_PACKAGE_PREFIX}-python2-docutils" - "${MINGW_PACKAGE_PREFIX}-python2-imagesize" - "${MINGW_PACKAGE_PREFIX}-python2-jinja" - "${MINGW_PACKAGE_PREFIX}-python2-pygments" - "${MINGW_PACKAGE_PREFIX}-python2-requests" - "${MINGW_PACKAGE_PREFIX}-python2-setuptools" - "${MINGW_PACKAGE_PREFIX}-python2-six" - "${MINGW_PACKAGE_PREFIX}-python2-sqlalchemy" - "${MINGW_PACKAGE_PREFIX}-python2-whoosh" - ) -checkdepends=( - "${MINGW_PACKAGE_PREFIX}-python2-nose" - "${MINGW_PACKAGE_PREFIX}-python2-snowballstemmer" - "${MINGW_PACKAGE_PREFIX}-python2-babel" - "${MINGW_PACKAGE_PREFIX}-python2-sphinx-alabaster-theme" - "${MINGW_PACKAGE_PREFIX}-python2-sphinx_rtd_theme" - "${MINGW_PACKAGE_PREFIX}-python2-mock" - "${MINGW_PACKAGE_PREFIX}-python2-enum34" - ) -source=("${_realname}-${pkgver}.tar.gz"::"https://pypi.org/packages/source/S/${_pyname}/${_pyname}-${pkgver}.tar.gz") -sha256sums=('c7658aab75c920288a8cf6f09f244c6cfdae30d82d803ac1634d9f223a80ca08') - -prepare() { - cd ${srcdir} - rm -rf python2-build-${CARCH} | true - cp -r "${_pyname}-${pkgver}" "python2-build-${CARCH}" - - # change python2 interpreter - find python2-build-${CARCH} -type f -exec \ - sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \; - # change sphinx-binaries name in source code - find python2-build-${CARCH} -type f -name '*.py' -exec \ - sed -ri 's,(sphinx-(:?build|apidoc|autogen|quickstart)),\12,' {} \; - -} - -build() { - cd "${srcdir}" - msg "Python 2 build for ${CARCH}" - cd "${srcdir}/python2-build-${CARCH}" - ${MINGW_PREFIX}/bin/python2 setup.py build -} - -package_python2-sphinx() { - pkgdesc='Python2 documentation generator (mingw-w64)' - depends=("${MINGW_PACKAGE_PREFIX}-python2-babel" - "${MINGW_PACKAGE_PREFIX}-python2-certifi" - "${MINGW_PACKAGE_PREFIX}-python2-colorama" - "${MINGW_PACKAGE_PREFIX}-python2-chardet" - "${MINGW_PACKAGE_PREFIX}-python2-docutils" - "${MINGW_PACKAGE_PREFIX}-python2-idna" - "${MINGW_PACKAGE_PREFIX}-python2-imagesize" - "${MINGW_PACKAGE_PREFIX}-python2-jinja" - "${MINGW_PACKAGE_PREFIX}-python2-packaging" - "${MINGW_PACKAGE_PREFIX}-python2-pygments" - "${MINGW_PACKAGE_PREFIX}-python2-requests" - "${MINGW_PACKAGE_PREFIX}-python2-sphinx_rtd_theme" - "${MINGW_PACKAGE_PREFIX}-python2-snowballstemmer" - "${MINGW_PACKAGE_PREFIX}-python2-sphinx-alabaster-theme" - "${MINGW_PACKAGE_PREFIX}-python2-sphinxcontrib-websupport" - "${MINGW_PACKAGE_PREFIX}-python2-six" - "${MINGW_PACKAGE_PREFIX}-python2-sqlalchemy" - "${MINGW_PACKAGE_PREFIX}-python2-urllib3" - "${MINGW_PACKAGE_PREFIX}-python2-whoosh" - "${MINGW_PACKAGE_PREFIX}-python2-typing") - optdepends=("${MINGW_PACKAGE_PREFIX}-imagemagick: ext.imageconverter") - - cd "${srcdir}/python2-build-${CARCH}" - MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ - ${MINGW_PREFIX}/bin/python2 setup.py install -O1 --skip-build \ - --root="${pkgdir}" --prefix=${MINGW_PREFIX} - - local PREFIX_WIN=$(cygpath -wm ${MINGW_PREFIX}) - # fix python command in files - for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*.py; do - sed -e "s|/usr/bin/env |${MINGW_PREFIX}|g" \ - -e "s|${PREFIX_WIN}|${MINGW_PREFIX}|g" -i ${_f} - done - - install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}"/share/licenses/python2-sphinx/LICENSE -} - -package_mingw-w64-i686-python2-sphinx() { - install=${_realname}2-${CARCH}.install - package_python2-sphinx -} - -package_mingw-w64-x86_64-python2-sphinx() { - install=${_realname}2-${CARCH}.install - package_python2-sphinx -} \ No newline at end of file diff --git a/mingw-w64-python2-sphinx/sphinx2-i686.install b/mingw-w64-python2-sphinx/sphinx2-i686.install deleted file mode 100644 index 48c664ddf9..0000000000 --- a/mingw-w64-python2-sphinx/sphinx2-i686.install +++ /dev/null @@ -1,14 +0,0 @@ -post_install() { - cd mingw32 - local _prefix=$(pwd -W) - cd - - local _it - for _it in sphinx-apidoc2 sphinx-autogen2 sphinx-build2 sphinx-quickstart2; do - sed -e "s|/mingw32|${_prefix}|g" \ - -i ${_prefix}/bin/${_it}-script.py - done -} - -post_upgrade() { - post_install -} diff --git a/mingw-w64-python2-sphinx/sphinx2-x86_64.install b/mingw-w64-python2-sphinx/sphinx2-x86_64.install deleted file mode 100644 index 7ca273dd00..0000000000 --- a/mingw-w64-python2-sphinx/sphinx2-x86_64.install +++ /dev/null @@ -1,14 +0,0 @@ -post_install() { - cd mingw64 - local _prefix=$(pwd -W) - cd - - local _it - for _it in sphinx-apidoc2 sphinx-autogen2 sphinx-build2 sphinx-quickstart2; do - sed -e "s|/mingw64|${_prefix}|g" \ - -i ${_prefix}/bin/${_it}-script.py - done -} - -post_upgrade() { - post_install -}