Nuke runhaskell to unbreak this port for amd64.

Problem noticed by kurt@ and steven@, patch verified by steven@

Add some WRKSRC/WRKBUILD tweask (though yet pointless, since
SEPARATE_BUILD doesn't work for GHC-related ports).

No change for i386, and it this version never built on amd64 after the
GHC update, so no pkg bump required.
This commit is contained in:
kili 2007-08-01 21:57:37 +00:00
parent 0424f0c5bd
commit 6acef50409

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.8 2007/07/21 17:19:49 kili Exp $
# $OpenBSD: Makefile,v 1.9 2007/08/01 21:57:37 kili Exp $
COMMENT= lexical analyser generator for Haskell
@ -30,6 +30,7 @@ LIB_DEPENDS= gmp::devel/gmp
SETUP_CONF_ARGS= configure -g --prefix=${PREFIX}
SETUP_CONF_ENV= HOME=${PORTHOME} ${CONFIGURE_ENV}
SETUP_PROG= ${WRKSRC}/Setup
SUBST_VARS= V
NO_REGRESS= Yes
@ -42,21 +43,20 @@ AUTOCONF_DIR= ${WRKSRC}/doc
WRKCONF= ${AUTOCONF_DIR}
post-configure:
@cd ${WRKSRC} && exec ${SETENV} ${SETUP_CONF_ENV} \
runhaskell Setup.lhs ${SETUP_CONF_ARGS}
@cd ${WRKSRC} && ghc --make -o ${SETUP_PROG} Setup.lhs
@cd ${WRKBUILD} && exec ${SETENV} ${SETUP_CONF_ENV} \
${SETUP_PROG} ${SETUP_CONF_ARGS}
do-build:
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
runhaskell Setup.lhs build
@cd ${WRKSRC}/doc && exec ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} html
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} ${SETUP_PROG} build
@cd ${WRKBUILD}/doc && exec ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} html
do-install:
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
runhaskell Setup.lhs copy --destdir=${DESTDIR}
${SETUP_PROG} copy --destdir=${DESTDIR}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc
cd ${WRKSRC}/doc && umask 022 && pax -rw alex ${PREFIX}/share/doc
cd ${WRKBUILD}/doc && umask 022 && pax -rw alex ${PREFIX}/share/doc
.include <bsd.port.mk>