mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 22:00:09 +02:00
Apply several fixes to python.
* Adjust site-packages to be writable (by moving it into non-packaged hierarch). * Add vendor-packages directory, where packaged python modules shall be installed. * Add support for automatically installing modules into vendor directory when HAIKU_USE_VENDOR_DIRECTORIES is set. * Drop references to 'common'-hierarchy.
This commit is contained in:
@@ -9,10 +9,10 @@ LICENSE="Python"
|
||||
COPYRIGHT="1990-2012, Python Software Foundation"
|
||||
SRC_URI="http://www.python.org/ftp/python/2.6.8/Python-2.6.8.tar.bz2"
|
||||
CHECKSUM_MD5="c6e0420a21d8b23dee8b0195c9b9a125"
|
||||
REVISION="5"
|
||||
REVISION="6"
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
|
||||
PATCHES="python-2.6.8.patch"
|
||||
PATCHES="python-2.6.8.patchset"
|
||||
|
||||
PROVIDES="
|
||||
python = $portVersion compat >= 2.6
|
||||
@@ -59,6 +59,10 @@ BUILD_PREREQUIRES="
|
||||
|
||||
SOURCE_DIR="Python-2.6.8"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
non-packaged/lib/python2.6/site-packages directory keep-old
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.in
|
||||
@@ -89,6 +93,13 @@ INSTALL()
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs libpython2.6
|
||||
|
||||
mkdir -p $prefix/lib/python2.6/vendor-packages
|
||||
echo 'This directory contains packaged python modules.' \
|
||||
>$prefix/lib/python2.6/vendor-packages/README
|
||||
|
||||
mkdir -p $prefix/non-packaged/lib/python2.6
|
||||
mv $prefix/lib/python2.6/site-packages $prefix/non-packaged/lib/python2.6/
|
||||
}
|
||||
|
||||
TEST()
|
||||
|
||||
Reference in New Issue
Block a user