aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gaupol
diff options
context:
space:
mode:
authorThomas Zander <riggs@FreeBSD.org>2014-06-22 15:04:03 +0000
committerThomas Zander <riggs@FreeBSD.org>2014-06-22 15:04:03 +0000
commit69445c052c18f34f6aea92e12fa27b7d4577f550 (patch)
treee723b9ac313490ccb8903bfc41cc050247c5bd35 /multimedia/gaupol
parente11c2260cd1ed9cc104b060b11c34f65240a5f2a (diff)
downloadports-69445c052c18f34f6aea92e12fa27b7d4577f550.tar.gz
ports-69445c052c18f34f6aea92e12fa27b7d4577f550.zip
Notes
Diffstat (limited to 'multimedia/gaupol')
-rw-r--r--multimedia/gaupol/Makefile6
-rw-r--r--multimedia/gaupol/files/patch-setup.py13
-rw-r--r--multimedia/gaupol/pkg-plist1
3 files changed, 16 insertions, 4 deletions
diff --git a/multimedia/gaupol/Makefile b/multimedia/gaupol/Makefile
index 8fb2cc253ae7..a371332436bc 100644
--- a/multimedia/gaupol/Makefile
+++ b/multimedia/gaupol/Makefile
@@ -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>
diff --git a/multimedia/gaupol/files/patch-setup.py b/multimedia/gaupol/files/patch-setup.py
new file mode 100644
index 000000000000..259d48d308c3
--- /dev/null
+++ b/multimedia/gaupol/files/patch-setup.py
@@ -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."""
diff --git a/multimedia/gaupol/pkg-plist b/multimedia/gaupol/pkg-plist
index 6ea3af147776..7eb1bb6c84ca 100644
--- a/multimedia/gaupol/pkg-plist
+++ b/multimedia/gaupol/pkg-plist
@@ -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