pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/hugs Add a buildlink3.mk file and a package.mk fi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/45c8ed89ee00
branches:  trunk
changeset: 517054:45c8ed89ee00
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Thu Aug 03 18:50:32 2006 +0000

description:
Add a buildlink3.mk file and a package.mk file both aimed at making easy
the creation of packages for Hugs modules libraries.  The former provides
the dependency on hugs and the latter an easy way to launch the Cabal
build utility.

diffstat:

 lang/hugs/buildlink3.mk |  18 ++++++++++++++++++
 lang/hugs/package.mk    |  36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+), 0 deletions(-)

diffs (62 lines):

diff -r 4e6fef19c404 -r 45c8ed89ee00 lang/hugs/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/hugs/buildlink3.mk   Thu Aug 03 18:50:32 2006 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2006/08/03 18:50:32 jmmv Exp $
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
+HUGS98_BUILDLINK3_MK:= ${HUGS98_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+=    hugs98
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nhugs98}
+BUILDLINK_PACKAGES+=   hugs98
+
+.if ${HUGS98_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.hugs98+= hugs98>=200605
+BUILDLINK_PKGSRCDIR.hugs98?=   ../../lang/hugs
+.endif # HUGS98_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH:S/+$//}
diff -r 4e6fef19c404 -r 45c8ed89ee00 lang/hugs/package.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/hugs/package.mk      Thu Aug 03 18:50:32 2006 +0000
@@ -0,0 +1,36 @@
+# $NetBSD: package.mk,v 1.1 2006/08/03 18:50:32 jmmv Exp $
+#
+
+PKGNAME=       hugs98-${DISTNAME}
+MASTER_SITES=  http://cvs.haskell.org/Hugs/downloads/2006-05/packages/
+
+COMMENT+=      (Hugs package)
+
+HUGS_RUN=      ${BUILDLINK_PREFIX.hugs98}/bin/runhugs
+HUGS_CPPHS=    ${BUILDLINK_PREFIX.hugs98}/bin/cpphs-hugs
+HUGS_HSC2HS=   ${BUILDLINK_PREFIX.hugs98}/bin/hsc2hs-hugs
+
+PRINT_PLIST_AWK+=      /^@dirrm lib\/hugs\/packages$$/ \
+                               { print "@comment in hugs: " $$0; next }
+
+
+.include "../../lang/hugs/buildlink3.mk"
+
+do-configure:
+       cd ${WRKSRC} && ${HUGS_RUN} -98 Setup.hs \
+               configure \
+               --verbose \
+               --prefix=${PREFIX:Q} \
+               --hugs \
+               --with-cpphs=${HUGS_CPPHS:Q} \
+               --with-hsc2hs=${HUGS_HSC2HS:Q}
+
+do-build:
+       cd ${WRKSRC} && ${HUGS_RUN} -98 Setup.hs \
+               build \
+               --verbose
+
+do-install:
+       cd ${WRKSRC} && ${HUGS_RUN} -98 Setup.hs \
+               install \
+               --verbose



Home | Main Index | Thread Index | Old Index