Python 2 Removal - Round 1 (#1866)
* gpgme: Drop the Python 2 package * dtc: Build with Python 3 The package in the repo is already build using Python 3, so this basically just fixes the dependency list. * Drop jhbuild-git This is a really old version and upstream doesn't target cygwin, so just drop it. * python-colorama: Drop Python 2 package * python-mako: Drop Python 2 package * python-pyalpm: Update to 0.9.1 and drop Python 2 package 0.8 did no longer build with the current pacman so I had to update as well to drop Python 2. * python-pygments: Drop Python 2 package * python2-pathlib: Remove package Unused * python2-scandir: Remove package Unused * python-beaker: Drop Python 2 package * python-markupsafe: Drop Python 2 package * python-mock: Drop Python 2 package * python2-funcsigs: Remove package Unused * python-nose: Drop Python 2 package Also adds a conflict with python2-nose because the man pages and main script got moved to the Python 3 package. * python2-unittest2: Remove package Unused * python2-traceback2: Remove package Unused * python2-linecache2: Remove package Unused * python-pbr: Drop Python 2 package
This commit is contained in:
@@ -1,15 +1,19 @@
|
||||
# Maintainer: João Guerra <joca.bt@gmail.com>
|
||||
# Maintainer: João Guerra <joca.bt@gmail.com>
|
||||
|
||||
_pyname=Pygments
|
||||
pkgbase="python-pygments"
|
||||
pkgname=("python2-pygments" "python3-pygments")
|
||||
pkgname=("python-pygments")
|
||||
pkgver=2.4.2
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="A syntax highlighting engine written in Python"
|
||||
arch=("i686" "x86_64")
|
||||
url="http://pygments.org/"
|
||||
license=('BSD')
|
||||
makedepends=("python2-setuptools" "python3-setuptools")
|
||||
depends=("python")
|
||||
makedepends=("python3-setuptools")
|
||||
provides=("python3-pygments")
|
||||
conflicts=("python3-pygments")
|
||||
replaces=("python3-pygments")
|
||||
source=("https://pypi.python.org/packages/source/P/Pygments/Pygments-${pkgver}.tar.gz")
|
||||
noextract=("Pygments-${pkgver}.tar.gz")
|
||||
sha256sums=('881c4c157e45f30af185c1ffe8d549d48ac9127433f2c380c24b84572ad66297')
|
||||
@@ -22,22 +26,10 @@ prepare () {
|
||||
|
||||
}
|
||||
|
||||
package_python2-pygments () {
|
||||
depends=("python2")
|
||||
install="python2-pygments.install"
|
||||
|
||||
package () {
|
||||
cd "${_pyname}-${pkgver}"
|
||||
/usr/bin/python2 setup.py install --root="${pkgdir}" -O1
|
||||
mv "${pkgdir}/usr/bin/pygmentize" "${pkgdir}/usr/bin/pygmentize2"
|
||||
install -Dm644 external/pygments.bashcomp "${pkgdir}/usr/share/bash-completion/completions/pygmentize2"
|
||||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
|
||||
package_python3-pygments () {
|
||||
depends=("python3")
|
||||
|
||||
cd "${_pyname}-${pkgver}"
|
||||
/usr/bin/python3 setup.py install --root="${pkgdir}" -O1
|
||||
/usr/bin/python setup.py install --root="${pkgdir}" -O1
|
||||
install -Dm644 external/pygments.bashcomp "${pkgdir}/usr/share/bash-completion/completions/pygmentize"
|
||||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
post_install() {
|
||||
echo "pygmentize has been renamed to pygmentize2"
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install "$1"
|
||||
}
|
||||
Reference in New Issue
Block a user