1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
Approved by:	portmgr@
This commit is contained in:
Vanilla I. Shu 2014-06-18 13:20:15 +00:00
parent cdeb3e55b5
commit ea4b5a6176
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358272

View File

@ -20,29 +20,22 @@ LICENSE_PERMS= dist-sell pkg-sell auto-accept
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
INSTALLS_ICONS= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
USE_JAVA= yes
USES= desktop-file-utils shared-mime-info
WRKSRC= ${WRKDIR}/geogebra-${PORTVERSION}
USES= desktop-file-utils shared-mime-info
WRKSRC= ${WRKDIR}/geogebra-${PORTVERSION}
FIND_JARS= -type f -name "*.jar" -maxdepth 1 -print0
NO_STAGE= yes
do-install:
cd ${WRKSRC} && ${MKDIR} ${DATADIR} && \
${INSTALL_SCRIPT} ${WRKSRC}/geogebra ${DATADIR} && \
${LN} -s ${DATADIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} && \
${FIND} . ${FIND_JARS} | ${XARGS} -0 -J % ${INSTALL_DATA} % ${DATADIR} && \
${COPYTREE_SHARE} icons ${PREFIX}/share && \
${MKDIR} ${PREFIX}/share/mime/packages && \
${INSTALL_DATA} ${WRKSRC}/geogebra.xml ${PREFIX}/share/mime/packages && \
${INSTALL_DATA} ${WRKSRC}/geogebra.desktop ${DESKTOPDIR}
cd ${WRKSRC} && ${MKDIR} ${STAGEDIR}${DATADIR} && \
${INSTALL_SCRIPT} ${WRKSRC}/geogebra ${STAGEDIR}${DATADIR} && \
${LN} -s ${DATADIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} && \
${FIND} . ${FIND_JARS} | ${XARGS} -0 -J % ${INSTALL_DATA} % ${STAGEDIR}${DATADIR} && \
${COPYTREE_SHARE} icons ${STAGEDIR}${PREFIX}/share && \
${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages && \
${INSTALL_DATA} ${WRKSRC}/geogebra.xml ${STAGEDIR}${PREFIX}/share/mime/packages && \
${INSTALL_DATA} ${WRKSRC}/geogebra.desktop ${STAGEDIR}${DESKTOPDIR}
.include <bsd.port.mk>