blob: b113f245536d307ab5f00cfe5a55021584548d89 (
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
65
66
67
68
69
70
71
72
|
# New ports collection makefile for: RDT
# Date created: 13 Jan 2008
# Whom: rehsack@web.de
#
# $FreeBSD$
#
PORTNAME= RDT
PORTVERSION= 0.9.1
PORTREVISION= 2
CATEGORIES= java editors devel
MASTER_SITES= SF/rubyeclipse/${PORTNAME:L}/${PORTNAME}%20${PORTVERSION}
PKGNAMEPREFIX= eclipse-
DISTNAME= ${RDT}-${RDTVERSION}
MAINTAINER= rehsack@web.de
COMMENT= RDT adds Ruby support to the Eclipse IDE Framework
RUN_DEPENDS= ${LOCALBASE}/bin/eclipse:${PORTSDIR}/java/eclipse
NO_BUILD= yes
USE_ZIP= yes
USE_RUBY= yes
USE_JAVA= yes
WRKSRC= ${WRKDIR}/${RDT}
RDT= org.rubypeople.rdt
RDTVERSION= ${PORTVERSION}.200711131528NGT
ECLIPSE= ${PREFIX}/eclipse
RDTFILES= features/org.rubypeople.rdt_${RDTVERSION} \
features/com.aptana.rdt.mylyn_feature_${RDTVERSION} \
plugins/com.aptana.rdt.mylyn_${RDTVERSION} \
plugins/com.aptana.rdt.ui_${RDTVERSION} \
plugins/com.aptana.rdt_${RDTVERSION} \
plugins/org.epic.regexp_0.1.4 \
plugins/org.jruby_1.0.1.4620p \
plugins/org.kxml2_2.1.5 \
plugins/org.rubypeople.rdt.branding_${RDTVERSION} \
plugins/org.rubypeople.rdt.core_${RDTVERSION} \
plugins/org.rubypeople.rdt.debug.core_${RDTVERSION} \
plugins/org.rubypeople.rdt.debug.ui_${RDTVERSION} \
plugins/org.rubypeople.rdt.doc.user_${RDTVERSION} \
plugins/org.rubypeople.rdt.launching_${RDTVERSION} \
plugins/org.rubypeople.rdt.refactoring_${RDTVERSION} \
plugins/org.rubypeople.rdt.testunit_${RDTVERSION} \
plugins/org.rubypeople.rdt.ui_${RDTVERSION}
post-extract:
${MKDIR} ${WRKSRC}
.for FILE in ${RDTFILES}
cd ${WRKSRC} \
&& ${MKDIR} ${FILE} \
&& ${UNZIP_CMD} ${WRKDIR}/${FILE}.jar -d ${FILE}
.endfor
do-install:
.for FILE in ${RDTFILES}
cd ${WRKSRC} \
&& ${MKDIR} ${ECLIPSE}/${FILE} \
&& ${FIND} ${FILE} -type d -exec ${MKDIR} ${ECLIPSE}/{} \; \
&& ${FIND} ${FILE} -type f -exec ${INSTALL_DATA} {} ${ECLIPSE}/{} \;
.endfor
post-install:
.for FILE in ${RDTFILES}
@${FIND} ${WRKSRC}/${FILE} -type f \
| ${SED} -ne 's,^${WRKSRC},${ECLIPSE:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
@${FIND} -d ${WRKSRC}/${FILE} -type d \
| ${SED} -ne 's,^${WRKSRC},@dirrm ${ECLIPSE:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
.endfor
.include <bsd.port.mk>
|