Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2014 15:04:03 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r358813 - in head/multimedia/gaupol: . files
Message-ID:  <201406221504.s5MF4357097918@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: riggs
Date: Sun Jun 22 15:04:03 2014
New Revision: 358813
URL: http://svnweb.freebsd.org/changeset/ports/358813
QAT: https://qat.redports.org/buildarchive/r358813/

Log:
  - Stagify
  
  Approved by:	mentors (implicit)

Added:
  head/multimedia/gaupol/files/
  head/multimedia/gaupol/files/patch-setup.py   (contents, props changed)
Modified:
  head/multimedia/gaupol/Makefile
  head/multimedia/gaupol/pkg-plist

Modified: head/multimedia/gaupol/Makefile
==============================================================================
--- head/multimedia/gaupol/Makefile	Sun Jun 22 14:55:50 2014	(r358812)
+++ head/multimedia/gaupol/Makefile	Sun Jun 22 15:04:03 2014	(r358813)
@@ -23,10 +23,6 @@ USE_PYDISTUTILS=yes
 USES=		desktop-file-utils
 INSTALLS_ICONS=	yes
 
-MAN1=		${PORTNAME}.1
-
-NO_STAGE=	yes
-
 OPTIONS_DEFINE=	NLS
 
 .include <bsd.port.options.mk>
@@ -43,6 +39,8 @@ post-patch:
 		-e 's|share/man|man|g' \
 		-e 's,distutils\.command\.install$$,setuptools\.command\.install,g' \
 		-e 's,distutils\.command\.install\.,setuptools\.command\.install\.,g' \
+		-e 's|%%STAGEDIR%%|"${STAGEDIR}"|' \
+		-e 's|%%PREFIX%%|"${PREFIX}"|' \
 		${WRKSRC}/setup.py
 
 .include <bsd.port.mk>

Added: head/multimedia/gaupol/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/gaupol/files/patch-setup.py	Sun Jun 22 15:04:03 2014	(r358813)
@@ -0,0 +1,13 @@
+--- setup.py.orig	2011-09-11 16:26:55.000000000 +0200
++++ setup.py	2014-06-22 15:30:04.801515555 +0200
+@@ -284,7 +284,9 @@
+         data_dir = get_command_obj("install_data").install_dir
+         data_dir = os.path.join(data_dir, "share", "gaupol")
+         files = glob.glob("%s/extensions/*/*.py" % data_dir)
+-        distutils.util.byte_compile(files, optimize, self.force, self.dry_run)
++        prefix = %%STAGEDIR%%
++        base_dir = %%PREFIX%%
++        distutils.util.byte_compile(files, optimize, self.force, prefix = prefix, base_dir = base_dir, dry_run = self.dry_run)
+ 
+     def __get_desktop_file(self):
+         """Return a tuple for translated desktop file."""

Modified: head/multimedia/gaupol/pkg-plist
==============================================================================
--- head/multimedia/gaupol/pkg-plist	Sun Jun 22 14:55:50 2014	(r358812)
+++ head/multimedia/gaupol/pkg-plist	Sun Jun 22 15:04:03 2014	(r358813)
@@ -1,4 +1,5 @@
 bin/gaupol
+man/man1/gaupol.1.gz
 %%PYTHON_SITELIBDIR%%/aeidon/__init__.py
 %%PYTHON_SITELIBDIR%%/aeidon/__init__.pyc
 %%PYTHON_SITELIBDIR%%/aeidon/__init__.pyo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406221504.s5MF4357097918>