aboutsummaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorJuergen Lock <nox@FreeBSD.org>2014-01-26 19:06:44 +0000
committerJuergen Lock <nox@FreeBSD.org>2014-01-26 19:06:44 +0000
commit2d27e3e137097f08243e2104819d97a55604606a (patch)
tree6e5e6de0413b2a98bff491bd44d5ac6459df00dc /astro
parent7e642a47301497f8cb92bd285aa80a06150ca3bd (diff)
downloadports-2d27e3e137097f08243e2104819d97a55604606a.tar.gz
ports-2d27e3e137097f08243e2104819d97a55604606a.zip
Notes
Diffstat (limited to 'astro')
-rw-r--r--astro/google-earth/Makefile27
-rw-r--r--astro/google-earth/pkg-plist4
2 files changed, 14 insertions, 17 deletions
diff --git a/astro/google-earth/Makefile b/astro/google-earth/Makefile
index a12c9d9a3152..e706111893e2 100644
--- a/astro/google-earth/Makefile
+++ b/astro/google-earth/Makefile
@@ -14,17 +14,14 @@ MAINTAINER= nox@FreeBSD.org
COMMENT= Explore, Search, and Discover
EXTRACT_DEPENDS= unmakeself:${PORTSDIR}/archivers/unmakeself
-RUN_DEPENDS= update-mime-database:${PORTSDIR}/misc/shared-mime-info
RESTRICTED= Not really sure about the redistribution terms
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/\..*//g}/
-NO_STAGE= yes
USE_LINUX= yes
USE_LINUX_APPS= xorglibs
-USE_GNOME= desktopfileutils
-USES= perl5
+USES= perl5 shared-mime-info desktop-file-utils
USE_PERL5= patch build
.include <bsd.port.pre.mk>
@@ -67,14 +64,18 @@ pre-su-install:
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WRKSRC}
do-install:
- ${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/googleearth-mimetypes.xml ${PREFIX}/share/mime/packages/
- ${INSTALL_DATA} ${WRKSRC}/Google-googleearth.desktop ${PREFIX}/share/applications/googleearth.desktop
- ${CP} -rp ${WRKSRC}/* ${DATADIR}
- ${RM} -f ${DATADIR}/googleearth-mimetypes.xml ${DATADIR}/googleearth.desktop
- ${INSTALL_SCRIPT} ${FILESDIR}/browserwrapper ${DATADIR}/bin
- ${LN} -sf ${DATADIR}/bin/googleearth ${PREFIX}/bin/
- -@update-mime-database ${PREFIX}/share/mime
- -@update-desktop-database
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages
+ ${INSTALL_DATA} ${WRKSRC}/googleearth-mimetypes.xml \
+ ${STAGEDIR}${PREFIX}/share/mime/packages/
+ ${INSTALL_DATA} ${WRKSRC}/Google-googleearth.desktop \
+ ${STAGEDIR}${PREFIX}/share/applications/googleearth.desktop
+ ${CP} -rp ${WRKSRC}/* ${STAGEDIR}${DATADIR}
+ ${RM} -f ${STAGEDIR}${DATADIR}/googleearth-mimetypes.xml \
+ ${STAGEDIR}${DATADIR}/googleearth.desktop
+ ${INSTALL_SCRIPT} ${FILESDIR}/browserwrapper \
+ ${STAGEDIR}${DATADIR}/bin/
+ ${LN} -sf ${DATADIR}/bin/googleearth \
+ ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.post.mk>
diff --git a/astro/google-earth/pkg-plist b/astro/google-earth/pkg-plist
index db5a8916c51f..4f2b7704968d 100644
--- a/astro/google-earth/pkg-plist
+++ b/astro/google-earth/pkg-plist
@@ -561,10 +561,6 @@ bin/googleearth
%%DATADIR%%/shaders/watersurface.ps_2_0
%%DATADIR%%/shaders/watersurface.vs_2_0
share/applications/googleearth.desktop
-share/mime/application/earthviewer.xml
-share/mime/application/keyhole.xml
-share/mime/application/vnd.google-earth.kml+xml.xml
-share/mime/application/vnd.google-earth.kmz.xml
share/mime/packages/googleearth-mimetypes.xml
@dirrm %%DATADIR%%/bin
@dirrm %%DATADIR%%/desktop_icons/consumer