diff options
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 33 |
3 files changed, 11 insertions, 36 deletions
@@ -8,28 +8,17 @@ pkgbase = python-stsci.sphinxext license = BSD license = LPPL makedepends = python-setuptools - makedepends = python2-setuptools makedepends = python-d2to1 - makedepends = python2-d2to1 makedepends = python-stsci.distutils - makedepends = python2-stsci.distutils source = https://files.pythonhosted.org/packages/source/s/stsci.sphinxext/stsci.sphinxext-1.2.1.tar.gz source = fix_new_sphinx.patch md5sums = d23f6ad057a4af86a6ce3771bddb1754 md5sums = fafd43af38820f2c7ea301287909e16e pkgname = python-stsci.sphinxext - depends = python depends = python-sphinx>=0.6.3 depends = python-numpydoc depends = python-matplotlib optdepends = python-sphinx>=0.6.3 optdepends = python-numpydoc: Provides support for Numpy-style docstring syntax optdepends = python-matplotlib: Provides matplotlib extensions for inline plotting - -pkgname = python2-stsci.sphinxext - depends = python2 - depends = python2-sphinx>=0.6.3 - depends = python2-numpydoc - depends = python2-matplotlib - diff --git a/.gitignore b/.gitignore index 1df7b618a7b3..a64321d82388 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ pkg *.tar.gz *.tar.bz2 *.part -*.pkg.tar.xz +*.log +*.pkg.tar.* @@ -1,14 +1,14 @@ # Maintainer: Astro Benzene <universebenzene at sina dot com> pkgbase=python-stsci.sphinxext _pyname=${pkgbase#python-} -pkgname=("python-${_pyname}" "python2-${_pyname}") +pkgname=("python-${_pyname}") pkgver=1.2.1 pkgrel=2 pkgdesc="A set of tools and templates to customize Sphinx for use in STScI projects" arch=('i686' 'x86_64') url="http://www.stsci.edu/institute/software_hardware/pyraf/stsci_python" license=('BSD' 'LPPL') -makedepends=('python-setuptools' 'python2-setuptools' 'python-d2to1' 'python2-d2to1' 'python-stsci.distutils' 'python2-stsci.distutils') +makedepends=('python-setuptools' 'python-d2to1' 'python-stsci.distutils') source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz" 'fix_new_sphinx.patch') md5sums=('d23f6ad057a4af86a6ce3771bddb1754' @@ -16,43 +16,28 @@ md5sums=('d23f6ad057a4af86a6ce3771bddb1754' prepare() { cd ${srcdir}/${_pyname}-${pkgver} - patch -Np1 -i "${srcdir}/fix_new_sphinx.patch" - cp -a ${srcdir}/${_pyname}-${pkgver}{,-py2} + patch -Np1 -i "${srcdir}/fix_new_sphinx.patch" } build() { - msg "Building Python2" - cd ${srcdir}/${_pyname}-${pkgver}-py2 - python2 setup.py build - - msg "Building Python3" cd ${srcdir}/${_pyname}-${pkgver} + python setup.py build } -check() { +#check() { # cd ${srcdir}/${_pyname}-${pkgver} # msg "Checking Python3" # python setup.py test # msg "Checking Python2" - cd ${srcdir}/${_pyname}-${pkgver}-py2 - python2 setup.py test -} - -package_python2-stsci.sphinxext() { - depends=('python2' 'python2-sphinx>=0.6.3' 'python2-numpydoc' 'python2-matplotlib') - cd ${srcdir}/${_pyname}-${pkgver}-py2 - - install -D -m644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}" - install -D -m644 README -t "${pkgdir}/usr/share/doc/${pkgname}" - python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 -} +# cd ${srcdir}/${_pyname}-${pkgver}-py2 +# python2 setup.py test +#} package_python-stsci.sphinxext() { - depends=('python') - depends=('python' 'python-sphinx>=0.6.3' 'python-numpydoc' 'python-matplotlib') + depends=('python-sphinx>=0.6.3' 'python-numpydoc' 'python-matplotlib') optdepends=('python-sphinx>=0.6.3' 'python-numpydoc: Provides support for Numpy-style docstring syntax' 'python-matplotlib: Provides matplotlib extensions for inline plotting') |