[csw-devel] SF.net SVN: gar:[16176] csw/mgar/pkg/pkg-gate/trunk/Makefile
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Sat Nov 12 23:55:13 CET 2011
Revision: 16176
http://gar.svn.sourceforge.net/gar/?rev=16176&view=rev
Author: dmichelsen
Date: 2011-11-12 22:55:13 +0000 (Sat, 12 Nov 2011)
Log Message:
-----------
pkg-gate: Adjust dependencies, reinplacements and add protos
Modified Paths:
--------------
csw/mgar/pkg/pkg-gate/trunk/Makefile
Modified: csw/mgar/pkg/pkg-gate/trunk/Makefile
===================================================================
--- csw/mgar/pkg/pkg-gate/trunk/Makefile 2011-11-12 22:26:43 UTC (rev 16175)
+++ csw/mgar/pkg/pkg-gate/trunk/Makefile 2011-11-12 22:55:13 UTC (rev 16176)
@@ -13,8 +13,15 @@
MASTER_SITES = manual://
DISTFILES = $(NAME)-$(VERSION).tar.bz2
DISTNAME = ips
-WORKSRC = $(WORKDIR)/$(DISTNAME)/src
+# Code for strncmp taken from
+# http://bugs.mysql.com/bug.php?id=7974
+PATCHFILES += 0001-Add-missing-strndup-on-Solaris.patch
+
+VENDOR_URL = http://src.opensolaris.org/source/xref/pkg/gate/
+
+LICENSE = ips/doc/license.txt
+
PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386
# For xml2po
@@ -23,27 +30,32 @@
# For intltool-merge
BUILD_DEP_PKGS += CSWintltool
-PACKAGES += CSWips-pkg-server
PYCOMPILE = 1
-ARCHALL = 1
+PACKAGES += CSWips-pkg-server
+SPKG_DESC_CSWips-pkg-server = IPS package server
+RUNTIME_DEP_PKGS_CSWips-pkg-server += CSWpython
+RUNTIME_DEP_PKGS_CSWips-pkg-server += CSWpy-openssl
+RUNTIME_DEP_PKGS_CSWips-pkg-server += CSWcherrypy
+RUNTIME_DEP_PKGS_CSWips-pkg-server += CSWpy-simplejson
+
# With all the replacements and the large repo this takes forever
NOGITPATCH = 1
REINPLACEMENTS += intltool
REINPLACE_MATCH_intltool = /usr/bin/intltool-merge
REINPLACE_WITH_intltool = /opt/csw/bin/intltool-merge
-REINPLACE_FILES_intltool = setup.py
+REINPLACE_FILES_intltool = src/setup.py
REINPLACEMENTS += xml2po
REINPLACE_MATCH_xml2po = /usr/bin/xml2po
REINPLACE_WITH_xml2po = /opt/csw/bin/xml2po
-REINPLACE_FILES_xml2po = setup.py
+REINPLACE_FILES_xml2po = src/setup.py
REINPLACEMENTS += linkopts
REINPLACE_MATCH_linkopts = \[ \"-zstrip-class=nonalloc\" \]
REINPLACE_WITH_linkopts = \[\]
-REINPLACE_FILES_linkopts = setup.py
+REINPLACE_FILES_linkopts = src/setup.py
PYVARS += py_install_dir
#py_install_dir = 'usr/lib/python2.6/vendor-packages'
@@ -161,11 +173,17 @@
REINPLACEMENTS += pyvar-$(1)
REINPLACE_MATCH_pyvar-$(1) = $(1) = .*
REINPLACE_WITH_pyvar-$(1) = $(1) = '.$$(PYVAR_$(1))'
-REINPLACE_FILES_pyvar-$(1) = setup.py
+REINPLACE_FILES_pyvar-$(1) = src/setup.py
endef
$(foreach VAR,$(PYVARS),$(eval $(call pyrep,$(VAR))))
+REINPLACEMENTS += python
+REINPLACE_MATCH_python = /usr/bin/python2.6
+REINPLACE_WITH_python = /opt/csw/bin/python
+REINPLACE_FILES_python += $(libdir)/pkg.depotd
+REINPLACE_WHEN_python = postinstall
+
CONFIGURE_SCRIPTS =
BUILD_SCRIPTS = custom
TEST_SCRIPTS =
@@ -174,13 +192,12 @@
include gar/category.mk
build-custom:
- (cd $(WORKSRC); python setup.py build)
+ (cd $(WORKSRC)/src; python setup.py build)
@$(MAKECOOKIE)
install-custom:
- (cd $(WORKSRC); python setup.py install --root=$(DESTDIR))
+ @echo "Copying python files"
+ (cd $(WORKSRC)/src; python setup.py install --root=$(DESTDIR))
+ @echo "Copying Sparc proto files"
+ (cd $(WORKSRC)/proto/root_sparc; tar cvf - .) | (cd $(DESTDIR); tar xf -)
@$(MAKECOOKIE)
-
-#post-install-modulated:
-# gfind $(DESTDIR) -type f -name '*.pyc' -exec rm {} \;
-# @$(MAKECOOKIE)
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