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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Jan 30 09:01:16 CET 2010


Revision: 8228
          http://gar.svn.sourceforge.net/gar/?rev=8228&view=rev
Author:   wahwah
Date:     2010-01-30 08:01:16 +0000 (Sat, 30 Jan 2010)

Log Message:
-----------
pykstat: Initial commit

Modified Paths:
--------------
    csw/mgar/pkg/pykstat/trunk/Makefile
    csw/mgar/pkg/pykstat/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/pykstat/
    csw/mgar/pkg/pykstat/trunk/files/python-2.6-Makefile.patch

Modified: csw/mgar/pkg/pykstat/trunk/Makefile
===================================================================
--- csw/mgar/pkg/template/trunk/Makefile	2010-01-25 11:29:54 UTC (rev 8165)
+++ csw/mgar/pkg/pykstat/trunk/Makefile	2010-01-30 08:01:16 UTC (rev 8228)
@@ -11,8 +11,8 @@
 ## For more information about GAR variables, please see:
 ## https://sourceforge.net/apps/trac/gar/wiki/GAR%20Variable%20Reference
 ##
-GARNAME = mypkg
-GARVERSION = 1.0
+GARNAME = pykstat
+GARVERSION = 0.5
 ##
 ## The category that your software fits in. This is not a descriptive field, but
 ## influences the build process. Depending on the CATEGORIES setting, different
@@ -22,24 +22,24 @@
 ## Possible settings are:
 ## apps, cpan, devel, gnome, java, kde, lang, lib, meta, net, python, server,
 ## utils, x11, xfce, xorg, xtra
-CATEGORIES = lib
+CATEGORIES = python
 ##
 ## A one-line description of the package, which will appear in the pkginfo.
-DESCRIPTION = <please fill in>
+DESCRIPTION = a Python interface to the Solaris kstat(3k) and utmpx APIs
 ##
 ## A longer description of the package. This is only for descriptive purposes
 ## inside the Makefile and is not used elsewhere.
 define BLURB
-  <please fill in>
 endef
 ##
 ## Upstream URL that should show up in the VENDOR field as well as on
 ## http://opencsw.org/packages/<packagename>.
-SPKG_SOURCEURL =
+SPKG_SOURCEURL = http://www.biostat.wisc.edu/~annis/creations/pykstat.html
 ##
 ## Whitespace-separated list of URLs to download the source package from.
 ## There are presets: $(SF_MIRRORS), $(GNU_MIRRORS) and $(GOOGLE_MIRROR).
-MASTER_SITES =
+MASTER_SITES = http://www.biostat.wisc.edu/~annis/creations/
+DISTNAME = PyKstat-$(GARVERSION)
 ##
 ## SF_PROJ is required if you set $(MASTER_SITES) to $(SF_MIRRORS) and the
 ## Sourceforge project name differs from $(GARNAME). Specifies the Sourceforge
@@ -49,12 +49,12 @@
 ## A list of space separated patch filenames from files/ that are to be applied
 ## to the extracted software before the ./configure stage. Patches need to be
 ## included in the DISTFILES variable as well.
-## PATCHFILES =
+PATCHFILES = python-2.6-Makefile.patch
 ##
 ## Whitespace-separated list of files which comprise this build. mGAR will look
 ## for the files in the $(FILEDIR) (trunk/files) directory and on the
 ## $(MASTER_SITES).
-DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
+DISTFILES  = $(DISTNAME).tar.gz
 ##
 ## We define upstream file regex so we can be notifed of new upstream software release
 UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
@@ -95,7 +95,8 @@
 ## $(PACKAGES) list) to define which files go into each package. The first
 ## package from $(PACKAGES) one will hold all files that are not matched by
 ## PKGFILES_ for other packages.
-## PACKAGES =
+PACKAGES = CSWpy-kstat
+CATALOGNAME_CSWpy-kstat = py_kstat
 ##
 ## If specified, GAR feeds the almost-final package prototype file to
 ## $(PROTOTYPE_FILTER) and reads the final package prototype file from it.
@@ -126,7 +127,7 @@
 ## REQUIRED_PKGS =
 ##
 ## A list of packages necessary to build this package
-## PREREQUISITE_PKGS = $(REQUIRED_PKGS)
+PREREQUISITE_PKGS = $(REQUIRED_PKGS) CSWswig
 ##
 ## When using non-empty $(PACKAGES):
 ## REQUIRED_PKGS_CSWpkgname =
@@ -146,9 +147,9 @@
 ## this variable an empty value. The procedure works for configure, build,
 ## install and test steps.
 ## CONFIGURE_SCRIPTS =
-## BUILD_SCRIPTS =
-## INSTALL_SCRIPTS =
-## TEST_SCRIPTS =
+BUILD_SCRIPTS = py-kstat
+INSTALL_SCRIPTS = py-kstat
+TEST_SCRIPTS =
 ##
 ## Compilation settings
 ##
@@ -160,7 +161,7 @@
 ## BUILD_ARGS =
 ##
 ## Arguments passed to the ./configure script.
-CONFIGURE_ARGS = $(DIRPATHS)
+## CONFIGURE_ARGS = $(DIRPATHS)
 ##
 ## BUILD64 =
 ## CONFIGURE_ENV =
@@ -176,10 +177,13 @@
 ## The compiler to use. Defaults to SOS11, can be also: SOS12, GCC3, GCC4.
 ## GARCOMPILER = SOS11
 ##
-# Remove the following rules and uncomment the
-# include before building.
-all: .DEFAULT
-.DEFAULT:
-	@true
+include gar/category.mk
 
-#include gar/category.mk
+build-py-kstat:
+	(cd $(WORKSRC); $(BUILD_ENV) gmake all)
+	@$(MAKECOOKIE)
+
+install-py-kstat:
+	(cd $(WORKSRC); $(INSTALL_ENV) gmake install)
+	@$(MAKECOOKIE)
+

Modified: csw/mgar/pkg/pykstat/trunk/checksums
===================================================================
--- csw/mgar/pkg/template/trunk/checksums	2010-01-25 11:29:54 UTC (rev 8165)
+++ csw/mgar/pkg/pykstat/trunk/checksums	2010-01-30 08:01:16 UTC (rev 8228)
@@ -0,0 +1,2 @@
+a18f55cc17b9fec9d29e190037da44ca  PyKstat-0.5.tar.gz
+77ab34b001f27b5efff6cd2a2e36156a  python-2.6-Makefile.patch

Added: csw/mgar/pkg/pykstat/trunk/files/python-2.6-Makefile.patch
===================================================================
--- csw/mgar/pkg/pykstat/trunk/files/python-2.6-Makefile.patch	                        (rev 0)
+++ csw/mgar/pkg/pykstat/trunk/files/python-2.6-Makefile.patch	2010-01-30 08:01:16 UTC (rev 8228)
@@ -0,0 +1,43 @@
+diff --git a/Makefile b/Makefile
+index cf927aa..0a178b9 100644
+--- a/Makefile
++++ b/Makefile
+@@ -4,10 +4,10 @@
+ # In general, you should only need to change the compiler and the
+ # location of your python header files.
+ 
+-CC =	gcc
+-PY_INCLUDES =	-I/s/include/python1.5
+-PY_LIBDIR =	/s/lib/python1.5
++PY_INCLUDES =	-I/opt/csw/include/python2.6
++PY_LIBDIR =	/opt/csw/lib/python2.6
+ DEBUG=
++INSTALL = ginstall
+ 
+ # Don't change below this line!
+ SOLIBS= -lkstat
+@@ -18,10 +18,14 @@ PY_SITE_LIB_DIR = 	$(PY_LIBDIR)/site-packages
+ all: wkstatmodule.so utmpxmodule.so
+ 
+ install: all
+-	/bin/cp wkstatmodule.so utmpxmodule.so $(PY_SO_LIB_DIR)
+-	/bin/cp kstat.py kstats.py $(PY_SITE_LIB_DIR)
++	$(INSTALL) -m 755 -d $(DESTDIR)$(PY_SO_LIB_DIR)
++	$(INSTALL) -m 755 -d $(DESTDIR)$(PY_SITE_LIB_DIR)
++	$(INSTALL) -m 755 wkstatmodule.so $(DESTDIR)$(PY_SO_LIB_DIR)
++	$(INSTALL) -m 755 utmpxmodule.so  $(DESTDIR)$(PY_SO_LIB_DIR)
++	$(INSTALL) -m 644 kstat.py  $(DESTDIR)$(PY_SITE_LIB_DIR)
++	$(INSTALL) -m 644 kstats.py $(DESTDIR)$(PY_SITE_LIB_DIR)
+ 	@echo "You may wish to run:"
+-	@echo "	python $(PY_LIBDIR)/compileall.py $(PY_SITE_LIB_DIR)"
++	@echo "	python $(PY_LIBDIR)/compileall.py $(DESTDIR)$(PY_SITE_LIB_DIR)"
+ 	@echo "to compile the new libraries for your users."
+ 
+ swig: wkstatmodule.so
+@@ -60,4 +64,4 @@ dist:
+ 	tardist PyKstat-0.5
+ 
+ clean:
+-	/bin/rm -f *~ *.o *.so main0 test1
+\ No newline at end of file
++	/bin/rm -f *~ *.o *.so main0 test1


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