diff options
author | jylefort <jylefort@FreeBSD.org> | 2005-05-20 00:57:25 +0000 |
---|---|---|
committer | jylefort <jylefort@FreeBSD.org> | 2005-05-20 00:57:25 +0000 |
commit | 5c6019d4f9d5fa4e7da81a67758998684bbc84ad (patch) | |
tree | adc0d9016c5b96f739c17a2ac6706613f5a6112d | |
parent | b06e09b1566bf231203f59450366f6c7390c469d (diff) | |
download | FreeBSD-ports-5c6019d4f9d5fa4e7da81a67758998684bbc84ad.zip FreeBSD-ports-5c6019d4f9d5fa4e7da81a67758998684bbc84ad.tar.gz |
- Properly set the app-datadir property of the GnomeProgram object, so
that gnome.help_display() can locate the help
- Invoke update-mime-database from the package installation and
deinstallation, since the .desktop file contains a MimeType key
- Fix the icon paths in gramps.keys
-rw-r--r-- | science/gramps/Makefile | 11 | ||||
-rw-r--r-- | science/gramps/pkg-plist | 2 |
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 |