blob: 9071653a45733690dff5e9eeb91b6a05c0664d1c (
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
|
# New ports collection makefile for: eclipse-aptana
# Date created: 2007-11-14
# Whom: Nicola Vitale <nivit@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= aptana
PORTVERSION= 1.1.3.007983
PORTEPOCH= 1
CATEGORIES= java devel
MASTER_SITES= http://update.aptana.com/install/${ECLIPSE_VER}/
PKGNAMEPREFIX= eclipse-
DISTNAME= aptana_update_${PORTVERSION:E}
MAINTAINER= nivit@FreeBSD.org
COMMENT= Aptana Web Development Tools (Eclipse plugin)
RUN_DEPENDS= ${LOCALBASE}/bin/eclipse:${PORTSDIR}/java/eclipse
ECLIPSE_VER= 3.2
JAVA_OS= native
JAVA_VENDOR= bsdjava
JAVA_VERSION= 1.5+
NO_BUILD= yes
NO_WRKSUBDIR= yes
USE_JAVA= yes
USE_ZIP= yes
post-extract:
@cd ${WRKDIR}; \
${MKDIR} ${WRKDIR}/eclipse; \
DIRS=$$(${FIND} . -type d -mindepth 1 -not -name eclipse); \
for DIR in $${DIRS}; do \
FILES=$$(${FIND} $${DIR} -type f -name "*.jar"); \
${MKDIR} ${WRKDIR}/eclipse/$${DIR}; \
for FILE in $${FILES}; do \
JARDIR=$$(${BASENAME} $${DIR})/$$(${BASENAME} $${FILE} .jar); \
${UNZIP_CMD} -o $${FILE} -d ${WRKDIR}/eclipse/$${JARDIR}; \
done; \
done;
do-install:
@cd ${WRKDIR} && ${CP} -R eclipse ${PREFIX}/;
post-install:
@cd ${WRKDIR}; \
${ECHO_CMD} "@comment pkg-plist automatically generated" >> ${TMPPLIST}; \
${FIND} -s eclipse -type f -exec ${ECHO_CMD} {} ";" >> ${TMPPLIST}; \
${FIND} -s eclipse -type d | ${SORT} -r | ${GREP} -vE '^eclipse$$|^eclipse/plugins$$|^eclipse/features$$' | ${SED} -ne 's,^,@dirrm ,p' >> ${TMPPLIST};
.include <bsd.port.mk>
|