[csw-devel] SF.net SVN: gar:[8997] csw/mgar/pkg/freedesktop/xcbproto/trunk/Makefile

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Mar 6 13:27:08 CET 2010


Revision: 8997
          http://gar.svn.sourceforge.net/gar/?rev=8997&view=rev
Author:   wahwah
Date:     2010-03-06 12:27:08 +0000 (Sat, 06 Mar 2010)

Log Message:
-----------
xcbproto: A hack to place the Python modules in the right directory.

Modified Paths:
--------------
    csw/mgar/pkg/freedesktop/xcbproto/trunk/Makefile

Property Changed:
----------------
    csw/mgar/pkg/freedesktop/xcbproto/trunk/Makefile

Modified: csw/mgar/pkg/freedesktop/xcbproto/trunk/Makefile
===================================================================
--- csw/mgar/pkg/freedesktop/xcbproto/trunk/Makefile	2010-03-06 12:25:45 UTC (rev 8996)
+++ csw/mgar/pkg/freedesktop/xcbproto/trunk/Makefile	2010-03-06 12:27:08 UTC (rev 8997)
@@ -1,3 +1,5 @@
+# $Id$
+
 GARVERSION = 1.6
 CATEGORIES = x11
 PROTONAME = xcb-proto
@@ -38,23 +40,28 @@
 RUNTIME_DEP_PKGS_CSWpyxcbproto = CSWxcbproto CSWpython
 
 SPKG_DESC_CSWxcbproto = XCB protocol descriptions (in XML)
-SPKG_DESC_CSWpyxcbproto = XCB protocol descriptions (in XML) Python Bindings
+SPKG_DESC_CSWpyxcbproto = $(SPKG_DESC_CSWxcbproto) Python Bindings
 
-# We define upstream file regex so we can be notifed of new upstream software release
 UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
 
 BUILD64 = 1
 
 CONFIGURE_ARGS = $(DIRPATHS)
 
-PYTHON_PREFIX=$(BUILD_PREFIX)/lib/python/site-packages
+PYTHON_PREFIX = $(BUILD_PREFIX)/lib/python/site-packages
 
-EXTRA_PAX_ARGS = -s ',^.*/\(xcbgen/.*\.py\),.$(BUILD_PREFIX)/lib/python/site-packages/\1,'
-EXTRA_PAX_ARGS += -s ',^\.$(libdir)/python.*,,'
-
 PYCOMPILE = 1
 
 PKGFILES_CSWpyxcbproto = .*\.py
 ARCHALL_CSWpyxcbproto = 1
 
 include gar/category.mk
+
+# This bit is probably somewhat objectionable, but it gets the job done.
+post-merge:
+	ginstall -m 755 -d $(PKGROOT)/opt/csw/lib
+	[ -d $(PKGROOT)$(prefix)/lib/python ] \
+		&& \
+		gmv -v $(PKGROOT)$(prefix)/lib/python $(PKGROOT)/opt/csw/lib
+	grm -fv $(PKGROOT)/opt/csw/lib/python/site-packages/xcbgen/*.py[co]
+	@$(MAKECOOKIE)


Property changes on: csw/mgar/pkg/freedesktop/xcbproto/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id


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