Add a common Makefile to simplify installing eclipse plugins in the

correct equinox dropins directory.
This commit is contained in:
Alex Dupre
2010-09-07 08:40:13 +00:00
parent c1c429e85f
commit 7afa2f3cd2
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -222,6 +222,7 @@ do-install:
-@update-desktop-database
@(cd ${PREFIX}; ${FIND} -s lib/${PORTNAME} -not -type d) >> ${TMPPLIST}
@(cd ${PREFIX}; ${FIND} -s -d lib/${PORTNAME} -type d) | ${SED} -ne "s,^,@dirrm ,p" >> ${TMPPLIST}
@${ECHO_CMD} "@exec ${MKDIR} %D/share/${PORTNAME}/dropins 2> /dev/null || /usr/bin/true" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ${RMDIR} %D/share/${PORTNAME}/dropins 2>/dev/null || true " >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ${RMDIR} %D/share/${PORTNAME} 2>/dev/null || true " >> ${TMPPLIST}
@${ECHO_CMD} "@exec ${PREFIX}/bin/update-desktop-database > /dev/null || /usr/bin/true" >> ${TMPPLIST}
+13
View File
@@ -0,0 +1,13 @@
NO_BUILD= yes
USE_JAVA= yes
JAVA_VERSION= 1.6
JAVA_OS= native
REPO_DIRS?= features plugins
do-install:
@${MKDIR} ${PREFIX}/share/eclipse/dropins/${PORTNAME}/eclipse
@(cd ${WRKSRC}; ${COPYTREE_SHARE} "${REPO_DIRS}" ${PREFIX}/share/eclipse/dropins/${PORTNAME}/eclipse/)
@(cd ${PREFIX}; ${FIND} -s share/eclipse/dropins/${PORTNAME} -not -type d) >> ${TMPPLIST}
@(cd ${PREFIX}; ${FIND} -s -d share/eclipse/dropins/${PORTNAME} -type d) \
| ${SED} -ne 's,^,@dirrm ,p' >> ${TMPPLIST}