diff options
Diffstat (limited to 'java/eclipse-datatools/Makefile')
-rw-r--r-- | java/eclipse-datatools/Makefile | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/java/eclipse-datatools/Makefile b/java/eclipse-datatools/Makefile index 33b66743b101..ab860bb11b4e 100644 --- a/java/eclipse-datatools/Makefile +++ b/java/eclipse-datatools/Makefile @@ -1,21 +1,20 @@ # New ports collection makefile for: eclipse-datatools -# Date created: Dom 1 Abr 2007 22:18:17 UTC +# Date created: Sun 1 Apr 2007 22:18:17 UTC # Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> # # $FreeBSD$ # PORTNAME= datatools -PORTVERSION= 0.9.1 -PORTREVISION= 1 +DISTVERSION= 1.5.1_101607 CATEGORIES= java devel databases -MASTER_SITE_SUBDIR= ${PORTVERSION} +MASTER_SITE_SUBDIR= 1.5 PKGNAMEPREFIX= eclipse- -DISTNAME= dtp_${PORTVERSION} +DISTNAME= dtp-sdk_${DISTVERSION} DIST_SUBDIR= eclipse MAINTAINER= lioux@FreeBSD.org -COMMENT= Datatools for eclipse +COMMENT= Data Tools Platform for the Eclipse IDE RUN_DEPENDS= eclipse:${PORTSDIR}/java/eclipse \ ${LOCALBASE}/eclipse/features/org.eclipse.emf_2.2.4.v200710030400/feature.xml:${PORTSDIR}/java/eclipse-emf \ @@ -28,12 +27,25 @@ USE_JAVA= yes JAVA_VERSION= 1.4+ JAVA_OS= native +post-extract: +# avoid empty dirs since they break the automated PLIST generation + @${FIND} ${WRKSRC} -type d -empty \ + -exec ${TOUCH} "{}/.keep_me" \; + do-install: +# create destination dir @${MKDIR} ${PREFIX}/eclipse - @${CP} -r ${WRKSRC}/eclipse/plugins ${PREFIX}/eclipse - @${CP} -r ${WRKSRC}/eclipse/features ${PREFIX}/eclipse - @(cd ${WRKSRC}; ${FIND} -s eclipse/features eclipse/plugins -not -type d) >> ${TMPPLIST} - @(cd ${WRKSRC}; ${FIND} -s -d eclipse/features eclipse/plugins -type d) \ +# install both files and directories + @(cd ${WRKSRC}/eclipse && \ + ${FIND} -s features plugins -type d \ + -exec ${MKDIR} "${PREFIX}/eclipse/{}" \; && \ + ${FIND} -s features plugins -not -type d \ + -exec ${INSTALL_DATA} "{}" "${PREFIX}/eclipse/{}" \; \ + ) +# annotate installation files + @(cd ${WRKSRC} && ${FIND} -s eclipse/features eclipse/plugins -not -type d) >> ${TMPPLIST} +# annotate installation directories + @(cd ${WRKSRC} && ${FIND} -s -d eclipse/features eclipse/plugins -type d) \ | ${GREP} -vE 'eclipse/plugins$$|eclipse/features$$' \ | ${SED} -ne 's,^,@dirrm ,p' >> ${TMPPLIST} |