svn commit: r373847 - in head/x11-toolkits/py-gtkglext: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Wed Dec 3 17:53:07 UTC 2014
Author: amdmi3
Date: Wed Dec 3 17:53:05 2014
New Revision: 373847
URL: https://svnweb.freebsd.org/changeset/ports/373847
QAT: https://qat.redports.org/buildarchive/r373847/
Log:
- Fix python compilation to not reference stagedir in compiled files
- Strip libraries
MFH: 2014Q4
Added:
head/x11-toolkits/py-gtkglext/files/
head/x11-toolkits/py-gtkglext/files/patch-py-compile (contents, props changed)
Modified:
head/x11-toolkits/py-gtkglext/Makefile
head/x11-toolkits/py-gtkglext/pkg-plist
Modified: head/x11-toolkits/py-gtkglext/Makefile
==============================================================================
--- head/x11-toolkits/py-gtkglext/Makefile Wed Dec 3 17:10:21 2014 (r373846)
+++ head/x11-toolkits/py-gtkglext/Makefile Wed Dec 3 17:53:05 2014 (r373847)
@@ -20,4 +20,8 @@ USES= gmake libtool pathfix pkgconfig p
USE_GNOME= pygtk2
GNU_CONFIGURE= yes
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/gtk-2.0/gtk/gtkgl/_gtkgl.so
+ ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/gtk-2.0/gtk/gdkgl/_gdkgl.so
+
.include <bsd.port.mk>
Added: head/x11-toolkits/py-gtkglext/files/patch-py-compile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11-toolkits/py-gtkglext/files/patch-py-compile Wed Dec 3 17:53:05 2014 (r373847)
@@ -0,0 +1,19 @@
+--- py-compile.orig 2005-02-03 03:22:53.000000000 +0300
++++ py-compile 2014-12-03 19:39:49.000000000 +0300
+@@ -72,7 +72,7 @@
+ continue
+ print file,
+ sys.stdout.flush()
+- py_compile.compile(path)
++ py_compile.compile(path, path + 'c', os.path.join('/', os.path.relpath(path, os.environ['DESTDIR'])))
+ print" || exit $?
+
+ # this will fail for python < 1.5, but that doesn't matter ...
+@@ -87,6 +87,6 @@
+ continue
+ print file,
+ sys.stdout.flush()
+- py_compile.compile(path)
++ py_compile.compile(path, path + 'o', os.path.join('/', os.path.relpath(path, os.environ['DESTDIR'])))
+ print" 2>/dev/null || :
+
Modified: head/x11-toolkits/py-gtkglext/pkg-plist
==============================================================================
--- head/x11-toolkits/py-gtkglext/pkg-plist Wed Dec 3 17:10:21 2014 (r373846)
+++ head/x11-toolkits/py-gtkglext/pkg-plist Wed Dec 3 17:53:05 2014 (r373847)
@@ -19,5 +19,3 @@ libdata/pkgconfig/pygtkglext-1.0.pc
share/pygtk/2.0/defs/gdkglext-types.defs
share/pygtk/2.0/defs/gdkglext.defs
share/pygtk/2.0/defs/gtkglext.defs
- at dirrm %%PYTHON_SITELIBDIR%%/gtk-2.0/gtk/gtkgl
- at dirrm %%PYTHON_SITELIBDIR%%/gtk-2.0/gtk/gdkgl
More information about the svn-ports-all
mailing list