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

valholla at users.sourceforge.net valholla at users.sourceforge.net
Tue May 19 20:08:34 CEST 2009


Revision: 4956
          http://gar.svn.sourceforge.net/gar/?rev=4956&view=rev
Author:   valholla
Date:     2009-05-19 18:08:34 +0000 (Tue, 19 May 2009)

Log Message:
-----------
tweaks

Modified Paths:
--------------
    csw/mgar/pkg/python/trunk/Makefile
    csw/mgar/pkg/python/trunk/checksums
    csw/mgar/pkg/python/trunk/files/CSWpython.postinstall

Added Paths:
-----------
    csw/mgar/pkg/python/trunk/files/CSWidle.postinstall
    csw/mgar/pkg/python/trunk/files/CSWidle.space
    csw/mgar/pkg/python/trunk/files/CSWpython-tk.postinstall
    csw/mgar/pkg/python/trunk/files/CSWpython-tk.space
    csw/mgar/pkg/python/trunk/files/CSWpython.space

Modified: csw/mgar/pkg/python/trunk/Makefile
===================================================================
--- csw/mgar/pkg/python/trunk/Makefile	2009-05-19 16:53:10 UTC (rev 4955)
+++ csw/mgar/pkg/python/trunk/Makefile	2009-05-19 18:08:34 UTC (rev 4956)
@@ -23,7 +23,8 @@
 # Previous Library for compatability
 DISTFILES += libpython2.5.so.1.0-isa-sparcv8
 DISTFILES += libpython2.5.so.1.0-isa-i386
-DISTFILES += CSWpython.postinstall
+DISTFILES += CSWpython.postinstall CSWpython-tk.postinstall CSWidle.postinstall
+DISTFILES += CSWpython.space CSWpython-tk.space CSWidle.space
 
 # We define upstream file regex so we can be notifed of new upstream software release
 UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.bz2
@@ -76,35 +77,39 @@
 CONFIGURE_ARGS += --with-system-ffi
 CONFIGURE_ARGS += LDFLAGS='-R/opt/csw/lib -L/opt/csw/lib'
 
-PACKAGES  = CSWpython CSWpython-tk CSWidle CSWpython-rt CSWpython-devel
+PACKAGES  = CSWidle CSWpython CSWpython-devel CSWpython-rt CSWpython-tk
 
 PKGFILES_CSWidle  = $(libdir)/.*/idlelib/.*
 PKGFILES_CSWidle += $(bindir)/idle
-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.*
+PKGFILES_CSWpython-tk  = $(libdir)/.*/lib-tk/.*
+PKGFILES_CSWpython-tk += $(libdir)/.*/lib-dynload/_tkinter.so.*
 
+ENABLE_CHECK = 0
 
-REQUIRED_PKGS_CSWpython  = CSWbdb44 CSWbzip2 CSWgdbm CSWggettextrt 
-REQUIRED_PKGS_CSWpython += CSWncurses CSWosslrt CSWreadline CSWzlib
-REQUIRED_PKGS_CSWpython += CSWsqlite3rt CSWtcl CSWtk
-REQUIRED_PKGS_CSWpython-tk = CSWpython CSWtcl CSWtk
 REQUIRED_PKGS_CSWidle = CSWpython CSWpython-tk
+REQUIRED_PKGS_CSWpython  = CSWbdb44 CSWbzip2 CSWgdbm CSWggettextrt 
+REQUIRED_PKGS_CSWpython += CSWncurses CSWosslrt CSWpython-rt CSWreadline 
+REQUIRED_PKGS_CSWpython += CSWsqlite3rt CSWzlib
+REQUIRED_PKGS_CSWpython-tk = CSWpython CSWtcl CSWtk CSWpython-rt
 
+CATALOGNAME_CSWidle = idle
 CATALOGNAME_CSWpython = python
+CATALOGNAME_CSWpython-devel = python_devel
+CATALOGNAME_CSWpython-rt = python_rt
 CATALOGNAME_CSWpython-tk = python_tk
-CATALOGNAME_CSWidle = idle
 
+SPKG_DESC_CSWidle = Python IDE
 SPKG_DESC_CSWpython = A high-level scripting language.
+SPKG_DESC_CSWpython-devel = Development Files for Python
+SPKG_DESC_CSWpython-rt = Python Runtime Libraries
 SPKG_DESC_CSWpython-tk = Python Tk Interface (TkInter)
-SPKG_DESC_CSWidle = Python IDE
 
 include gar/category.mk
 
 POST_INST_SCR  = add-depricated-libs
-#POST_INST_SCR += fix-config-makefile
 POST_INST_SCR += remove-compiled-py
 
 post-install-modulated: $(POST_INST_SCR)
@@ -122,9 +127,3 @@
 	@gfind $(DESTDIR)$(libdir) -name "*.py[co]" -exec grm -f {} \;
 	@$(MAKECOOKIE)
 
-fix-config-makefile:
-	perl -i -plne 's/^CCSHARED=.*/CCSHARED=/' \
-		$(DESTDIR)$(libdir)/python/config/Makefile
-	$(MAKECOOKIE)
-
-

Modified: csw/mgar/pkg/python/trunk/checksums
===================================================================
--- csw/mgar/pkg/python/trunk/checksums	2009-05-19 16:53:10 UTC (rev 4955)
+++ csw/mgar/pkg/python/trunk/checksums	2009-05-19 18:08:34 UTC (rev 4956)
@@ -1,4 +1,9 @@
-e0237a9a045cb20211b1ef0f6cc5ac59  download/CSWpython.postinstall
+e5296fef0bda7ca6f4c06463cd67c63e  download/CSWidle.postinstall
+4d9594d707b7bd25113f8162274e74d4  download/CSWidle.space
+821c153022ec0b2aebc6dfbe9c8b9bd5  download/CSWpython-tk.postinstall
+4d9594d707b7bd25113f8162274e74d4  download/CSWpython-tk.space
+a2f72d6ecf55735c910c5e5d01f44968  download/CSWpython.postinstall
+4d9594d707b7bd25113f8162274e74d4  download/CSWpython.space
 245db9f1e0f09ab7e0faaa0cf7301011  download/Python-2.6.2.tar.bz2
 42dd6523beb94a805d5764ae1276091c  download/faqwiz.diff
 5664b3970307d7d39d8d4061e7dccbb0  download/libpython2.5.so.1.0-isa-i386

Added: csw/mgar/pkg/python/trunk/files/CSWidle.postinstall
===================================================================
--- csw/mgar/pkg/python/trunk/files/CSWidle.postinstall	                        (rev 0)
+++ csw/mgar/pkg/python/trunk/files/CSWidle.postinstall	2009-05-19 18:08:34 UTC (rev 4956)
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+PATH=/usr/bin:/usr/sbin
+PY_PREFIX=${PKG_INSTALL_ROOT}/opt/csw
+PY_BINDIR=${PKG_INSTALL_ROOT}${PY_PREFIX}/bin
+PY_LIBDIR=${PKG_INSTALL_ROOT}${PY_PREFIX}/lib/python
+
+# Compile .py libraries to .pyc files
+${PY_BINDIR}/python -Wi -tt ${PY_LIBDIR}/compileall.py \
+    -d ${PY_LIBDIR}/idlelib -f -x 'bad_coding|badsyntax' ${PY_LIBDIR}/idlelib
+# Compile .py libraries to .pyo files
+${PY_BINDIR}/python -Wi -tt -O ${PY_LIBDIR}/compileall.py \
+    -d ${PY_LIBDIR}/idlelib -f -x 'bad_coding|badsyntax' ${PY_LIBDIR}/idlelib
+
+for file in `find ${PY_LIBDIR}/idlelib -name "*.py[co]" -print`
+do
+    installf ${PKGINST} ${file}
+done
+installf -f ${PKGINST}
+
+exit 0

Added: csw/mgar/pkg/python/trunk/files/CSWidle.space
===================================================================
--- csw/mgar/pkg/python/trunk/files/CSWidle.space	                        (rev 0)
+++ csw/mgar/pkg/python/trunk/files/CSWidle.space	2009-05-19 18:08:34 UTC (rev 4956)
@@ -0,0 +1 @@
+$BASEDIR

Added: csw/mgar/pkg/python/trunk/files/CSWpython-tk.postinstall
===================================================================
--- csw/mgar/pkg/python/trunk/files/CSWpython-tk.postinstall	                        (rev 0)
+++ csw/mgar/pkg/python/trunk/files/CSWpython-tk.postinstall	2009-05-19 18:08:34 UTC (rev 4956)
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+PATH=/usr/bin:/usr/sbin
+PY_PREFIX=${PKG_INSTALL_ROOT}/opt/csw
+PY_BINDIR=${PKG_INSTALL_ROOT}${PY_PREFIX}/bin
+PY_LIBDIR=${PKG_INSTALL_ROOT}${PY_PREFIX}/lib/python
+
+# Compile .py libraries to .pyc files
+${PY_BINDIR}/python -Wi -tt ${PY_LIBDIR}/compileall.py \
+    -d ${PY_LIBDIR}/lib-tk -f -x 'bad_coding|badsyntax' ${PY_LIBDIR}/lib-tk
+# Compile .py libraries to .pyo files
+${PY_BINDIR}/python -Wi -tt -O ${PY_LIBDIR}/compileall.py \
+    -d ${PY_LIBDIR}/lib-tk -f -x 'bad_coding|badsyntax' ${PY_LIBDIR}/lib-tk
+
+for file in `find ${PY_LIBDIR}/lib-tk -name "*.py[co]" -print`
+do
+    installf ${PKGINST} ${file}
+done
+installf -f ${PKGINST}
+
+exit 0

Added: csw/mgar/pkg/python/trunk/files/CSWpython-tk.space
===================================================================
--- csw/mgar/pkg/python/trunk/files/CSWpython-tk.space	                        (rev 0)
+++ csw/mgar/pkg/python/trunk/files/CSWpython-tk.space	2009-05-19 18:08:34 UTC (rev 4956)
@@ -0,0 +1 @@
+$BASEDIR

Modified: csw/mgar/pkg/python/trunk/files/CSWpython.postinstall
===================================================================
--- csw/mgar/pkg/python/trunk/files/CSWpython.postinstall	2009-05-19 16:53:10 UTC (rev 4955)
+++ csw/mgar/pkg/python/trunk/files/CSWpython.postinstall	2009-05-19 18:08:34 UTC (rev 4956)
@@ -13,7 +13,7 @@
 ${PY_BINDIR}/python -Wi -tt -O ${PY_LIBDIR}/compileall.py \
     -d ${PY_LIBDIR} -f -x 'bad_coding|badsyntax' ${PY_LIBDIR}
 
-for file in `find ${PY_LIBDIR} -name "*.py[co]" -print`
+for file in `find ${PY_LIBDIR} -name idlelib -prune -o -name lib-tk -prune -o -name site-packages -prune -o -name "*.py[co]" -print`
 do
     installf ${PKGINST} ${file}
 done

Added: csw/mgar/pkg/python/trunk/files/CSWpython.space
===================================================================
--- csw/mgar/pkg/python/trunk/files/CSWpython.space	                        (rev 0)
+++ csw/mgar/pkg/python/trunk/files/CSWpython.space	2009-05-19 18:08:34 UTC (rev 4956)
@@ -0,0 +1 @@
+$BASEDIR


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