1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Stagify

Approved by:	mentors (implicit)
This commit is contained in:
Thomas Zander 2014-06-22 15:04:03 +00:00
parent e11c2260cd
commit 69445c052c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358813
3 changed files with 16 additions and 4 deletions

View File

@ -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>

View File

@ -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."""

View File

@ -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