diff options
author | beech <beech@FreeBSD.org> | 2008-01-15 04:35:40 +0800 |
---|---|---|
committer | beech <beech@FreeBSD.org> | 2008-01-15 04:35:40 +0800 |
commit | 5976158b17bcbd2e5c3fb9e4a5d20a87f20bcc21 (patch) | |
tree | 857a98d83049c106d06c3a18ef1b41cb216c2312 /games/py-mnemosyne | |
parent | 0dbefb57bdc0d5373dd6521961588468aeca5891 (diff) | |
download | freebsd-ports-gnome-5976158b17bcbd2e5c3fb9e4a5d20a87f20bcc21.tar.gz freebsd-ports-gnome-5976158b17bcbd2e5c3fb9e4a5d20a87f20bcc21.tar.zst freebsd-ports-gnome-5976158b17bcbd2e5c3fb9e4a5d20a87f20bcc21.zip |
- Fix install path
Reported by: pointyhat via droso
Approved by: linimon (mentor)
Diffstat (limited to 'games/py-mnemosyne')
-rw-r--r-- | games/py-mnemosyne/Makefile | 5 | ||||
-rw-r--r-- | games/py-mnemosyne/files/patch-setup.py | 13 | ||||
-rw-r--r-- | games/py-mnemosyne/pkg-plist | 4 |
3 files changed, 15 insertions, 7 deletions
diff --git a/games/py-mnemosyne/Makefile b/games/py-mnemosyne/Makefile index 584704775d21..ea48b1e11c34 100644 --- a/games/py-mnemosyne/Makefile +++ b/games/py-mnemosyne/Makefile @@ -24,9 +24,4 @@ PLIST_SUB+= PYVER=${PYTHON_VERSION} RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game -post-install: - @${INSTALL} -d ${PREFIX}/share/applications - @cd ${WRKSRC} && ${CP} mnemosyne.desktop ${PREFIX}/share/applications/ - @cd ${WRKSRC}/pixmaps && ${CP} mnemosyne.png ${PREFIX}/share/pixmaps/ - .include <bsd.port.mk> diff --git a/games/py-mnemosyne/files/patch-setup.py b/games/py-mnemosyne/files/patch-setup.py new file mode 100644 index 000000000000..0647b8387d4a --- /dev/null +++ b/games/py-mnemosyne/files/patch-setup.py @@ -0,0 +1,13 @@ +--- setup.py.orig 2007-12-27 10:09:54.000000000 -0900 ++++ setup.py 2008-01-14 08:59:26.000000000 -0900 +@@ -147,8 +147,8 @@ + else: + base_path = os.path.join(sys.exec_prefix, "lib", "python"+sys.version[:3], + "site-packages","mnemosyne") +- data_files = [('/usr/share/applications', ['mnemosyne.desktop']), +- ('/usr/share/icons', ['pixmaps/mnemosyne.png'])] ++ data_files = [('/usr/local/share/applications', ['mnemosyne.desktop']), ++ ('/usr/local/share/icons', ['pixmaps/mnemosyne.png'])] + + pixmap_path = os.path.join(base_path, "pixmaps") + util_path = os.path.join(base_path, "util") diff --git a/games/py-mnemosyne/pkg-plist b/games/py-mnemosyne/pkg-plist index a2cd4e47e407..45b5e09e0919 100644 --- a/games/py-mnemosyne/pkg-plist +++ b/games/py-mnemosyne/pkg-plist @@ -1,5 +1,3 @@ -@unexec rm -f %D/share/applications/mnemosyne.desktop -@unexec rm -f %D/share/pixmaps/mnemosyne.png bin/mnemosyne lib/%%PYVER%%/site-packages/mnemosyne/__init__.py lib/%%PYVER%%/site-packages/mnemosyne/__init__.pyc @@ -127,6 +125,8 @@ lib/%%PYVER%%/site-packages/mnemosyne/pyqt_ui/tip_frm.pyo lib/%%PYVER%%/site-packages/mnemosyne/version.py lib/%%PYVER%%/site-packages/mnemosyne/version.pyc lib/%%PYVER%%/site-packages/mnemosyne/version.pyo +share/applications/mnemosyne.desktop +share/icons/mnemosyne.png @dirrm lib/%%PYVER%%/site-packages/mnemosyne/pyqt_ui/locale @dirrm lib/%%PYVER%%/site-packages/mnemosyne/pyqt_ui @dirrm lib/%%PYVER%%/site-packages/mnemosyne/core |