2010-04-22 21:48:51 +00:00
|
|
|
COMMENT= parser generator for Haskell
|
2003-07-23 19:09:34 +00:00
|
|
|
|
2021-02-26 03:31:14 +00:00
|
|
|
MODCABAL_STEM= happy
|
|
|
|
MODCABAL_VERSION= 1.20.0
|
|
|
|
MODCABAL_DATA_DIR= data
|
2016-01-29 20:28:07 +00:00
|
|
|
|
2007-07-21 17:20:57 +00:00
|
|
|
CATEGORIES= devel
|
2003-07-23 19:09:34 +00:00
|
|
|
|
2007-07-22 12:24:46 +00:00
|
|
|
HOMEPAGE= http://www.haskell.org/happy/
|
2003-07-23 19:09:34 +00:00
|
|
|
|
2010-04-22 21:48:51 +00:00
|
|
|
# BSD3
|
2019-07-12 20:43:27 +00:00
|
|
|
PERMIT_PACKAGE= Yes
|
2007-07-21 17:20:57 +00:00
|
|
|
|
2020-05-15 21:50:23 +00:00
|
|
|
WANTLIB= c ffi gmp iconv m pthread
|
2007-07-21 17:20:57 +00:00
|
|
|
|
2021-02-26 03:31:14 +00:00
|
|
|
MODULES= devel/cabal
|
2003-07-23 19:09:34 +00:00
|
|
|
|
2019-09-30 12:51:24 +00:00
|
|
|
LIB_DEPENDS= converters/libiconv \
|
|
|
|
devel/gmp \
|
|
|
|
devel/libffi
|
|
|
|
|
|
|
|
BUILD_DEPENDS+= textproc/docbook-xsl
|
2003-07-23 19:09:34 +00:00
|
|
|
|
2007-07-21 17:20:57 +00:00
|
|
|
# Required for building the documentation and for the regression tests:
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE= autoconf no-autoheader
|
2020-05-15 21:50:23 +00:00
|
|
|
AUTOCONF_VERSION= 2.69
|
2007-07-21 17:20:57 +00:00
|
|
|
AUTOCONF_DIR= ${WRKSRC}/doc
|
|
|
|
WRKCONF= ${AUTOCONF_DIR}
|
2003-07-31 01:19:16 +00:00
|
|
|
|
2010-04-22 21:48:51 +00:00
|
|
|
post-build:
|
2007-08-01 21:59:55 +00:00
|
|
|
@cd ${WRKBUILD}/doc && exec ${SETENV} ${MAKE_ENV} \
|
2007-07-21 17:20:57 +00:00
|
|
|
${MAKE_PROGRAM} html
|
|
|
|
|
2003-07-23 19:09:34 +00:00
|
|
|
post-install:
|
2007-07-21 17:20:57 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc
|
2007-08-01 21:59:55 +00:00
|
|
|
cd ${WRKBUILD}/doc && umask 022 && pax -rw happy ${PREFIX}/share/doc
|
2003-07-31 01:19:16 +00:00
|
|
|
|
2013-03-11 10:50:00 +00:00
|
|
|
do-test:
|
2007-08-01 21:59:55 +00:00
|
|
|
@cd ${WRKBUILD}/tests && exec ${SETENV} ${MAKE_ENV} \
|
2021-02-26 03:31:14 +00:00
|
|
|
${MAKE_PROGRAM} -j${MAKE_JOBS} HAPPY=${MODCABAL_BUILT_EXECUTABLE_happy} \
|
|
|
|
TEST_HAPPY_OPTS="-t ${WRKBUILD}/data --strict"
|
2003-07-23 19:09:34 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|