From 611cd058ce3e0f699999e2fcf4a3dc1270f4cba8 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 13 Nov 2010 15:14:49 +0100 Subject: [PATCH] Python: add metafile support, cleanups, thanks to cowbalt Signed-off-by: Stephan Raue --- packages/lang/Python/build | 8 -------- packages/lang/Python/install | 5 ----- packages/lang/Python/meta | 17 +++++++++++++++++ ...ile.diff => Python-2.6.6-001_xcompile.patch} | 0 ...=> Python-2.6.6-002_xcompile_path-0.1.patch} | 0 ..._xcompile_disable_modules_and_ssl-0.1.patch} | 0 ...iff => Python-2.6.6-015_no_static_lib.patch} | 0 packages/lang/Python/url | 1 - 8 files changed, 17 insertions(+), 14 deletions(-) create mode 100644 packages/lang/Python/meta rename packages/lang/Python/patches/{001-Python-2.6.6-xcompile.diff => Python-2.6.6-001_xcompile.patch} (100%) rename packages/lang/Python/patches/{002-Python-2.6.6-xcompile_path-0.1.diff => Python-2.6.6-002_xcompile_path-0.1.patch} (100%) rename packages/lang/Python/patches/{003-Python-2.6.6-xcompile-disable_modules_and_ssl-0.1.diff => Python-2.6.6-003_xcompile_disable_modules_and_ssl-0.1.patch} (100%) rename packages/lang/Python/patches/{015-python-2.6.6-no-static-lib.diff => Python-2.6.6-015_no_static_lib.patch} (100%) delete mode 100644 packages/lang/Python/url diff --git a/packages/lang/Python/build b/packages/lang/Python/build index 28d84aa77c..ad490b7b88 100755 --- a/packages/lang/Python/build +++ b/packages/lang/Python/build @@ -2,14 +2,6 @@ . config/options $1 -$SCRIPTS/build toolchain -$SCRIPTS/build expat-host -$SCRIPTS/build sqlite -$SCRIPTS/build expat -$SCRIPTS/build openssl -$SCRIPTS/build zlib -$SCRIPTS/build libffi - PY_DISABLED_MODULES="readline _curses _curses_panel _tkinter nis gdbm bsddb _codecs_kr _codecs_jp _codecs_cn _codecs_tw _codecs_hk" cd $PKG_BUILD diff --git a/packages/lang/Python/install b/packages/lang/Python/install index 5dea9153ff..382aefaa08 100755 --- a/packages/lang/Python/install +++ b/packages/lang/Python/install @@ -2,11 +2,6 @@ . config/options $1 -$SCRIPTS/install openssl -$SCRIPTS/install zlib -$SCRIPTS/install libffi -$SCRIPTS/install file # needed by platform.architecture() - PYTHON_VERSION=2.6 PYTHON_LIB_DIR=$INSTALL/usr/lib/python$PYTHON_VERSION diff --git a/packages/lang/Python/meta b/packages/lang/Python/meta new file mode 100644 index 0000000000..1ed3a6d81f --- /dev/null +++ b/packages/lang/Python/meta @@ -0,0 +1,17 @@ +PKG_NAME="Python" +PKG_VERSION="2.6.6" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="OSS" +PKG_SITE="http://www.python.org/" +PKG_URL="http://www.python.org/ftp/python/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS="openssl zlib libffi file" +PKG_BUILD_DEPENDS="toolchain expat-host sqlite expat openssl zlib libffi" +PKG_PRIORITY="optional" +PKG_SECTION="lang" +PKG_SHORTDESC="python: The Python programming language" +PKG_LONGDESC="Python is an interpreted object-oriented programming language, and is often compared with Tcl, Perl, Java or Scheme." +PKG_IS_ADDON="no" + + + diff --git a/packages/lang/Python/patches/001-Python-2.6.6-xcompile.diff b/packages/lang/Python/patches/Python-2.6.6-001_xcompile.patch similarity index 100% rename from packages/lang/Python/patches/001-Python-2.6.6-xcompile.diff rename to packages/lang/Python/patches/Python-2.6.6-001_xcompile.patch diff --git a/packages/lang/Python/patches/002-Python-2.6.6-xcompile_path-0.1.diff b/packages/lang/Python/patches/Python-2.6.6-002_xcompile_path-0.1.patch similarity index 100% rename from packages/lang/Python/patches/002-Python-2.6.6-xcompile_path-0.1.diff rename to packages/lang/Python/patches/Python-2.6.6-002_xcompile_path-0.1.patch diff --git a/packages/lang/Python/patches/003-Python-2.6.6-xcompile-disable_modules_and_ssl-0.1.diff b/packages/lang/Python/patches/Python-2.6.6-003_xcompile_disable_modules_and_ssl-0.1.patch similarity index 100% rename from packages/lang/Python/patches/003-Python-2.6.6-xcompile-disable_modules_and_ssl-0.1.diff rename to packages/lang/Python/patches/Python-2.6.6-003_xcompile_disable_modules_and_ssl-0.1.patch diff --git a/packages/lang/Python/patches/015-python-2.6.6-no-static-lib.diff b/packages/lang/Python/patches/Python-2.6.6-015_no_static_lib.patch similarity index 100% rename from packages/lang/Python/patches/015-python-2.6.6-no-static-lib.diff rename to packages/lang/Python/patches/Python-2.6.6-015_no_static_lib.patch diff --git a/packages/lang/Python/url b/packages/lang/Python/url deleted file mode 100644 index 5e2c79aafd..0000000000 --- a/packages/lang/Python/url +++ /dev/null @@ -1 +0,0 @@ -http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tar.bz2