[csw-devel] SF.net SVN: gar:[6094] csw/mgar/gar

skayser at users.sourceforge.net skayser at users.sourceforge.net
Mon Aug 24 00:29:50 CEST 2009


Revision: 6094
          http://gar.svn.sourceforge.net/gar/?rev=6094&view=rev
Author:   skayser
Date:     2009-08-23 22:29:50 +0000 (Sun, 23 Aug 2009)

Log Message:
-----------
gar/v2-skayser: branched gar/v2 to work on category Makefiles

Modified Paths:
--------------
    csw/mgar/gar/v2-skayser/gar.pkg.mk

Added Paths:
-----------
    csw/mgar/gar/v2-skayser/
    csw/mgar/gar/v2-skayser/categories/python/
    csw/mgar/gar/v2-skayser/categories/python/category.mk

Added: csw/mgar/gar/v2-skayser/categories/python/category.mk
===================================================================
--- csw/mgar/gar/v2-skayser/categories/python/category.mk	                        (rev 0)
+++ csw/mgar/gar/v2-skayser/categories/python/category.mk	2009-08-23 22:29:50 UTC (rev 6094)
@@ -0,0 +1,20 @@
+# Add a dependency to CSWpython
+_EXTRA_GAR_PKGS += CSWpython
+
+# Put PYCOMPILE in here for now and let gar.pkg.mk handle the usual
+# cswclassutils stuff.
+PYCOMPILE = .*\.py
+
+# Could we have "setup.py install" just _not_ compile .py{c,o} files
+# in the first place?
+_MERGE_EXCLUDE_CATEGORY = .*\.pyo .*\.pyc .*\.egg-info.*
+
+# Haven't seen a python module with a configure phase so far
+CONFIGURE_SCRIPTS ?=
+
+# gar.lib.mk contains implicit targets for setup.py
+BUILD_SCRIPTS ?= $(WORKSRC)/setup.py
+INSTALL_SCRIPTS ?= $(WORKSRC)/setup.py
+INSTALL_ARGS ?= --root=$(DESTDIR) --prefix=$(prefix)
+
+include gar/gar.mk

Modified: csw/mgar/gar/v2-skayser/gar.pkg.mk
===================================================================
--- csw/mgar/gar/v2/gar.pkg.mk	2009-08-23 13:46:56 UTC (rev 6086)
+++ csw/mgar/gar/v2-skayser/gar.pkg.mk	2009-08-23 22:29:50 UTC (rev 6094)
@@ -156,13 +156,15 @@
 SPKG_CLASSES := $(SPKG_CLASSES) $(if $(PRESERVECONF),$(if $(filter cswpreserveconf,$(SPKG_CLASSES)),,cswpreserveconf))
 SPKG_CLASSES := $(SPKG_CLASSES) $(if $(INITSMF),$(if $(filter cswinitsmf,$(SPKG_CLASSES)),,cswinitsmf))
 SPKG_CLASSES := $(SPKG_CLASSES) $(if $(USERGROUP),$(if $(filter cswusergroup,$(SPKG_CLASSES)),,cswusergroup))
+SPKG_CLASSES := $(SPKG_CLASSES) $(if $(PYCOMPILE),$(if $(filter cswpycompile,$(SPKG_CLASSES)),,cswpycompile))
 # - set class for all config files
-ifneq ($(SAMPLECONF)$(PRESERVECONF)$(INITSMF),)
+ifneq ($(SAMPLECONF)$(PRESERVECONF)$(INITSMF)$(USERGROUP)$(PYCOMPILE),)
 _CSWCLASS_FILTER = | perl -ane '\
 		$(foreach FILE,$(SAMPLECONF),$$F[1] = "cswsampleconf" if ( $$F[2] =~ m(^$(FILE)$$) );)\
 		$(foreach FILE,$(PRESERVECONF),$$F[1] = "cswpreserveconf" if( $$F[2] =~ m(^$(FILE)$$) );)\
 		$(foreach FILE,$(INITSMF),$$F[1] = "cswinitsmf" if( $$F[2] =~ m(^$(FILE)$$) );)\
 		$(foreach FILE,$(USERGROUP),$$F[1] = "cswusergroup" if( $$F[2] =~ m(^$(FILE)$$) );)\
+		$(foreach FILE,$(PYCOMPILE),$$F[1] = "cswpycompile" if( $$F[2] =~ m(^$(FILE)$$) );)\
 		print join(" ", at F),"\n";'
 _EXTRA_GAR_PKGS += CSWcswclassutils
 endif


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