]> git.ipfire.org Git - ipfire-3.x.git/blob - pkgs/python-setuptools/python-setuptools.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x into systemd
[ipfire-3.x.git] / pkgs / python-setuptools / python-setuptools.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = setuptools
28 PKG_VER = 0.6c9
29 PKG_REL = 1
30 PKG_ARCH = noarch
31
32 PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
33 PKG_GROUP = Development/Libraries
34 PKG_URL = http://pypi.python.org/pypi/setuptools
35 PKG_LICENSE = Python or ZPLv2.0
36 PKG_SUMMARY = Easily build and distribute Python packages.
37
38 PKG_BUILD_DEPS+= python-devel
39
40 define PKG_DESCRIPTION
41 Setuptools is a collection of enhancements to the Python distutils \
42 that allow you to more easily build and distribute Python packages, \
43 especially ones that have dependencies on other packages.
44 endef
45
46 PKG_TARBALL = $(THISAPP).tar.gz
47
48 define STAGE_PREPARE_CMDS
49 # Scripts seem to have a wrong hashbang
50 cd $(DIR_APP) && find . -name "*.py" | xargs sed -i "1s@^#!python@#!/usr/bin/python@"
51 endef
52
53 define STAGE_BUILD
54 cd $(DIR_APP) && CFLAGS="$(CFLAGS)" python setup.py build
55 endef
56
57 define STAGE_INSTALL
58 cd $(DIR_APP) && python setup.py install --skip-build --root=$(BUILDROOT)
59 endef
60
61 define STAGE_INSTALL_CMDS
62 # XXX $(PYTHON_EXTRACT_EGG) /usr/lib/python*/site-packages/$(PKG_NAME)*.egg
63 rm -vf $(BUILDROOT)/usr/lib/python*/site-packages/setuptools/*.exe
64 endef