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

valholla at users.sourceforge.net valholla at users.sourceforge.net
Tue May 19 18:51:16 CEST 2009


Revision: 4953
          http://gar.svn.sourceforge.net/gar/?rev=4953&view=rev
Author:   valholla
Date:     2009-05-19 16:51:15 +0000 (Tue, 19 May 2009)

Log Message:
-----------
split packages further

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

Modified: csw/mgar/pkg/python/trunk/Makefile
===================================================================
--- csw/mgar/pkg/python/trunk/Makefile	2009-05-19 15:06:25 UTC (rev 4952)
+++ csw/mgar/pkg/python/trunk/Makefile	2009-05-19 16:51:15 UTC (rev 4953)
@@ -1,7 +1,6 @@
 GARNAME = Python
 GARVERSION = 2.6.2
 CATEGORIES = lang
-PACKAGES = CSWpython CSWpython-tk CSWidle
 
 SPKG_SOURCEURL = http://www.python.org/download/releases/$(GARVERSION)
 
@@ -76,11 +75,17 @@
 CONFIGURE_ARGS += --with-system-ffi
 CONFIGURE_ARGS += LDFLAGS='-R/opt/csw/lib -L/opt/csw/lib'
 
-PKGFILES_CSWidle  = $(libdir)/python(\d+(?:\.\d+)*)/idlelib/.*
+PACKAGES  = CSWpython CSWpython-tk CSWidle CSWpython-rt CSWpython-devel
+
+PKGFILES_CSWidle  = $(libdir)/.*/idlelib/.*
 PKGFILES_CSWidle += $(bindir)/idle
-PKGFILES_CSWpython-tk  = $(libdir)/python(\d+(?:\.\d+)*)/lib-tk/.*
-PKGFILES_CSWpython-tk += $(libdir)/python(\d+(?:\.\d+)*)/lib-dynload/_tkinter.so.*
+PKGFILES_CSWpython-tk  = $(libdir)/.*/lib-tk/.*
+PKGFILES_CSWpython-tk += $(libdir)/.*/lib-dynload/_tkinter.so.*
+PKGFILES_CSWpython-devel  = $(includedir)/.*
+PKGFILES_CSWpython-devel += $(libdir)/.*/config/.*
+PKGFILES_CSWpython-rt += $(libdir)/.*libpython.*
 
+
 REQUIRED_PKGS_CSWpython  = CSWbdb44 CSWbzip2 CSWgdbm CSWggettextrt 
 REQUIRED_PKGS_CSWpython += CSWncurses CSWosslrt CSWreadline CSWzlib
 REQUIRED_PKGS_CSWpython += CSWsqlite3rt CSWtcl CSWtk
@@ -98,16 +103,24 @@
 include gar/category.mk
 
 POST_INST_SCR  = add-depricated-libs
-POST_INST_SCR += fix-config-makefile
+#POST_INST_SCR += fix-config-makefile
+POST_INST_SCR += remove-compiled-py
+
 post-install-modulated: $(POST_INST_SCR)
+	@$(MAKECOOKIE)
 
 add-depricated-libs:
 	echo "===> Adding Depricated Libs"
 	cp $(DOWNLOADDIR)/libpython2.5.so.1.0-$(MODULATION) \
 		$(DESTDIR)$(libdir)/libpython2.5.so.1.0
 	cd $(DESTDIR)$(libdir);ln -s libpython2.5.so.1.0 libpython2.5.so
-	$(DONADA)
+	@$(MAKECOOKIE)
 
+remove-compiled-py:
+	@echo "Cleaning up pyc and pyo files"
+	@gfind $(DESTDIR)$(libdir) -name "*.py[co]" -exec grm -f {} \;
+	@$(MAKECOOKIE)
+
 fix-config-makefile:
 	perl -i -plne 's/^CCSHARED=.*/CCSHARED=/' \
 		$(DESTDIR)$(libdir)/python/config/Makefile


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