aboutsummaryrefslogtreecommitdiff
path: root/astro/google-earth
diff options
context:
space:
mode:
authorFlorent Thoumie <flz@FreeBSD.org>2006-07-03 14:00:05 +0000
committerFlorent Thoumie <flz@FreeBSD.org>2006-07-03 14:00:05 +0000
commit2113692aaf9076d087c6db0a655a7cbbe70ce288 (patch)
tree147e228221175a70caef1e3616a1960e160b6bf4 /astro/google-earth
parent997b8d69e143371be4f057d4d0e1b2c4c7d8bf66 (diff)
downloadports-2113692aaf9076d087c6db0a655a7cbbe70ce288.tar.gz
ports-2113692aaf9076d087c6db0a655a7cbbe70ce288.zip
Notes
Diffstat (limited to 'astro/google-earth')
-rw-r--r--astro/google-earth/Makefile16
-rw-r--r--astro/google-earth/pkg-plist4
2 files changed, 13 insertions, 7 deletions
diff --git a/astro/google-earth/Makefile b/astro/google-earth/Makefile
index f47d2f5b0608..469ecb001972 100644
--- a/astro/google-earth/Makefile
+++ b/astro/google-earth/Makefile
@@ -7,6 +7,7 @@
PORTNAME= google-earth
PORTVERSION= 4
+PORTREVISION= 1
CATEGORIES= astro deskutils
MASTER_SITES= http://dl.google.com/earth/GE${PORTVERSION}/
DISTFILES= GoogleEarthLinux.bin
@@ -21,6 +22,7 @@ RUN_DEPENDS= update-mime-database:${PORTSDIR}/misc/shared-mime-info
RESTRICTED= Not sure about redistribution rights
USE_LINUX= yes
+USE_GNOME= desktopfileutils
.include <bsd.port.pre.mk>
@@ -39,9 +41,9 @@ RUN_DEPENDS+= ${LINUXBASE}/lib/libGL.so.1:${PORTSDIR}/graphics/linux_glx
do-build:
@${MKDIR} ${WRKSRC}
@${CP} ${DISTDIR}/${DISTFILES} ${WRKSRC}
- @cd ${WRKSRC} && ${UNMAKESELF} ${DISTFILES} && ${RM} ${DISTFILES}
- @cd ${WRKSRC} && ${TAR} xf googleearth-data.tar && ${RM} googleearth-data.tar
- @cd ${WRKSRC} && ${TAR} xf googleearth-linux-x86.tar && ${RM} googleearth-linux-x86.tar
+ @cd ${WRKSRC} && ${UNMAKESELF} ${DISTFILES} && ${RM} -f ${DISTFILES}
+ @cd ${WRKSRC} && ${TAR} xf googleearth-data.tar && ${RM} -f googleearth-data.tar
+ @cd ${WRKSRC} && ${TAR} xf googleearth-linux-x86.tar && ${RM} -f googleearth-linux-x86.tar
@${REINPLACE_CMD} -i "" -e 's|^# Set the home.*|GOOGLEEARTH_DATA_PATH=${DATADIR}|' ${WRKSRC}/bin/googleearth
@${REINPLACE_CMD} -i "" -e "s|^# Let's boogie.*|rm -f \$${HOME}/.googleearth/instance-running-lock|" ${WRKSRC}/bin/googleearth
@${REINPLACE_CMD} -i "" -e 's/^TMPPATH.*/exit 0/' ${WRKSRC}/postinstall.sh
@@ -53,11 +55,13 @@ do-build:
do-install:
${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/googleearth-mimetypes.xml ${PREFIX}/share/mime/application/
+ ${INSTALL_DATA} ${WRKSRC}/googleearth-mimetypes.xml ${PREFIX}/share/mime/packages/
${INSTALL_DATA} ${WRKSRC}/googleearth.desktop ${PREFIX}/share/applications/
${CP} -r ${WRKSRC}/* ${DATADIR}
- @${RM} ${DATADIR}/googleearth-mimetypes.xml
- @${RM} ${DATADIR}/googleearth.desktop
+ @${RM} -f ${DATADIR}/googleearth-mimetypes.xml
+ @${RM} -f ${DATADIR}/googleearth.desktop
${LN} -sf ${DATADIR}/bin/googleearth ${PREFIX}/bin/
+ -@update-mime-database ${PREFIX}/share/mime
+ -@update-desktop-database
.include <bsd.port.post.mk>
diff --git a/astro/google-earth/pkg-plist b/astro/google-earth/pkg-plist
index c75f78eedbba..e87a79afbd32 100644
--- a/astro/google-earth/pkg-plist
+++ b/astro/google-earth/pkg-plist
@@ -1,6 +1,6 @@
bin/googleearth
share/applications/googleearth.desktop
-share/mime/application/googleearth-mimetypes.xml
+share/mime/packages/googleearth-mimetypes.xml
%%DATADIR%%/bin/googleearth
%%DATADIR%%/res/palette-5.png
%%DATADIR%%/res/dot.png
@@ -745,3 +745,5 @@ share/mime/application/googleearth-mimetypes.xml
@dirrm %%DATADIR%%
@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
+@exec %%LOCALBASE%%/bin/update-desktop-database >/dev/null || true
+@unexec %%LOCALBASE%%/bin/update-desktop-database >/dev/null || true