aboutsummaryrefslogtreecommitdiff
path: root/devel/radrails
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2006-06-06 17:31:38 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2006-06-06 17:31:38 +0000
commit2028303f9abebc6d2668fd6645026f256e09139e (patch)
treebf719800de69d697bf0f41f598c27cdad208e39a /devel/radrails
parent136d7e737ee2bbb7a10d7bc539359542cfa0e6cc (diff)
downloadports-2028303f9abebc6d2668fd6645026f256e09139e.tar.gz
ports-2028303f9abebc6d2668fd6645026f256e09139e.zip
Notes
Diffstat (limited to 'devel/radrails')
-rw-r--r--devel/radrails/Makefile30
-rw-r--r--devel/radrails/distinfo6
-rw-r--r--devel/radrails/pkg-plist1
3 files changed, 21 insertions, 16 deletions
diff --git a/devel/radrails/Makefile b/devel/radrails/Makefile
index 683a78e4985a..7d8e281b8a4e 100644
--- a/devel/radrails/Makefile
+++ b/devel/radrails/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= radrails
-PORTVERSION= 0.6.2
+PORTVERSION= 0.6.4
CATEGORIES= devel ruby java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -28,7 +28,6 @@ USE_LINUX= yes
USE_JAVA= yes
JAVA_VERSION= 1.4+
JAVA_OS= linux
-PLIST= ${WRKDIR}/PLIST
ICONDIR= icons
ICON= ${ICONDIR}/radrails.png
@@ -41,29 +40,36 @@ DESKTOP_ENTRIES= \
"Development;IDE;" \
true
-FIND_ARGS= -s -d .
+PLIST_FILES= %%DATADIR%%/${ICON} bin/radrails
+PLIST_DIRS= %%DATADIR%%/${ICONDIR}
.include <bsd.port.pre.mk>
-do-configure:
+.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})
- ${ECHO} "%%DATADIR%%/${ICON}" >> ${PLIST}
${CP} ${FILESDIR}/radrails.sh ${WRKDIR}/radrails.sh
${REINPLACE_CMD} -E -e "s|%%DATADIR%%|${DATADIR}|g; s|%%JAVA%%|${JAVA}|g" ${WRKDIR}/radrails.sh
- ${ECHO} "bin/radrails" >> ${PLIST}
- ( cd ${WRKSRC} ; \
- ${FIND} ${FIND_ARGS} -type f | ${SED} 's|^|%%DATADIR%%/|g' >> ${PLIST} ; \
- ${FIND} ${FIND_ARGS} -type d -and -not -name '.' | ${SED} 's|^|@dirrm %%DATADIR%%/|g' >> ${PLIST} )
- ${ECHO} "@dirrm %%DATADIR%%/${ICONDIR}" >>${PLIST}
- ${ECHO} '@dirrm %%DATADIR%%' >> ${PLIST}
do-install:
${MKDIR} ${DATADIR}
- ( cd ${WRKSRC} ; ${CP} -Rv `ls -a | ${EGREP} -v '^\.{1,2}$$'` ${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>
diff --git a/devel/radrails/distinfo b/devel/radrails/distinfo
index 3c0fd62ab7a4..f71d7be81671 100644
--- a/devel/radrails/distinfo
+++ b/devel/radrails/distinfo
@@ -1,3 +1,3 @@
-MD5 (radrails-0.6.2-linux.zip) = 819386b0c41bbd2a2f53cd2d1b51e9c4
-SHA256 (radrails-0.6.2-linux.zip) = b5404948f4bdd91a5d239e06b8ff2ffaf6d6bc7c3d5787869fadbd63a2808c3d
-SIZE (radrails-0.6.2-linux.zip) = 38984470
+MD5 (radrails-0.6.4-linux.zip) = f96d3bc42969695efbfac1ad85351ed8
+SHA256 (radrails-0.6.4-linux.zip) = f879ca2a1320570c31188aeb29ce555a517672a00059aa543e83b4084147bb22
+SIZE (radrails-0.6.4-linux.zip) = 39138982
diff --git a/devel/radrails/pkg-plist b/devel/radrails/pkg-plist
deleted file mode 100644
index 8fb5cc4556d5..000000000000
--- a/devel/radrails/pkg-plist
+++ /dev/null
@@ -1 +0,0 @@
-@comment $FreeBSD$