From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude.hi.pengutronix.de ([2001:6f8:1178:2:21e:67ff:fe11:9c5c]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Resgf-0004Z4-Md for ptxdist@pengutronix.de; Sun, 25 Dec 2011 19:20:45 +0100 Received: from jbe by dude.hi.pengutronix.de with local (Exim 4.77) (envelope-from ) id 1Resgf-0002uL-KB for ptxdist@pengutronix.de; Sun, 25 Dec 2011 19:20:45 +0100 From: Juergen Beisert Date: Sun, 25 Dec 2011 19:20:42 +0100 Message-Id: <1324837243-10542-5-git-send-email-jbe@pengutronix.de> In-Reply-To: <1324837243-10542-1-git-send-email-jbe@pengutronix.de> References: <1324837243-10542-1-git-send-email-jbe@pengutronix.de> Subject: [ptxdist] [PATCH 4/5] Fix the Python based 'flup' package. Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Adapt and simplyfy the rule file for this package. Signed-off-by: Juergen Beisert --- rules/flup.make | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/rules/flup.make b/rules/flup.make index 976c282..ccb9fd1 100644 --- a/rules/flup.make +++ b/rules/flup.make @@ -20,7 +20,7 @@ FLUP_VERSION := 1.0.2 FLUP_MD5 := 24dad7edc5ada31dddd49456ee8d5254 FLUP := flup-$(FLUP_VERSION) FLUP_SUFFIX := tar.gz -FLUP_URL := http://www.saddi.com/software/flup/dist/$(FLUP).$(FLUP_SUFFIX) +FLUP_URL := http://pypi.python.org/packages/source/f/flup/$(FLUP).$(FLUP_SUFFIX) FLUP_SOURCE := $(SRCDIR)/$(FLUP).$(FLUP_SUFFIX) FLUP_DIR := $(BUILDDIR)/$(FLUP) FLUP_LICENSE := unknown @@ -47,6 +47,9 @@ $(STATEDIR)/flup.compile: $(STATEDIR)/flup.install: @$(call targetinfo) + @cd $(FLUP_DIR) && \ + $(FLUP_PATH) $(FLUP_MAKE_ENV) \ + python setup.py install --root=$(FLUP_PKGDIR) --prefix=/usr @$(call touch) # ---------------------------------------------------------------------------- @@ -62,10 +65,14 @@ $(STATEDIR)/flup.targetinstall: @$(call install_fixup, flup,AUTHOR,"Robert Schwebel ") @$(call install_fixup, flup,DESCRIPTION,missing) - for i in $(shell cd $(FLUP_DIR)/flup && find . -name "*.py"); do \ - $(call install_copy, flup, 0, 0, 0644, \ - $(FLUP_DIR)/flup/$$i, \ - $(PYTHON_SITEPACKAGES)/flup/$$i) \ + @$(call install_copy, flup, 0, 0, 0755, $(PYTHON_SITEPACKAGES)) + @$(call install_copy, flup, 0, 0, 0755, $(PYTHON_SITEPACKAGES)/flup) + @$(call install_copy, flup, 0, 0, 0755, $(PYTHON_SITEPACKAGES)/flup/client) + @$(call install_copy, flup, 0, 0, 0755, $(PYTHON_SITEPACKAGES)/flup/server) + + for file in $(shell cd $(FLUP_PKGDIR) && find . -name "*.pyc"); \ + do \ + $(call install_copy, flup, 0, 0, 0644, -, /$$file) \ done @$(call install_finish, flup) -- 1.7.7.3 -- ptxdist mailing list ptxdist@pengutronix.de