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

valholla at users.sourceforge.net valholla at users.sourceforge.net
Wed May 20 03:51:54 CEST 2009


Revision: 4974
          http://gar.svn.sourceforge.net/gar/?rev=4974&view=rev
Author:   valholla
Date:     2009-05-20 01:51:53 +0000 (Wed, 20 May 2009)

Log Message:
-----------
add pre-remove

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

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

Modified: csw/mgar/pkg/python/trunk/Makefile
===================================================================
--- csw/mgar/pkg/python/trunk/Makefile	2009-05-20 01:34:38 UTC (rev 4973)
+++ csw/mgar/pkg/python/trunk/Makefile	2009-05-20 01:51:53 UTC (rev 4974)
@@ -83,6 +83,7 @@
 PKGFILES_CSWidle += $(bindir)/idle
 PKGFILES_CSWpython-devel  = $(includedir)/.*
 PKGFILES_CSWpython-devel += $(libdir)/.*/config/.*
+PKGFILES_CSWpython-devel += $(libdir)/.*/distutils/.*
 PKGFILES_CSWpython-rt += $(libdir)/.*libpython.*
 PKGFILES_CSWpython-tk  = $(libdir)/.*/lib-tk/.*
 PKGFILES_CSWpython-tk += $(libdir)/.*/lib-dynload/_tkinter.so.*

Modified: csw/mgar/pkg/python/trunk/files/CSWidle.postinstall
===================================================================
--- csw/mgar/pkg/python/trunk/files/CSWidle.postinstall	2009-05-20 01:34:38 UTC (rev 4973)
+++ csw/mgar/pkg/python/trunk/files/CSWidle.postinstall	2009-05-20 01:51:53 UTC (rev 4974)
@@ -12,11 +12,4 @@
 ${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
-    echo "Updating Package DB with ${file} ..."
-    installf ${PKGINST} ${file}
-done
-installf -f ${PKGINST}
-
 exit 0

Added: csw/mgar/pkg/python/trunk/files/CSWidle.preremove
===================================================================
--- csw/mgar/pkg/python/trunk/files/CSWidle.preremove	                        (rev 0)
+++ csw/mgar/pkg/python/trunk/files/CSWidle.preremove	2009-05-20 01:51:53 UTC (rev 4974)
@@ -0,0 +1,11 @@
+#!/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
+
+# Cleanup .pyc and .pyo files
+pkgchk -v $PKGINST 2>&1 |grep \.py$ | xargs -i rm -f {}c {}o
+
+exit 0

Modified: csw/mgar/pkg/python/trunk/files/CSWpython-tk.postinstall
===================================================================
--- csw/mgar/pkg/python/trunk/files/CSWpython-tk.postinstall	2009-05-20 01:34:38 UTC (rev 4973)
+++ csw/mgar/pkg/python/trunk/files/CSWpython-tk.postinstall	2009-05-20 01:51:53 UTC (rev 4974)
@@ -12,11 +12,4 @@
 ${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
-    echo "Updating Package DB with ${file} ..."
-    installf ${PKGINST} ${file}
-done
-installf -f ${PKGINST}
-
 exit 0

Added: csw/mgar/pkg/python/trunk/files/CSWpython-tk.preremove
===================================================================
--- csw/mgar/pkg/python/trunk/files/CSWpython-tk.preremove	                        (rev 0)
+++ csw/mgar/pkg/python/trunk/files/CSWpython-tk.preremove	2009-05-20 01:51:53 UTC (rev 4974)
@@ -0,0 +1,11 @@
+#!/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
+
+# Cleanup .pyc and .pyo files
+pkgchk -v $PKGINST 2>&1 |grep \.py$ | xargs -i rm -f {}c {}o
+
+exit 0

Modified: csw/mgar/pkg/python/trunk/files/CSWpython.postinstall
===================================================================
--- csw/mgar/pkg/python/trunk/files/CSWpython.postinstall	2009-05-20 01:34:38 UTC (rev 4973)
+++ csw/mgar/pkg/python/trunk/files/CSWpython.postinstall	2009-05-20 01:51:53 UTC (rev 4974)
@@ -13,11 +13,4 @@
 ${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 idlelib -prune -o -name lib-tk -prune -o -name site-packages -prune -o -name "*.py[co]" -print`
-do
-    echo "Updating Package DB with ${file} ..."
-    installf ${PKGINST} ${file}
-done
-installf -f ${PKGINST}
-
 exit 0

Added: csw/mgar/pkg/python/trunk/files/CSWpython.preremove
===================================================================
--- csw/mgar/pkg/python/trunk/files/CSWpython.preremove	                        (rev 0)
+++ csw/mgar/pkg/python/trunk/files/CSWpython.preremove	2009-05-20 01:51:53 UTC (rev 4974)
@@ -0,0 +1,11 @@
+#!/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
+
+# Cleanup .pyc and .pyo files
+pkgchk -v $PKGINST 2>&1 |grep \.py$ | xargs -i rm -f {}c {}o
+
+exit 0


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