[csw-devel] SF.net SVN: gar:[5747] csw/mgar/pkg/django/trunk/Makefile

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Thu Jul 30 20:01:53 CEST 2009


Revision: 5747
          http://gar.svn.sourceforge.net/gar/?rev=5747&view=rev
Author:   wahwah
Date:     2009-07-30 18:01:53 +0000 (Thu, 30 Jul 2009)

Log Message:
-----------
django: using cswpycompile

Modified Paths:
--------------
    csw/mgar/pkg/django/trunk/Makefile

Modified: csw/mgar/pkg/django/trunk/Makefile
===================================================================
--- csw/mgar/pkg/django/trunk/Makefile	2009-07-30 17:42:34 UTC (rev 5746)
+++ csw/mgar/pkg/django/trunk/Makefile	2009-07-30 18:01:53 UTC (rev 5747)
@@ -16,6 +16,7 @@
 MASTER_SITES = http://www.djangoproject.com/download/$(GARVERSION)/tarball/
 DISTFILES  = Django-$(GARVERSION)-final.tar.gz
 
+SPKG_CLASSES = none cswpycompile
 ARCHALL = 1
 
 # We define upstream file regex so we can be notifed of new upstream software release
@@ -23,7 +24,7 @@
 
 WORKSRC = $(WORKDIR)/Django-$(GARVERSION)-final
 
-REQUIRED_PKGS = CSWpython
+REQUIRED_PKGS = CSWpython CSWcswclassutils
 PREREQUISITE_PKGS = $(REQUIRED_PKGS) CSWpython-devel
 
 CONFIGURE_SCRIPTS =
@@ -34,6 +35,14 @@
 
 TEST_SCRIPTS =
 
+PROTOTYPE_FILTER = awk ' \
+  $$$$3 ~/.*\.py$$$$/ { $$$$2 = "cswpycompile" } \
+  { print }'
+
+post-install-modulated:
+	gfind $(DESTDIR) -type f -name '*.pyc' -exec rm {} \;
+	@$(MAKECOOKIE)
+
 # There's a problem that the download URL of the Django source tarball does not
 # contain the file name. The browser is being redirected instead. Hard-coding
 # the URL and using a custom target to fit the rest of mGAR.


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list