ports/63299: [patch] devel/hs-hat: fix build (bento)

Volker Stolz stolz at i2.informatik.rwth-aachen.de
Tue Feb 24 10:20:12 UTC 2004


>Number:         63299
>Category:       ports
>Synopsis:       [patch] devel/hs-hat: fix build (bento)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 24 02:20:11 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Volker Stolz
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
Lehrstuhl für Informatik II
>Environment:
System: FreeBSD menelaos.informatik.rwth-aachen.de 4.9-STABLE FreeBSD 4.9-STABLE #12: Mon Dec 8 15:14:27 CET 2003 root at menelaos.informatik.rwth-aachen.de:/usr/obj/usr/src/sys/MENELAOS i386


>Description:
Fix build:
 - pass missing packages (post-patch)
 - WITH_NHC98 is an OPTION
 - use PKGNAMESUFFIX (-ghc5/-nhc98)
 - remove BROKEN-tag

Noticed by: bento/kris
>How-To-Repeat:
http://bento.freebsd.org/errorlogs/i386-4-latest/hs-hat-2.02_1.log
>Fix:
--- hshat begins here ---
diff -urN /usr/ports/devel/hs-hat/Makefile hs-hat/Makefile
--- /usr/ports/devel/hs-hat/Makefile	Tue Feb 24 08:55:22 2004
+++ hs-hat/Makefile	Tue Feb 24 11:08:46 2004
@@ -21,9 +21,7 @@
 USE_REINPLACE=	yes
 USE_GNOME=	glib12
 
-BROKEN=		"Does not compile"
-DEPRECATED=	${BROKEN}
-EXPIRATION_DATE=2004-04-19
+OPTIONS=	NHC98 "Build with nhc98" off
 
 .include <bsd.port.pre.mk>
 
@@ -34,10 +32,12 @@
 .if defined(WITH_NHC98)
 BUILD_DEPENDS=	nhc98:${PORTSDIR}/lang/nhc98
 RUN_DEPENDS=	nhc98:${PORTSDIR}/lang/nhc98
+PKGNAMESUFFIX=	-nhc98
 .else
 BUILD_DEPENDS=	hmake:${PORTSDIR}/devel/hs-hmake \
 		ghc-5.04.3:${PORTSDIR}/lang/ghc5
 RUN_DEPENDS+=	ghc-5.04.3:${PORTSDIR}/lang/ghc5
+PKGNAMESUFFIX=	-ghc5
 .endif
 
 ALL_TARGET=	hat
@@ -83,6 +83,12 @@
 post-patch:
 	@${REINPLACE_CMD} -e "s|glib-config|${GLIB_CONFIG}|" \
 		${WRKSRC}/configure ${WRKSRC}/src/hattools/Makefile
+.if !(defined(WITH_NHC98))
+.for f in hattrans/Makefile hatlib/Makefile
+	@${REINPLACE_CMD} -e "s/package lang/package lang -package haskell98/" ${WRKSRC}/src/${f}
+.endfor
+	@${REINPLACE_CMD} -e "s/package lang/package lang -package base -package haskell98/" ${WRKSRC}/src/hattools/Makefile
+.endif
 
 post-install:
 .if !defined(WITH_NHC98)
--- hshat ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list