diff options
author | Kiyoshi Aman <kiyoshi.aman@gmail.com> | 2011-02-03 19:02:49 -0500 |
---|---|---|
committer | Jeff Bilyk <jbilyk@gmail.com> | 2011-02-07 20:17:46 +0000 |
commit | 6008425f8c19757071b8a9e48607ad6477f8caab (patch) | |
tree | 92597789a99a441e2fc51359dc6156a7fd6ccd21 /testing | |
parent | a021bd103901c8abcae345821f843563283cc2c6 (diff) | |
download | aports-6008425f8c19757071b8a9e48607ad6477f8caab.tar.bz2 aports-6008425f8c19757071b8a9e48607ad6477f8caab.tar.xz |
testing/python3: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/python3/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/python3/APKBUILD b/testing/python3/APKBUILD new file mode 100644 index 0000000000..fc13a83e83 --- /dev/null +++ b/testing/python3/APKBUILD @@ -0,0 +1,48 @@ +# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com> +pkgname=python3 +pkgver=3.1.3 +pkgrel=0 +pkgdesc="A high-level scripting language" +url="http://www.python.org" +arch="all" +license="custom" +subpackages="$pkgname-dev $pkgname-doc" #$pkgname-tests" +depends= +makedepends="expat-dev openssl-dev zlib-dev ncurses-dev bzip2-dev + sqlite-dev libffi-dev tcl-dev" +source="http://www.python.org/ftp/python/$pkgver/Python-$pkgver.tar.bz2" + +build() { + cd "$srcdir/Python-$pkgver" + ./configure --prefix=/usr \ + --enable-shared \ + --with-threads \ + --with-system-ffi \ + --enable-unicode=ucs4 \ + --with-dbmliborder=ndbm \ + || return 1 + + make || return 1 +} + +package() { + cd "$srcdir/Python-$pkgver" + make -j1 DESTDIR="$pkgdir" install + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +#_mv_files() { +# local i +# for i in "$@"; do +# mkdir -p "$subpkgdir"/${i%/*} +# mv -f "$pkgdir"/$i "$subpkgdir"/$i || return 1 +# done +#} +# +#tests() { +# pkgdesc="The test modules from the main python package" +# cd "$pkgdir" +# _mv_files $(find usr/lib -type d -name 'test*') +#} + +md5sums="ad5e5f1c07e829321e0a015f8cafe245 Python-3.1.3.tar.bz2" |