From d3560e2560989ab085f8e8457bed2f19a2e9f674 Mon Sep 17 00:00:00 2001 From: Beech Rintoul Date: Fri, 12 Sep 2008 07:16:11 +0000 Subject: - Patch setup.py to not install files during build - Unbreak Reported by: pointyhat via pav Approved by: portmgr (erwin) --- games/py-mnemosyne/Makefile | 6 ++---- games/py-mnemosyne/files/patch-setup.py | 9 ++++----- 2 files changed, 6 insertions(+), 9 deletions(-) (limited to 'games/py-mnemosyne') diff --git a/games/py-mnemosyne/Makefile b/games/py-mnemosyne/Makefile index cc6964de7f28..07115af2a031 100644 --- a/games/py-mnemosyne/Makefile +++ b/games/py-mnemosyne/Makefile @@ -18,8 +18,6 @@ EXTRACT_SUFX= .tgz MAINTAINER= beech@FreeBSD.org COMMENT= Flash-card tool which optimises your learning process -BROKEN= installs files in build phase - USE_PYTHON= 2.4+ USE_PYDISTUTILS= easy_install PYEASYINSTALL_EGG= Mnemosyne-${PORTVERSION}-${PYTHON_VERSION:S/thon//}${PYEASYINSTALL_OSARCH}.egg @@ -29,9 +27,9 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game py*-qt>=0:${PORTSDIR}/x11-toolkits/py-qt post-install: - @${MKDIR} ${PREFIX}/share/applications || true + @${INSTALL} -d ${PREFIX}/share/applications @${INSTALL_DATA} ${WRKSRC}/mnemosyne.desktop ${PREFIX}/share/applications/ - @${MKDIR} ${PREFIX}/share/icons || true + @${INSTALL} -d ${PREFIX}/share/icons @${INSTALL_DATA} ${WRKSRC}/pixmaps/mnemosyne.png ${PREFIX}/share/icons/ .include diff --git a/games/py-mnemosyne/files/patch-setup.py b/games/py-mnemosyne/files/patch-setup.py index 0647b8387d4a..1294a630486b 100644 --- a/games/py-mnemosyne/files/patch-setup.py +++ b/games/py-mnemosyne/files/patch-setup.py @@ -1,13 +1,12 @@ ---- 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 @@ +--- setup.py.orig 2008-08-23 08:05:54.000000000 -0800 ++++ setup.py 2008-09-11 20:19:12.000000000 -0800 +@@ -151,8 +151,7 @@ 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'])] ++ data_files = [] pixmap_path = os.path.join(base_path, "pixmaps") util_path = os.path.join(base_path, "util") -- cgit v1.2.3