summaryrefslogtreecommitdiffstats
path: root/lang/helium
diff options
context:
space:
mode:
authorobraun <obraun@FreeBSD.org>2003-11-01 23:01:56 +0000
committerobraun <obraun@FreeBSD.org>2003-11-01 23:01:56 +0000
commit9af1ca3abc68d1bd128a3cb6608e24a50806d331 (patch)
tree10f42686f7b135ac9eb1e7ed078037057cd120de /lang/helium
parentc6a648d5e4dba133dcbdf8acaa73f27ab050ca55 (diff)
downloadFreeBSD-ports-9af1ca3abc68d1bd128a3cb6608e24a50806d331.zip
FreeBSD-ports-9af1ca3abc68d1bd128a3cb6608e24a50806d331.tar.gz
* Add WITH_HINT knob to install Hint which requires java.
Diffstat (limited to 'lang/helium')
-rw-r--r--lang/helium/Makefile26
-rw-r--r--lang/helium/distinfo1
-rw-r--r--lang/helium/pkg-plist2
3 files changed, 29 insertions, 0 deletions
diff --git a/lang/helium/Makefile b/lang/helium/Makefile
index 1778ee0..bb803e2 100644
--- a/lang/helium/Makefile
+++ b/lang/helium/Makefile
@@ -15,6 +15,16 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= obraun@FreeBSD.org
COMMENT= Functional programming compiler for a subset of Haskell
+.if defined(WITH_HINT)
+USE_JAVA= 1.4+
+DISTFILES+= ${PORTNAME}-${PORTVERSION}-src.tar.gz \
+ Hint.jar
+EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}-src.tar.gz
+PLIST_SUB= HINT=""
+.else
+PLIST_SUB= HINT="@comment "
+.endif
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500035
BROKEN= does not compile
@@ -26,6 +36,13 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_REINPLACE= yes
USE_GMAKE= yes
+.if !defined(WITH_HINT)
+pre-everything::
+ @${ECHO_CMD}
+ @${ECHO_CMD} "Define WITH_HINT=yes to install Hint (needs Java >=1.4)."
+ @${ECHO_CMD}
+.endif
+
do-configure:
@(cd ${WRKSRC}/lvm/src/ && ./configure)
@(cd ${WRKSRC}/heliumNT/ && ./configure)
@@ -37,5 +54,14 @@ do-build:
do-install:
@(cd ${WRKSRC}/heliumNT/src && ${GMAKE} install)
@${CAT} ${PKGMESSAGE} | ${SED} -e 's,%%PREFIX%%,${PREFIX},g'
+.if defined(WITH_HINT)
+ @${MKDIR} ${PREFIX}/share/java/helium
+ @${INSTALL_DATA} ${DISTDIR}/Hint.jar ${PREFIX}/share/java/helium
+ @${ECHO_CMD} "To use Hint type"
+ @${ECHO_CMD}
+ @${ECHO_CMD} "java -DLVMPATH=\$$LVMPATH -jar ${PREFIX}/share/java/helium/Hint.jar"
+ @${ECHO_CMD}
+.endif
+
.include <bsd.port.post.mk>
diff --git a/lang/helium/distinfo b/lang/helium/distinfo
index 0352683..f8366b6 100644
--- a/lang/helium/distinfo
+++ b/lang/helium/distinfo
@@ -1 +1,2 @@
MD5 (helium-1.1-src.tar.gz) = 1c33240ce2d286c8225246d87c353f40
+MD5 (Hint.jar) = d9caae2afdbd60a4a1f58174d318464a
diff --git a/lang/helium/pkg-plist b/lang/helium/pkg-plist
index cfa49b9..f81feaf 100644
--- a/lang/helium/pkg-plist
+++ b/lang/helium/pkg-plist
@@ -16,6 +16,8 @@ helium/lib/Maybe.lvm
helium/lib/Prelude.hs
helium/lib/Prelude.lvm
helium/lib/PreludePrim.lvm
+%%HINT%%share/java/helium/Hint.jar
+%%HINT%%@dirrm share/java/helium
@dirrm helium/demo
@dirrm helium/lib
@dirrm helium
OpenPOWER on IntegriCloud