blob: 7d8e281b8a4eb266001ecf83a358a83368e56148 (
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
73
74
75
|
# New ports collection makefile for: radrails
# Date created: 2006-04-13
# Whom: Alexander Novitsky <alecn2002@yandex.ru>
#
# $FreeBSD$
#
PORTNAME= radrails
PORTVERSION= 0.6.4
CATEGORIES= devel ruby java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION}-linux
MAINTAINER= alecn2002@yandex.ru
COMMENT= IDE for Ruby On Rails
RUN_DEPENDS= ${LINUXBASE}/usr/bin/gtk-demo:${PORTSDIR}/x11-toolkits/linux-gtk2 \
${LOCALBASE}/bin/rails:${PORTSDIR}/www/rubygem-rails
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_ZIP= yes
NO_BUILD= yes
ONLY_FOR_ARCHS= i386
USE_LINUX= yes
USE_JAVA= yes
JAVA_VERSION= 1.4+
JAVA_OS= linux
ICONDIR= icons
ICON= ${ICONDIR}/radrails.png
DESKTOP_ENTRIES= \
"RADRails" \
"Integrated Developement Environment for Ruby On Rails" \
"${DATADIR}/${ICON}" \
"radrails" \
"Development;IDE;" \
true
PLIST_FILES= %%DATADIR%%/${ICON} bin/radrails
PLIST_DIRS= %%DATADIR%%/${ICONDIR}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= does not build
.endif
#do-configure:
pre-install:
(cd ${WRKDIR}; jar -xf ${WRKSRC}/plugins/org.radrails.ide.ui_${PORTVERSION}.jar ${ICON})
${CP} ${FILESDIR}/radrails.sh ${WRKDIR}/radrails.sh
${REINPLACE_CMD} -E -e "s|%%DATADIR%%|${DATADIR}|g; s|%%JAVA%%|${JAVA}|g" ${WRKDIR}/radrails.sh
do-install:
${MKDIR} ${DATADIR}
( cd ${WRKSRC} \
&& ${FIND} . -type d -exec ${MKDIR} ${DATADIR}/\{} \; \
&& ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${DATADIR}/\{} \; )
${MKDIR} ${DATADIR}/${ICONDIR}
${INSTALL_DATA} ${WRKDIR}/${ICON} ${DATADIR}/${ICON}
${INSTALL_SCRIPT} ${WRKDIR}/radrails.sh ${PREFIX}/bin/radrails
post-install:
@cd ${WRKSRC} \
&& ${FIND} -s . -type f \
| ${SED} 's,^\.,${DATADIR:S,^${PREFIX}/,,},' >>${TMPPLIST} \
&& ${FIND} -s -d . -type d \
| ${SED} 's,^\.,@dirrm ${DATADIR:S,^${PREFIX}/,,},' >>${TMPPLIST}
.include <bsd.port.post.mk>
|