From c971f18cb790b3e2092f02d610be24700bda7bf5 Mon Sep 17 00:00:00 2001 From: glewis <glewis@FreeBSD.org> Date: Sun, 3 Oct 2010 06:23:58 +0000 Subject: . Fix overwriting of JUnit 4 during installation. Submitted by: tg@ --- java/eclipse/Makefile | 11 +---------- java/eclipse/files/patch-eclipse-build | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/java/eclipse/Makefile b/java/eclipse/Makefile index 6adf8c107643..2fb386b11e99 100644 --- a/java/eclipse/Makefile +++ b/java/eclipse/Makefile @@ -183,6 +183,7 @@ post-patch: .endfor @${REINPLACE_CMD} -e "s+=/usr/share/java/junit.jar+=${BUILD_WRKSRC}/bundles/junit.jar+" ${BUILD_WRKSRC}/nonosgidependencies.properties @${REINPLACE_CMD} -e "s+=/usr/share/java/junit4.jar+=${BUILD_WRKSRC}/bundles/junit4.jar+" ${BUILD_WRKSRC}/nonosgidependencies.properties + @${REINPLACE_CMD} -e "s+/usr/share/java/junit4.jar+${BUILD_WRKSRC}/bundles/junit4.jar+" ${BUILD_WRKSRC}/build.xml .if defined(WITH_TESTS) @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} applyTestPatches) .endif @@ -208,16 +209,6 @@ do-install: ${BUILD_WRKSRC}/eclipse.tmp .endif @${INSTALL_SCRIPT} ${WRKSRC}/eclipse.tmp ${PREFIX}/bin/${PORTNAME} - @for f in `ls ${BUILD_WRKSRC}/bundles/*.jar`; do \ - BASE=`basename $$f`; \ - FILES=`find ${PORTDESTDIR}/plugins/ -name "$$BASE"`; \ - if [ ! -z "$$FILES" ]; then \ - for s in $$FILES; do \ - ${RM} "$$s"; \ - ${INSTALL_DATA} "$$f" "$$s"; \ - done; \ - fi; \ - done @${PREFIX}/bin/${PORTNAME} -initialize -consolelog -@update-desktop-database @(cd ${PREFIX}; ${FIND} -s lib/${PORTNAME} -not -type d) >> ${TMPPLIST} diff --git a/java/eclipse/files/patch-eclipse-build b/java/eclipse/files/patch-eclipse-build index 4b087e24034f..e93d292e46b9 100644 --- a/java/eclipse/files/patch-eclipse-build +++ b/java/eclipse/files/patch-eclipse-build @@ -122,7 +122,7 @@ $FreeBSD$ - <arg value="--no-target-directory" /> - <arg value="${buildDirectory}/installation" /> - <arg value="${destDir}${prefix}/${libDir}/eclipse" /> -+ <arg value="-R" /> ++ <arg value="-RL" /> + <arg value="${buildDirectory}/installation/" /> + <arg value="${destDir}${prefix}/${libDir}/%%PORTNAME%%" /> </exec> -- cgit