aboutsummaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2005-05-20 00:57:25 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2005-05-20 00:57:25 +0000
commitecba2e820452d2dfee869696e4bea496344e32a7 (patch)
treeccf3ea79b4bb5c9162bd8d8d18b61007828af341 /science
parente85f23b02032bed98538d59dc1377ec9d3224a99 (diff)
downloadports-ecba2e820452d2dfee869696e4bea496344e32a7.tar.gz
ports-ecba2e820452d2dfee869696e4bea496344e32a7.zip
Notes
Diffstat (limited to 'science')
-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 e23c9ff78357..227c26e28cda 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 8ccfaf44854c..6ff7f338a3db 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