mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Juergen Beisert <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 4/5] Fix the Python based 'flup' package.
Date: Sun, 25 Dec 2011 19:20:42 +0100	[thread overview]
Message-ID: <1324837243-10542-5-git-send-email-jbe@pengutronix.de> (raw)
In-Reply-To: <1324837243-10542-1-git-send-email-jbe@pengutronix.de>

Adapt and simplyfy the rule file for this package.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
 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 <r.schwebel@pengutronix.de>")
 	@$(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

  parent reply	other threads:[~2011-12-25 18:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-25 18:20 [ptxdist] [PATCH] Re-work the Python menu a little bit Juergen Beisert
2011-12-25 18:20 ` [ptxdist] [PATCH 1/5] Python: just add some help text Juergen Beisert
2011-12-25 18:20 ` [ptxdist] [PATCH 2/5] Python: prepare to collect all modules at one single place Juergen Beisert
2011-12-25 18:20 ` [ptxdist] [PATCH 3/5] Python/Modules: move modules to the single menu Juergen Beisert
2011-12-25 18:20 ` Juergen Beisert [this message]
2011-12-25 18:20 ` [ptxdist] [PATCH 5/5] Python/pyserial: add serial/UART module feature Juergen Beisert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1324837243-10542-5-git-send-email-jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox