2009-03-20 07:44:28 +00:00
|
|
|
# Template build file for 'python'.
|
2008-10-04 04:29:49 +00:00
|
|
|
pkgname=python
|
2011-06-20 10:30:58 +00:00
|
|
|
version=2.7.2
|
2011-11-12 05:01:02 +00:00
|
|
|
revision=4
|
2011-09-19 08:10:37 +00:00
|
|
|
patch_args="-Np1"
|
2008-10-14 05:52:29 +00:00
|
|
|
wrksrc="Python-$version"
|
2009-04-18 23:20:47 +00:00
|
|
|
distfiles="http://www.python.org/ftp/python/$version/Python-$version.tar.bz2"
|
2008-09-30 00:56:49 +00:00
|
|
|
short_desc="Interpreted, interactive, object-oriented programming language"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-20 10:30:58 +00:00
|
|
|
homepage="http://www.python.org"
|
|
|
|
license="PSF"
|
|
|
|
checksum=5057eb067eb5b5a6040dbd0e889e06550bde9ec041dadaa855ee9490034cbdab
|
2008-09-30 00:56:49 +00: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 22:47:19 +00:00
|
|
|
|
2010-04-23 13:28:45 +00:00
|
|
|
stow_copy=yes
|
2011-10-05 14:42:03 +00:00
|
|
|
pycompile_dirs="usr/lib/python2.7"
|
2009-11-22 07:31:44 +00:00
|
|
|
subpackages="$pkgname-devel"
|
2010-04-23 13:28:45 +00:00
|
|
|
|
2010-11-02 10:44:22 +00:00
|
|
|
|
2010-01-24 12:39:01 +00:00
|
|
|
Add_dependency build libffi-devel
|
|
|
|
Add_dependency build zlib-devel
|
|
|
|
Add_dependency build readline-devel
|
|
|
|
Add_dependency build bzip2-devel
|
|
|
|
Add_dependency build gdbm-devel
|
|
|
|
Add_dependency build openssl-devel
|
|
|
|
Add_dependency build expat-devel
|
|
|
|
Add_dependency build db-devel
|
2010-11-17 20:07:13 +00:00
|
|
|
Add_dependency build ncurses-devel
|
2010-01-24 12:39:01 +00:00
|
|
|
Add_dependency build sqlite-devel
|
2009-10-16 14:53:38 +00:00
|
|
|
|
2011-09-19 08:10:37 +00:00
|
|
|
do_configure()
|
2009-10-16 14:53:38 +00:00
|
|
|
{
|
2011-09-19 08:10:37 +00:00
|
|
|
# Enable built-in SQLite3 module to load extensions (Arch fix FS#22122)
|
|
|
|
sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
|
|
|
|
|
|
|
|
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 \
|
|
|
|
--with-wctype-functions
|
2009-10-16 14:53:38 +00:00
|
|
|
}
|
2010-04-22 07:25:01 +00:00
|
|
|
|
2011-09-19 08:10:37 +00:00
|
|
|
do_build()
|
2010-04-22 07:25:01 +00:00
|
|
|
{
|
2011-09-19 08:10:37 +00:00
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
|
2010-04-22 07:25:01 +00:00
|
|
|
chmod 755 ${DESTDIR}/usr/lib/libpython*.so*
|
2011-06-20 10:30:58 +00:00
|
|
|
install -Dm644 LICENSE ${DESTDIR}/usr/share/licenses/python/LICENSE
|
2010-04-22 07:25:01 +00:00
|
|
|
}
|