diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2015-03-23 21:31:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-26 14:21:21 +0000 |
commit | 01a9c3156fe65d9b21bd225f7ebf837af165a9f6 (patch) | |
tree | 365820ddc362206d78011b2b5e03f0dd87980e13 /testing/py-pgen | |
parent | 31ee3a3a1d5b7d35036903f0d439a1f0d9a1e8c1 (diff) | |
download | aports-01a9c3156fe65d9b21bd225f7ebf837af165a9f6.tar.bz2 aports-01a9c3156fe65d9b21bd225f7ebf837af165a9f6.tar.xz |
testing/py-pgen: new aport
pgen is a build dependency for building cython with grammar support.
Diffstat (limited to 'testing/py-pgen')
-rw-r--r-- | testing/py-pgen/APKBUILD | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/testing/py-pgen/APKBUILD b/testing/py-pgen/APKBUILD new file mode 100644 index 0000000000..3aef475fde --- /dev/null +++ b/testing/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" |