diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-04-24 12:13:55 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-04-24 12:13:55 +0200 |
commit | 5e36a851493d68114d1763799f77a0b7a55b4b2e (patch) | |
tree | 8967f660596e32653da28e382a7d35f36ead565f /main/py-pgen | |
parent | 47e958aa12b2c1e04f70d03ae3a4c5c4929742df (diff) | |
download | aports-5e36a851493d68114d1763799f77a0b7a55b4b2e.tar.bz2 aports-5e36a851493d68114d1763799f77a0b7a55b4b2e.tar.xz |
testing/py-pgen: move to main
Diffstat (limited to 'main/py-pgen')
-rw-r--r-- | main/py-pgen/APKBUILD | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/main/py-pgen/APKBUILD b/main/py-pgen/APKBUILD new file mode 100644 index 0000000000..3aef475fde --- /dev/null +++ b/main/py-pgen/APKBUILD @@ -0,0 +1,53 @@ +# Contributor: Stuart Cardall <developer@it-offshore.co.uk> +# Maintainer: Stuart Cardall <developer@it-offshore.co.uk> +pkgname=py-pgen +pkgver=2.7.9 +_verbase=${pkgver%.*} +pkgrel=0 +pkgdesc="Python Parser Generator" +url="http://www.python.org" +arch="all" +license="custom" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +source="http://www.python.org/ftp/python/$pkgver/Python-$pkgver.tar.xz" + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$srcdir/Python-$pkgver" + export OPT="$CFLAGS" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --enable-shared \ + --with-threads \ + --enable-ipv6 \ + --with-system-ffi \ + --with-system-expat \ + --with-system-zlib \ + --enable-unicode=ucs4 \ + || return 1 + make Parser/pgen || return 1 +} + +package() { + cd "$srcdir/Python-$pkgver" + mkdir -p "$pkgdir"/usr/bin + install -Dm755 Parser/pgen "$pkgdir"/usr/bin/pgen +} + +md5sums="38d530f7efc373d64a8fb1637e3baaa7 Python-2.7.9.tar.xz" +sha256sums="90d27e14ea7e03570026850e2e50ba71ad20b7eb31035aada1cf3def8f8d4916 Python-2.7.9.tar.xz" +sha512sums="6939182463272a6bb9da0e327bfb9efc574a87820f2ae39eaf02d9fae053dbe0004330e916e6828becfef94cbe294acb0a88a600f8930b99b94fcfc4efc44ff4 Python-2.7.9.tar.xz" |