blob: 3aef475fde1090674d8bd0d61345f20520715e66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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"
|