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

valholla at users.sourceforge.net valholla at users.sourceforge.net
Mon Feb 23 06:29:42 CET 2009


Revision: 3435
          http://gar.svn.sourceforge.net/gar/?rev=3435&view=rev
Author:   valholla
Date:     2009-02-23 05:29:41 +0000 (Mon, 23 Feb 2009)

Log Message:
-----------
initial checkin

Added Paths:
-----------
    csw/mgar/pkg/pyorbit/
    csw/mgar/pkg/pyorbit/trunk/
    csw/mgar/pkg/pyorbit/trunk/Makefile
    csw/mgar/pkg/pyorbit/trunk/checksums
    csw/mgar/pkg/pyorbit/trunk/files/
    csw/mgar/pkg/pyorbit/trunk/files/fixme.sh


Property changes on: csw/mgar/pkg/pyorbit/trunk
___________________________________________________________________
Added: svn:externals
   + gar https://gar.svn.sf.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/pyorbit/trunk/Makefile
===================================================================
--- csw/mgar/pkg/pyorbit/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/pyorbit/trunk/Makefile	2009-02-23 05:29:41 UTC (rev 3435)
@@ -0,0 +1,32 @@
+GARNAME = pyorbit
+GARVERSION = 2.24.0
+CATEGORIES = lang
+
+DESCRIPTION = ORBit2 CORBA support for Python
+define BLURB
+  This is a Python language binding for the ORBit2 CORBA implementation.
+endef
+
+MASTER_SITES = http://freshmeat.net/projects/pyorbit/
+DISTFILES  = $(GARNAME)-$(GARVERSION).tar.bz2
+DISTFILES += fixme.sh
+
+PACKAGES = CSWpyorbit
+REQUIRED_PKGS_CSWpyorbit  = CSWpython CSWggettextrt CSWglib2
+REQUIRED_PKGS_CSWpyorbit += CSWlibidl CSWorbit2
+
+CATALOGNAME_CSWpyorbit = py_orbit
+SPKG_DESC_CSWpyorbit = ORBit2 CORBA support for Python
+
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = (\d+(?:\.\d+)*)
+
+## No tests
+TEST_SCRIPTS = 
+
+include gar/category.mk
+
+post-configure-$(MODULATION):
+	@(echo "~~~ Fixing Libtool ~~~")
+	@$(DOWNLOADDIR)/fixme.sh $(WORKSRC)
+	$(DONADA)

Added: csw/mgar/pkg/pyorbit/trunk/checksums
===================================================================
--- csw/mgar/pkg/pyorbit/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/pyorbit/trunk/checksums	2009-02-23 05:29:41 UTC (rev 3435)
@@ -0,0 +1,2 @@
+574593815e75ee6e98062c75d6d1581f  download/pyorbit-2.24.0.tar.bz2
+70771682427d524354d50482371edca5  download/fixme.sh

Added: csw/mgar/pkg/pyorbit/trunk/files/fixme.sh
===================================================================
--- csw/mgar/pkg/pyorbit/trunk/files/fixme.sh	                        (rev 0)
+++ csw/mgar/pkg/pyorbit/trunk/files/fixme.sh	2009-02-23 05:29:41 UTC (rev 3435)
@@ -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/pyorbit/trunk/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