Add python-2.5.2 template. Also allow to templates to setting LDFLAGS

if they need, as python needed to make shared modules resolve rpath.

--HG--
extra : convert_revision : 4afad8b2d37d8a644a3d77e5c0f8212c0cf1d33e
This commit is contained in:
Juan RP 2008-09-30 02:56:49 +02:00
parent 7ea1076ab3
commit 8adcb3fdb9
2 changed files with 25 additions and 2 deletions

View File

@ -365,7 +365,6 @@ fetch_tmpl_sources()
exit 1
else
if [ -n "$only_fetch" ]; then
echo "=> checksum ok"
exit 0
fi
fi
@ -438,7 +437,8 @@ build_tmpl_sources()
#
# For now, just set LDFLAGS.
#
export LDFLAGS="-L$PKGFS_MASTERDIR/lib -Wl,-R$PKGFS_MASTERDIR/lib"
LDFLAGS="$LDFLAGS -L$PKGFS_MASTERDIR/lib -Wl,-R$PKGFS_MASTERDIR/lib"
export LDFLAGS
#
# Packages using GNU autoconf

23
templates/python-2.5.2.tmpl Executable file
View File

@ -0,0 +1,23 @@
# Template build file for 'python-2.5.2'
pkgname=python-2.5.2
distfiles="Python-2.5.2"
extract_sufx=".tar.bz2"
url=http://www.python.org/ftp/python/2.5.2
configure_args="--with-threads --enable-shared"
# Python needs the following in LDFLAGS, otherwise modules don't work.
LDFLAGS="-L$PKGFS_BUILDDIR/$pkgname/ -Wl,-R$PKGFS_MASTERDIR/lib/python2.5"
build_style=gnu_configure
short_desc="Interpreted, interactive, object-oriented programming language"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=b23b02739833e6730799c5866e2b77aae884b63f
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."