Date: Wed, 3 Dec 2014 17:53:06 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r373847 - in head/x11-toolkits/py-gtkglext: . files Message-ID: <201412031753.sB3Hr6aJ019342@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 -@dirrm %%PYTHON_SITELIBDIR%%/gtk-2.0/gtk/gtkgl -@dirrm %%PYTHON_SITELIBDIR%%/gtk-2.0/gtk/gdkgl
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412031753.sB3Hr6aJ019342>