From 87336380fe1db71591da48d61c840f0ec88e65e9 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 21 Jan 2014 16:28:20 +0100 Subject: [PATCH] setuptools: convert to new package format Signed-off-by: Stephan Raue --- .../python/devel/distutilscross/package.mk | 2 +- packages/python/devel/setuptools/build | 25 ------------------- .../devel/setuptools/{meta => package.mk} | 14 ++++++++--- 3 files changed, 12 insertions(+), 29 deletions(-) delete mode 100755 packages/python/devel/setuptools/build rename packages/python/devel/setuptools/{meta => package.mk} (91%) diff --git a/packages/python/devel/distutilscross/package.mk b/packages/python/devel/distutilscross/package.mk index 9d370fc9d8..c4a1ca7e7c 100644 --- a/packages/python/devel/distutilscross/package.mk +++ b/packages/python/devel/distutilscross/package.mk @@ -24,7 +24,7 @@ PKG_LICENSE="GPL" PKG_SITE="http://bitbucket.org/lambacck/distutilscross/" PKG_URL="http://pypi.python.org/packages/source/d/distutilscross/$PKG_NAME-$PKG_VERSION.tar.gz" PKG_DEPENDS_HOST="" -PKG_BUILD_DEPENDS_HOST="toolchain Python setuptools" +PKG_BUILD_DEPENDS_HOST="toolchain Python setuptools:host" PKG_PRIORITY="optional" PKG_SECTION="python/devel" PKG_SHORTDESC="distutilscross: Cross Compile Python Extensions" diff --git a/packages/python/devel/setuptools/build b/packages/python/devel/setuptools/build deleted file mode 100755 index a913c6e315..0000000000 --- a/packages/python/devel/setuptools/build +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) -# -# OpenELEC is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 2 of the License, or -# (at your option) any later version. -# -# OpenELEC is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC. If not, see . -################################################################################ - -. config/options $1 - -cd $PKG_BUILD - -python setup.py install --prefix=$ROOT/$TOOLCHAIN diff --git a/packages/python/devel/setuptools/meta b/packages/python/devel/setuptools/package.mk similarity index 91% rename from packages/python/devel/setuptools/meta rename to packages/python/devel/setuptools/package.mk index 114117b9fa..3589047c00 100644 --- a/packages/python/devel/setuptools/meta +++ b/packages/python/devel/setuptools/package.mk @@ -23,12 +23,20 @@ PKG_ARCH="any" PKG_LICENSE="OSS" PKG_SITE="https://pypi.python.org/pypi/setuptools" PKG_URL="http://pypi.python.org/packages/source/s/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.gz" -PKG_DEPENDS="Python" -PKG_BUILD_DEPENDS="toolchain Python" +PKG_DEPENDS_HOST="Python" +PKG_BUILD_DEPENDS_HOST="toolchain Python" PKG_PRIORITY="optional" PKG_SECTION="python/devel" PKG_SHORTDESC="setuptools: A collection of enhancements to the Python distutils" PKG_LONGDESC="Distribute is intended to replace Setuptools as the standard method for working with Python module distributions. Packages built and distributed using distribute look to the user like ordinary Python packages based on the distutils. Your users don't need to install or even know about setuptools in order to use them, and you don't have to include the entire setuptools package in your distributions. By including just a single bootstrap module (a 7K .py file), your package will automatically download and install setuptools if the user is building your package from source and doesn't have a suitable version already installed." -PKG_IS_ADDON="no" +PKG_IS_ADDON="no" PKG_AUTORECONF="no" + +make_host() { + : # nothing todo +} + +makeinstall_host() { + python setup.py install --prefix=$ROOT/$TOOLCHAIN +}