[csw-devel] SF.net SVN: gar:[3357] csw/mgar/pkg
valholla at users.sourceforge.net
valholla at users.sourceforge.net
Mon Feb 23 04:08:32 CET 2009
Revision: 3357
http://gar.svn.sourceforge.net/gar/?rev=3357&view=rev
Author: valholla
Date: 2009-02-23 03:08:32 +0000 (Mon, 23 Feb 2009)
Log Message:
-----------
initial checkin
Added Paths:
-----------
csw/mgar/pkg/pygtk/
csw/mgar/pkg/pygtk/Makefile
csw/mgar/pkg/pygtk/checksums
csw/mgar/pkg/pygtk/files/
csw/mgar/pkg/pygtk/files/fixme.sh
Property changes on: csw/mgar/pkg/pygtk
___________________________________________________________________
Added: svn:externals
+ gar https://gar.svn.sf.net/svnroot/gar/csw/mgar/gar/v2
Added: csw/mgar/pkg/pygtk/Makefile
===================================================================
--- csw/mgar/pkg/pygtk/Makefile (rev 0)
+++ csw/mgar/pkg/pygtk/Makefile 2009-02-23 03:08:32 UTC (rev 3357)
@@ -0,0 +1,34 @@
+GARNAME = pygtk
+GARVERSION = 2.12.1
+CATEGORIES = lang
+
+DESCRIPTION = pygtk support for Python
+define BLURB
+ This is a Python language binding for gobject.
+endef
+
+MASTER_SITES = http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.15/
+DISTFILES = $(GARNAME)-$(GARVERSION).tar.bz2
+DISTFILES += fixme.sh
+
+PACKAGES = CSWpygtk
+REQUIRED_PKGS_CSWpygtk = CSWpython
+
+EXTRA_CFLAGS = -I../../pygobject/work/install-isa-sparcv8/usr/local/include/pygtk-2.0
+EXTRA_LINKER_FLAGS = -L../../pygobject/work/install-isa-sparcv8/usr/local/lib
+
+CATALOGNAME_CSWpygtk = py_gtk
+SPKG_DESC_CSWpygtk = pygtk support for Python
+
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = (\d+(?:\.\d+)*)
+
+#TEST_TARGET = check
+TEST_SCRIPTS =
+
+include gar/category.mk
+
+post-configure-modulated:
+ @(echo "~~~ Fixing Libtool ~~~")
+ @$(DOWNLOADDIR)/fixme.sh $(WORKSRC)
+ $(DONADA)
Added: csw/mgar/pkg/pygtk/checksums
===================================================================
--- csw/mgar/pkg/pygtk/checksums (rev 0)
+++ csw/mgar/pkg/pygtk/checksums 2009-02-23 03:08:32 UTC (rev 3357)
@@ -0,0 +1,2 @@
+a816346d750d61e3fa67a200e4292694 download/pygtk-2.12.1.tar.bz2
+70771682427d524354d50482371edca5 download/fixme.sh
Added: csw/mgar/pkg/pygtk/files/fixme.sh
===================================================================
--- csw/mgar/pkg/pygtk/files/fixme.sh (rev 0)
+++ csw/mgar/pkg/pygtk/files/fixme.sh 2009-02-23 03:08:32 UTC (rev 3357)
@@ -0,0 +1,49 @@
+#!/bin/bash
+####################################################
+#
+# fixme.sh
+# Intended to remove the use of libtool's
+# pseudo-libraries for opencsw builds.
+#
+# Author: Mike Watters mwatters_at_opencsw.org
+# Initial Version: 0.1
+#
+####################################################
+
+umask 0022
+PATH=/opt/csw/bin
+
+if [ $# -ne 1 ]; then
+ gecho "USAGE: $(basename $0) WORKSRC"
+ exit 1
+fi
+BASEPATH=$1
+
+## Fix Makefiles
+for mk in $(gfind ${BASEPATH} -name Makefile -print); do
+ LT_FILES=$(ggrep '/opt/csw.*/lib/.*.la' ${mk} | \
+ gsed "s/^.*\(\/opt\/csw.*\/lib\/.*\.la\).*$/\1/")
+
+ for file in ${LT_FILES}; do
+ LIB_NAME=$(ggrep 'dlname=' ${file} | \
+ gsed -e "s/.*'\(.*\)'/\1/" \
+ -e "s/^lib//" \
+ -e "s/\.so.*$//")
+ fixpath=$(gecho $file |gsed 's/\//\\\//g')
+ sed "s/${fixpath}/-l${LIB_NAME}/g" ${mk} >Makefile.new
+ gmv Makefile.new ${mk}
+ done
+done
+
+## Fix libtool Script
+for lt in $(gfind ${BASEPATH} -name libtool -print); do
+ gsed "/for search_ext in .*\.la/s/\.la//" ${lt} >${lt}.new
+ gmv ${lt}.new ${lt}
+done
+
+LTMAIN=$(gfind ${BASEPATH} -name ltmain.sh -print)
+if [ -f ${LTMAIN} ]; then
+ gsed "/for search_ext in .*\.la/s/\.la//" ${LTMAIN} >${LTMAIN}.new
+ gmv ${LTMAIN}.new ${LTMAIN}
+fi
+
Property changes on: csw/mgar/pkg/pygtk/files/fixme.sh
___________________________________________________________________
Added: svn:executable
+ *
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