blob: 5bfab435db203f8d84f88b25043b2ec0b4f89cea (
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
|
# New ports collection makefile for: radrails
# Date created: 2006-04-13
# Whom: Alexander Novitsky <alecn2002@yandex.ru>
#
# $FreeBSD$
#
PORTNAME= radrails
PORTVERSION= 0.7.2
CATEGORIES= devel ruby java
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/RadRails%20${PORTVERSION}
DISTNAME= ${PORTNAME}-${PORTVERSION}-linux-gtk
MAINTAINER= alecn2002@yandex.ru
COMMENT= IDE for Ruby On Rails
RUN_DEPENDS= ${LOCALBASE}/bin/rails:${PORTSDIR}/www/rubygem-rails
WRKSRC= ${WRKDIR}/${PORTNAME}
BROKEN= does not build
NO_BUILD= yes
ONLY_FOR_ARCHS= i386
USE_LINUX= yes
USE_LINUX_APPS= gtk2
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}
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
${BRANDELF} -t 'Linux' ${WRKSRC}/RadRails
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}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|