mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
extra/python: new aport
A high-level scripting language http://www.python.org
This commit is contained in:
parent
f6dbd5524c
commit
7206c19dfe
33
extra/python/APKBUILD
Normal file
33
extra/python/APKBUILD
Normal file
@ -0,0 +1,33 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=python
|
||||
pkgver=2.6.1
|
||||
pkgrel=0
|
||||
pkgdesc="A high-level scripting language"
|
||||
url="http://www.python.org"
|
||||
license="custom"
|
||||
subpackages="$pkgname-dev $pkgname-doc"
|
||||
depends="db expat openssl zlib"
|
||||
makedepends="db-dev expat-dev openssl-dev zlib-dev"
|
||||
source="http://www.$pkgname.org/ftp/$pkgname/$pkgver/Python-$pkgver.tar.bz2
|
||||
$pkgname-2.6-internal-expat.patch
|
||||
"
|
||||
|
||||
build() {
|
||||
cd "$srcdir/Python-$pkgver"
|
||||
for i in ../*.patch; do
|
||||
msg "Apply $i"
|
||||
patch -p1 < $i || return 1
|
||||
done
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--enable-shared \
|
||||
--with-threads \
|
||||
--enable-unicode \
|
||||
--disable-gdbm
|
||||
|
||||
make || return 1
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
md5sums="e81c2f0953aa60f8062c05a4673f2be0 Python-2.6.1.tar.bz2
|
||||
9d64df5e0a6aed149a792c7bff16e3d9 python-2.6-internal-expat.patch"
|
||||
33
extra/python/python-2.6-internal-expat.patch
Normal file
33
extra/python/python-2.6-internal-expat.patch
Normal file
@ -0,0 +1,33 @@
|
||||
--- a/setup.py 2008-04-22 12:12:24.613554757 +0300
|
||||
+++ b/setup.py 2008-04-22 12:13:09.276544063 +0300
|
||||
@@ -1035,18 +1035,15 @@
|
||||
#
|
||||
# More information on Expat can be found at www.libexpat.org.
|
||||
#
|
||||
- expatinc = os.path.join(os.getcwd(), srcdir, 'Modules', 'expat')
|
||||
- define_macros = [
|
||||
- ('HAVE_EXPAT_CONFIG_H', '1'),
|
||||
- ]
|
||||
+ # Use system expat
|
||||
+ expatinc = '/usr/include'
|
||||
+ define_macros = []
|
||||
|
||||
exts.append(Extension('pyexpat',
|
||||
define_macros = define_macros,
|
||||
include_dirs = [expatinc],
|
||||
+ libraries = ['expat'],
|
||||
sources = ['pyexpat.c',
|
||||
- 'expat/xmlparse.c',
|
||||
- 'expat/xmlrole.c',
|
||||
- 'expat/xmltok.c',
|
||||
],
|
||||
))
|
||||
|
||||
@@ -1058,6 +1055,7 @@
|
||||
exts.append(Extension('_elementtree',
|
||||
define_macros = define_macros,
|
||||
include_dirs = [expatinc],
|
||||
+ libraries = ['expat'],
|
||||
sources = ['_elementtree.c'],
|
||||
))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user