blob: a2831deb012d47855ff32ee9c93c81119d1d97be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# New ports collection makefile for: eclipse-datatools
# Date created: Sun 1 Apr 2007 22:18:17 UTC
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= datatools
DISTVERSION= 1.6.1
PORTREVISION= 2
CATEGORIES= java devel databases
MASTER_SITES= ${MASTER_SITE_ECLIPSE:S,/eclipse/downloads/drops/,/datatools/downloads/,}
MASTER_SITE_SUBDIR= ${PORTVERSION:R}
PKGNAMEPREFIX= eclipse-
DISTNAME= dtp_${DISTVERSION}
DIST_SUBDIR= eclipse
MAINTAINER= lioux@FreeBSD.org
COMMENT= Data Tools Platform for the Eclipse IDE
RUN_DEPENDS= eclipse:${PORTSDIR}/java/eclipse \
${LOCALBASE}/eclipse/features/org.eclipse.emf_2.3.2.v200802051830/feature.xml:${PORTSDIR}/java/eclipse-emf \
${LOCALBASE}/eclipse/features/org.eclipse.gef_3.3.2.v20080129/feature.xml:${PORTSDIR}/java/eclipse-gef
LICENSE= EPL
LICENSE_NAME= Eclipse Public License
LICENSE_GROUPS= FSF OSI
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LICENSE_TEXT= The license: EPL (Eclipse Public License) is standard, please read from the web. A copy of the EPL is available at http://www.eclipse.org/org/documents/epl-v10.php
NO_BUILD= yes
NO_WRKSUBDIR= yes
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.5+
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
# 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/{}" \; \
)
# used to manually generate the plist files
generate-plist-locally: build
# annotate installation files
@(cd ${WRKSRC}/eclipse && ${FIND} -s features plugins -not -type d) \
| ${SED} -ne 's,^,eclipse/,p' > ${PLIST}
# annotate installation directories
@(cd ${WRKSRC}/eclipse && ${FIND} -s -d features plugins -type d) \
| ${GREP} -vE '^plugins$$|^features$$' \
| ${SED} -ne 's,^,@dirrm eclipse/,p' >> ${PLIST}
.include <bsd.port.mk>
|