2009-03-20 08:44:28 +01:00
|
|
|
# Template build file for 'python'.
|
2008-10-04 06:29:49 +02:00
|
|
|
pkgname=python
|
2012-04-15 09:21:34 +02:00
|
|
|
version=2.7.3
|
2012-09-19 14:55:33 +02:00
|
|
|
revision=2
|
2008-10-14 07:52:29 +02:00
|
|
|
wrksrc="Python-$version"
|
2012-04-15 09:21:34 +02:00
|
|
|
distfiles="http://www.python.org/ftp/python/$version/Python-$version.tar.xz"
|
2013-01-27 10:38:21 +01:00
|
|
|
makedepends="libffi-devel readline-devel gdbm-devel openssl-devel
|
|
|
|
expat-devel db-devel sqlite-devel"
|
2008-09-30 02:56:49 +02:00
|
|
|
short_desc="Interpreted, interactive, object-oriented programming language"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-20 12:30:58 +02:00
|
|
|
homepage="http://www.python.org"
|
|
|
|
license="PSF"
|
2012-04-15 09:21:34 +02:00
|
|
|
checksum=61d36be58e9e9c733c49d7b76858d5c08e2c63a84f2066b29d35d3521057c985
|
2008-09-30 02:56:49 +02:00
|
|
|
long_desc="
|
|
|
|
Python is an interpreted, interactive, object-oriented programming language
|
|
|
|
that combines remarkable power with very clear syntax. For an introduction
|
|
|
|
to programming in Python you are referred to the Python Tutorial. The Python
|
|
|
|
Library Reference documents built-in and standard types, constants, functions
|
|
|
|
and modules. Finally, the Python Reference Manual describes the syntax and
|
|
|
|
and semantics of the core language in (perhaps too) much detail.
|
|
|
|
|
|
|
|
Python's basic power can be extended with your own modules written in C or
|
|
|
|
C++. On most systems such modules may be dynamically loaded. Python is also
|
|
|
|
adaptable as an extension language for existing applications."
|
2009-02-12 23:47:19 +01:00
|
|
|
|
2011-10-05 16:42:03 +02:00
|
|
|
pycompile_dirs="usr/lib/python2.7"
|
2009-11-22 08:31:44 +01:00
|
|
|
subpackages="$pkgname-devel"
|
2010-04-23 15:28:45 +02:00
|
|
|
|
2011-11-17 16:03:32 +01:00
|
|
|
do_configure() {
|
2011-09-19 10:10:37 +02:00
|
|
|
# Enable built-in SQLite3 module to load extensions (Arch fix FS#22122)
|
|
|
|
sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
|
|
|
|
|
2012-09-19 14:55:33 +02:00
|
|
|
# Force posix semaphores by default, sem_open requires /dev/shm and
|
|
|
|
# it's not mounted in chroot.
|
2011-09-19 10:10:37 +02:00
|
|
|
export OPT="${XBPS_CFLAGS}"
|
|
|
|
./configure ${CONFIGURE_SHARED_ARGS} --with-threads \
|
|
|
|
--enable-ipv6 --with-signal-module --enable-shared \
|
|
|
|
--with-system-ffi --enable-unicode=ucs4 --with-system-expat \
|
2012-09-19 14:55:33 +02:00
|
|
|
--with-wctype-functions ac_cv_posix_semaphores_enabled=yes
|
2009-10-16 16:53:38 +02:00
|
|
|
}
|
2010-04-22 09:25:01 +02:00
|
|
|
|
2011-11-17 16:03:32 +01:00
|
|
|
do_build() {
|
2011-09-19 10:10:37 +02:00
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
2011-11-17 16:03:32 +01:00
|
|
|
do_install() {
|
2011-09-19 10:10:37 +02:00
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
|
2010-04-22 09:25:01 +02:00
|
|
|
chmod 755 ${DESTDIR}/usr/lib/libpython*.so*
|
2011-06-20 12:30:58 +02:00
|
|
|
install -Dm644 LICENSE ${DESTDIR}/usr/share/licenses/python/LICENSE
|
2010-04-22 09:25:01 +02:00
|
|
|
}
|