2013-03-28 21:13:40 +01:00
|
|
|
# Template build file for 'python3'.
|
|
|
|
pkgname=python3
|
2014-03-13 09:16:01 +01:00
|
|
|
version=3.3.5
|
|
|
|
revision=1
|
2013-03-28 21:13:40 +01:00
|
|
|
wrksrc="Python-${version}"
|
|
|
|
short_desc="Interpreted, interactive, object-oriented programming language (3.x series)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.python.org"
|
|
|
|
license="PSF"
|
|
|
|
distfiles="http://www.python.org/ftp/python/$version/Python-$version.tar.xz"
|
2014-03-13 09:16:01 +01:00
|
|
|
checksum=abe99b484434503d8b23be0f243ec27139e743a4798cd71c1dce3cf40e63b6e5
|
2013-03-28 21:13:40 +01:00
|
|
|
|
2014-02-27 14:54:19 +01:00
|
|
|
makedepends="libffi-devel readline-devel>=6.3 gdbm-devel openssl-devel
|
2013-11-20 07:52:19 +01:00
|
|
|
expat-devel sqlite-devel bzip2-devel zlib-devel liblzma-devel"
|
2013-03-28 21:13:40 +01:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python3|" Lib/cgi.py
|
|
|
|
rm -r Modules/expat
|
|
|
|
rm -r Modules/zlib
|
|
|
|
rm -r Modules/_ctypes/{darwin,libffi}*
|
|
|
|
}
|
|
|
|
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2014-02-11 12:13:42 +01:00
|
|
|
msg_red "${pkgname}-${version} cannot be cross compiled right now.\n"
|
2014-02-11 12:13:21 +01:00
|
|
|
exit 0
|
2013-03-28 21:13:40 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Native build
|
|
|
|
do_configure() {
|
|
|
|
unset LD CC AR AS RANLIB
|
|
|
|
|
2013-05-26 10:41:55 +02:00
|
|
|
./configure ${configure_args} --with-threads --enable-ipv6 \
|
2013-03-28 21:13:40 +01:00
|
|
|
--with-signal-module --enable-shared --with-system-ffi \
|
2014-02-12 08:40:16 +01:00
|
|
|
--with-system-expat --with-computed-gotos \
|
2013-03-28 21:13:40 +01:00
|
|
|
--with-system-expat --with-dbmliborder=gdbm:ndbm \
|
2014-02-12 08:40:16 +01:00
|
|
|
ac_cv_posix_semaphores_enabled=yes
|
2013-03-28 21:13:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2013-09-27 02:31:21 +02:00
|
|
|
make DESTDIR=${DESTDIR} install maninstall
|
2013-03-28 21:13:40 +01:00
|
|
|
install -Dm644 LICENSE ${DESTDIR}/usr/share/licenses/${pkgname}/LICENSE
|
|
|
|
|
2013-09-27 03:50:37 +02:00
|
|
|
rm -f ${DESTDIR}/usr/bin/2to3
|
|
|
|
|
2013-09-27 02:31:21 +02:00
|
|
|
ln -sf ../../libpython3.3m.so \
|
|
|
|
${DESTDIR}/usr/lib/python3.3/config-3.3m/libpython3.3m.so
|
2013-03-28 21:13:40 +01:00
|
|
|
}
|
2013-04-14 11:13:30 +02:00
|
|
|
|
|
|
|
python3-devel_package() {
|
2014-02-12 08:40:16 +01:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2013-09-17 09:11:04 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 11:13:30 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/bin/python*-config"
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-09-27 01:52:05 +02:00
|
|
|
vmove usr/include
|
|
|
|
mkdir -p ${DESTDIR}/usr/include/python3.3m
|
|
|
|
mv ${PKGDESTDIR}/usr/include/python3.3m/pyconfig.h \
|
|
|
|
${DESTDIR}/usr/include/python3.3m
|
2013-04-14 11:13:30 +02:00
|
|
|
}
|
|
|
|
}
|