summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--science/gramps/Makefile11
-rw-r--r--science/gramps/pkg-plist2
2 files changed, 10 insertions, 3 deletions
diff --git a/science/gramps/Makefile b/science/gramps/Makefile
index e23c9ff..227c26e 100644
--- a/science/gramps/Makefile
+++ b/science/gramps/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gramps
PORTVERSION= 2.0.0
+PORTREVISION= 1
CATEGORIES= science gnome python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gramps
@@ -20,7 +21,7 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb \
USE_X_PREFIX= yes
USE_PYTHON= yes
USE_GMAKE= yes
-USE_GNOME= gnomehack gnomeprefix pygnome2
+USE_GNOME= gnomehack gnomeprefix pygnome2 desktopfileutils
GNU_CONFIGURE= yes
USE_REINPLACE= yes
INSTALLS_OMF= yes
@@ -31,10 +32,11 @@ GCONF_SCHEMAS= gramps.schemas
post-patch:
@${REINPLACE_CMD} -e 's|/@PACKAGE@/gnome||' \
${WRKSRC}/doc/gramps-manual/C/Makefile.in
+ @${REINPLACE_CMD} -e 's|share/gramps|share/gnome|' \
+ ${WRKSRC}/src/gramps_main.py
@${REINPLACE_CMD} -e 's|share/gramps|share/gnome/gramps|' \
${WRKSRC}/src/Makefile.in \
- ${WRKSRC}/src/docgen/Makefile.in \
- ${WRKSRC}/src/gramps_main.py
+ ${WRKSRC}/src/docgen/Makefile.in
@${REINPLACE_CMD} -e \
's|share/application-registry|share/gnome/application-registry|; \
s|share/applications|share/gnome/applications|; \
@@ -43,6 +45,9 @@ post-patch:
@${REINPLACE_CMD} -e \
's|gramps\.png|${PREFIX}/share/gnome/gramps/gramps.png|' \
${WRKSRC}/src/data/gramps.desktop
+ @${REINPLACE_CMD} -e \
+ 's|/usr/share/gramps|${PREFIX}/share/gnome/gramps|' \
+ ${WRKSRC}/src/data/gramps.keys
post-install:
@${CAT} ${PKGMESSAGE}
diff --git a/science/gramps/pkg-plist b/science/gramps/pkg-plist
index 8ccfaf4..6ff7f33 100644
--- a/science/gramps/pkg-plist
+++ b/science/gramps/pkg-plist
@@ -502,5 +502,7 @@ share/mime/packages/gramps.xml
@dirrm share/gnome/help/gramps/C
@dirrm share/gnome/help/gramps
@dirrm share/gnome/omf/gramps
+@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
+@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
OpenPOWER on IntegriCloud