mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
109269205e
- Update Haskell Platform to version 2013.2.0.0 Please note that port revisions for all the Haskell ports without version changes are bumped. Some highlights of the update: - Fix PDF generation for pandoc [1] - From now on, PREFIX/{lib,share,share/doc}/cabal/ghc-GHC_VERSION are used for hs- ports (Cabal packages) as prefixes to avoid problems when upgrading with portmaster(8) [2] - Experimental support for LLVM-based code generation (disabled by default) - Many simplifications, refactoring in bsd.cabal.mk New ports (11): devel/hs-asn1-types 0.1.3 devel/hs-data-default-class 0.0.1 devel/hs-data-default-instances-base 0.0.1 devel/hs-data-default-instances-containers 0.0.1 devel/hs-data-default-instances-dlist 0.0.1 devel/hs-data-default-instances-old-locale 0.0.1 devel/hs-extensible-exceptions 0.1.1.4 devel/hs-mmorph 1.0.0 devel/hs-quickcheck-io 0.1.0 x11-toolkits/hs-GLURaw 1.3.0.0 x11-toolkits/hs-OpenGLRaw 1.3.0.0 Updated ports (104): archivers/hs-zlib 0.5.4.0_1 --> 0.5.4.1 databases/hs-persistent 1.1.5.1 --> 1.2.0.1 databases/hs-persistent-sqlite 1.1.5 --> 1.2.0 databases/hs-persistent-template 1.1.2.4 --> 1.2.0 devel/hs-HUnit 1.2.5.1_1 --> 1.2.5.2 devel/hs-IORefCAS 0.2_3 --> 0.2.0.1 devel/hs-MonadRandom 0.1.8 --> 0.1.9 devel/hs-QuickCheck 2.5.1.1_1 --> 2.6 devel/hs-abstract-deque 0.1.6_1 --> 0.2 devel/hs-alex 3.0.2_1 --> 3.0.5 devel/hs-async 2.0.1.3_1 --> 2.0.1.4 devel/hs-basic-prelude 0.3.4.0 --> 0.3.5.0 devel/hs-blaze-builder 0.3.1.0_4 --> 0.3.1.1 devel/hs-byteorder 1.0.3_4 --> 1.0.4 devel/hs-cabal-install 0.14.0_4 --> 1.16.0.2 devel/hs-classy-prelude 0.5.3 --> 0.5.7 devel/hs-cmdargs 0.10.2 --> 0.10.3 devel/hs-conduit 1.0.2 --> 1.0.5 devel/hs-data-default 0.5.0_1 --> 0.5.3 devel/hs-fsnotify 0.0.6 --> 0.0.11 devel/hs-generic-deriving 1.4.0 --> 1.5.0 devel/hs-git-annex 4.20130323_1 --> 4.20130601 devel/hs-haddock 2.11.0_1 --> 2.13.2 devel/hs-hashable 1.2.0.5 --> 1.1.2.5,1 devel/hs-hlint 1.8.43 --> 1.8.45 devel/hs-hspec 1.4.4 --> 1.5.4 devel/hs-hspec-expectations 0.3.0.3_1 --> 0.3.2 devel/hs-largeword 1.0.4 --> 1.0.5 devel/hs-lens 3.8.7.3 --> 3.9.0.2 devel/hs-lifted-base 0.2.0.2 --> 0.2.0.5 devel/hs-monad-control 0.3.1.4_1 --> 0.3.2.1 devel/hs-monad-logger 0.3.0.1 --> 0.3.1.1 devel/hs-monad-par 0.3.4.1 --> 0.3.4.2 devel/hs-pool-conduit 0.1.1_1 --> 0.1.2 devel/hs-profunctors 3.3 --> 3.3.0.1 devel/hs-reflection 1.1.7 --> 1.3.2 devel/hs-resourcet 0.4.5 --> 0.4.7.1 devel/hs-show 0.5 --> 0.6 devel/hs-split 0.2.1.1_1 --> 0.2.2 devel/hs-stm 2.4_1 --> 2.4.2 devel/hs-syb 0.3.7_1 --> 0.4.0 devel/hs-tagged 0.4.4_1 --> 0.6 devel/hs-text 0.11.2.3_1 --> 0.11.3.1 devel/hs-unix-compat 0.4.1.0 --> 0.4.1.1 devel/hs-unix-time 0.1.5 --> 0.1.8 devel/hs-unordered-containers 0.2.3.0 --> 0.2.3.1 devel/hs-utility-ht 0.0.8_3 --> 0.0.9 devel/hs-uuagc 0.9.42.2_3 --> 0.9.42.3 devel/hs-uuid 1.2.9 --> 1.2.13 devel/hs-void 0.5.11 --> 0.6 math/hs-NumInstances 1.2 --> 1.3 math/hs-comonad-transformers 3.0.1_1 --> 3.0.2 math/hs-semigroups 0.9 --> 0.9.1 math/hs-statistics 0.10.2.0_2 --> 0.10.3.1 net/hs-network 2.3.1.0_1 --> 2.4.1.2 net/hs-publicsuffixlist 0.0.3 --> 0.1 net/hs-socks 0.5.0 --> 0.5.1 security/hs-certificate 1.3.5_1 --> 1.3.7 security/hs-cipher-aes 0.1.7 --> 0.1.8 security/hs-clientsession 0.8.1_1 --> 0.9 security/hs-crypto-api 0.11 --> 0.12.1 security/hs-crypto-conduit 0.5.0 --> 0.5.2 security/hs-crypto-pubkey 0.1.2_1 --> 0.1.3 security/hs-crypto-pubkey-types 0.2.0_1 --> 0.3.2 security/hs-cryptocipher 0.4.0_1 --> 0.5.0 security/hs-cryptohash 0.8.3_1 --> 0.9.0 security/hs-skein 0.1.0.12 --> 1.0.3 textproc/hs-HaXml 1.23.3_2 --> 1.24 textproc/hs-attoparsec-conduit 1.0.0 --> 1.0.1 textproc/hs-blaze-html 0.6.0.0 --> 0.6.1.1 textproc/hs-blaze-markup 0.5.1.4 --> 0.5.1.5 textproc/hs-case-insensitive 1.0 --> 1.0.0.2 textproc/hs-highlighting-kate 0.5.3.8 --> 0.5.3.9 textproc/hs-hs-bibutils 4.17 --> 5.0 textproc/hs-polyparse 1.8_3 --> 1.9 textproc/hs-texmath 0.6.1.3 --> 0.6.1.5 textproc/hs-xml 1.3.12_4 --> 1.3.13 textproc/hs-yaml 0.8.2.3 --> 0.8.2.4 www/hs-HTTP 4000.2.5_1 --> 4000.2.8 www/hs-cgi 3001.1.7.4_6,1 --> 3001.1.7.5,1 www/hs-hamlet 1.1.6.3 --> 1.1.7.1 www/hs-happstack-server 7.1.7 --> 7.1.7.1 www/hs-heist 0.11.1 --> 0.12.0 www/hs-http-conduit 1.9.0 --> 1.9.3 www/hs-http-reverse-proxy 0.1.1.3 --> 0.1.1.6 www/hs-shakespeare 1.0.3.1 --> 1.0.5 www/hs-shakespeare-css 1.0.3 --> 1.0.5.1 www/hs-shakespeare-js 1.1.2.1 --> 1.1.4 www/hs-snap 0.11.2 --> 0.12.0 www/hs-wai-extra 1.3.2.4 --> 1.3.4 www/hs-wai-test 1.3.0.4 --> 1.3.1 www/hs-warp 1.3.7.4 --> 1.3.8.1 www/hs-yesod 1.1.9.2 --> 1.2.0.1 www/hs-yesod-auth 1.1.5.3 --> 1.2.0 www/hs-yesod-core 1.1.8.2 --> 1.2.0.4 www/hs-yesod-form 1.2.1.3 --> 1.3.0 www/hs-yesod-persistent 1.1.0.1_1 --> 1.2.0 www/hs-yesod-platform 1.1.8 --> 1.2.0.1 www/hs-yesod-routes 1.1.2 --> 1.2.0 www/hs-yesod-static 1.1.2.2 --> 1.2.0 www/hs-yesod-test 0.3.5 --> 1.2.0 x11-toolkits/hs-GLUT 2.1.2.1_7,1 --> 2.4.0.0,1 x11-toolkits/hs-OpenGL 2.2.3.1_4,1 --> 2.8.0.0,1 x11/hs-xmobar 0.16_2 --> 0.17 Removed ports (2): www/hs-yesod-default 1.1.3.2 www/hs-yesod-json 1.1.2.1 PR: ports/179146 [1] Requested by: Omar Thameen <omar@biglist.com> [1] Reported by: sperber, bapt [2] Tested by: sperber [2] Obtained from: FreeBSD Haskell
341 lines
9.5 KiB
Makefile
341 lines
9.5 KiB
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
# bsd.cabal.mk -- Support for ports based on Haskell Cabal.
|
|
#
|
|
# Created by: Gabor Pali <pgj@FreeBSD.org>,
|
|
# Based on works of Giuseppe Pilichi and Ashish Shukla.
|
|
#
|
|
# Maintained by: haskell@FreeBSD.org
|
|
#
|
|
|
|
.if !defined(METAPORT)
|
|
MASTER_SITES?= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
|
|
.else
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
EXTRACT_ONLY= # empty
|
|
NO_FETCH= yes
|
|
NO_BUILD= yes
|
|
.endif # !METAPORT
|
|
|
|
DIST_SUBDIR?= cabal
|
|
|
|
SETUP_CMD?= ./setup
|
|
|
|
ALEX_CMD?= ${LOCALBASE}/bin/alex
|
|
HAPPY_CMD?= ${LOCALBASE}/bin/happy
|
|
C2HS_CMD?= ${LOCALBASE}/bin/c2hs
|
|
|
|
CABAL_DIRS+= ${DATADIR} ${EXAMPLESDIR} ${CABAL_LIBDIR}/${CABAL_LIBSUBDIR} \
|
|
${DOCSDIR}
|
|
|
|
GHC_HADDOCK_CMD=${LOCALBASE}/bin/haddock-ghc-${GHC_VERSION}
|
|
|
|
CABAL_DOCSDIR= ${PREFIX}/share/doc/cabal/ghc-${GHC_VERSION}
|
|
CABAL_DOCSDIR_REL= ${CABAL_DOCSDIR:S,^${PREFIX}/,,}
|
|
|
|
DATADIR= ${PREFIX}/share/cabal/ghc-${GHC_VERSION}/${DISTNAME}
|
|
DOCSDIR= ${CABAL_DOCSDIR}/${DISTNAME}
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/cabal/ghc-${GHC_VERSION}/${DISTNAME}
|
|
|
|
GHC_LIB_DOCSDIR_REL= share/doc/ghc-${GHC_VERSION}/html/libraries
|
|
|
|
CABAL_LIBDIR= ${PREFIX}/lib/cabal/ghc-${GHC_VERSION}
|
|
CABAL_LIBSUBDIR= ${DISTNAME}
|
|
CABAL_LIBDIR_REL= ${CABAL_LIBDIR:S,^${PREFIX}/,,}
|
|
|
|
CONFIGURE_ARGS+= --libdir=${CABAL_LIBDIR} --libsubdir=${CABAL_LIBSUBDIR}
|
|
|
|
PLIST_SUB+= GHC_VERSION=${GHC_VERSION} \
|
|
PORTNAME=${PORTNAME} \
|
|
PORTVERSION=${PORTVERSION} \
|
|
LIBDIR_REL=${CABAL_LIBDIR_REL}/${CABAL_LIBSUBDIR}
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
INSTALL_PORTDATA?=
|
|
INSTALL_PORTEXAMPLES?=
|
|
|
|
LOCALBASE?= /usr/local
|
|
|
|
.if !defined(CABALOPTIONSMKINCLUDED)
|
|
.include "bsd.cabal.options.mk"
|
|
.endif
|
|
|
|
.if !defined(STANDALONE) || ${PORT_OPTIONS:MDYNAMIC}
|
|
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
|
|
BUILD_DEPENDS+= ghc>=${GHC_VERSION}:${PORTSDIR}/lang/ghc
|
|
RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
|
|
RUN_DEPENDS+= ghc>=${GHC_VERSION}:${PORTSDIR}/lang/ghc
|
|
.else
|
|
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
|
|
BUILD_DEPENDS+= ghc>=${GHC_VERSION}:${PORTSDIR}/lang/ghc
|
|
.endif
|
|
|
|
USE_BINUTILS= yes
|
|
USE_GCC= 4.6+
|
|
|
|
CONFIGURE_ARGS+= --with-gcc=${CC} --with-ld=${LD} --with-ar=${AR} \
|
|
--with-ranlib=${RANLIB}
|
|
|
|
.if ${PORT_OPTIONS:MLLVM}
|
|
BUILD_DEPENDS+= llvm>=3.0:${PORTSDIR}/devel/llvm
|
|
CONFIGURE_ARGS+= --ghc-option=-fllvm
|
|
.endif
|
|
|
|
.if defined(USE_ALEX)
|
|
BUILD_DEPENDS+= ${ALEX_CMD}:${PORTSDIR}/devel/hs-alex
|
|
CONFIGURE_ARGS+= --with-alex=${ALEX_CMD}
|
|
.endif
|
|
|
|
.if defined(USE_HAPPY)
|
|
BUILD_DEPENDS+= ${HAPPY_CMD}:${PORTSDIR}/devel/hs-happy
|
|
CONFIGURE_ARGS+= --with-happy=${HAPPY_CMD}
|
|
.endif
|
|
|
|
.if defined(USE_C2HS)
|
|
BUILD_DEPENDS+= ${C2HS_CMD}:${PORTSDIR}/devel/hs-c2hs
|
|
CONFIGURE_ARGS+= --with-c2hs=${C2HS_CMD}
|
|
.endif
|
|
|
|
.if defined(EXECUTABLE)
|
|
LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
|
|
USES+= iconv
|
|
.endif
|
|
|
|
.if defined(USE_CABAL)
|
|
.include "bsd.hackage.mk"
|
|
|
|
.for cabal_package in ${USE_CABAL}
|
|
__u_h_r_package= ${cabal_package:C/[<=>].*$//g}
|
|
__u_h_r_port= ${${__u_h_r_package}_port}
|
|
__u_h_r_name= ${__u_h_r_port:C/.*\///g}
|
|
|
|
.if empty(__u_h_r_port)
|
|
IGNORE?= dependency fails: ${cabal_package:C/[<=>].*$//g} is not known as a port
|
|
.endif
|
|
|
|
.if ${__u_h_r_package} == ${cabal_package}
|
|
__u_h_r_version:= >=0
|
|
.else
|
|
__u_h_r_version:= ${cabal_package:C/^[^<=>]*//g}
|
|
.endif
|
|
|
|
dependencies:= ${dependencies} \
|
|
${HSPREFIX}${__u_h_r_package}${__u_h_r_version}:${PORTSDIR}/${__u_h_r_port}
|
|
.endfor
|
|
|
|
BUILD_DEPENDS+= ${dependencies}
|
|
|
|
.if !defined(STANDALONE) || ${PORT_OPTIONS:MDYNAMIC}
|
|
RUN_DEPENDS+= ${dependencies}
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.if defined(USE_GHC_NATIVE)
|
|
USE_PERL5_BUILD= 5.8+
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
.if !defined(XMLDOCS)
|
|
|
|
.if defined(HADDOCK_AVAILABLE)
|
|
HADDOCK_OPTS= # empty
|
|
|
|
.if ${PORT_OPTIONS:MHSCOLOUR}
|
|
BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
|
|
|
|
HSCOLOUR_VERSION= 1.20.3
|
|
HSCOLOUR_DATADIR= ${LOCALBASE}/share/cabal/ghc-${GHC_VERSION}/hscolour-${HSCOLOUR_VERSION}
|
|
HADDOCK_OPTS+= --hyperlink-source --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
|
|
.endif # HSCOLOUR
|
|
.endif # HADDOCK_AVAILABLE
|
|
|
|
.endif
|
|
|
|
.if defined(XMLDOCS)
|
|
BUILD_DEPENDS+= ${LOCALBASE}/share/xsl/docbook/html:${PORTSDIR}/textproc/docbook-xsl \
|
|
${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt
|
|
|
|
USE_GMAKE= yes
|
|
|
|
.endif # !XMLDOCS
|
|
|
|
.endif # DOCS
|
|
|
|
__handle_datadir__= --datadir='${DATADIR}' --datasubdir='' --docdir='${DOCSDIR}'
|
|
|
|
.if defined(HADDOCK_AVAILABLE) && !defined(XMLDOCS) && ${PORT_OPTIONS:MDOCS}
|
|
CONFIGURE_ARGS+= --haddock-options=-w --with-haddock=${HADDOCK_CMD}
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDYNAMIC}
|
|
CONFIGURE_ARGS+= --enable-shared --enable-executable-dynamic
|
|
CONFIGURE_ARGS+= "--ghc-option=-optl -rpath" "--ghc-option=-optl ${CABAL_LIBDIR}/${DISTNAME}"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-shared --disable-executable-dynamic
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPROFILE}
|
|
CONFIGURE_ARGS+= --enable-executable-profiling --enable-library-profiling
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-executable-profiling --disable-library-profiling
|
|
.endif
|
|
|
|
.SILENT:
|
|
|
|
post-patch::
|
|
.if defined(XMLDOCS) && defined(USE_AUTOTOOLS)
|
|
@${REINPLACE_CMD} -e 's|/usr/local/share/xsl/docbook|${LOCALBASE}/share/xsl/docbook|' \
|
|
${WRKSRC}/doc/configure.ac
|
|
.endif
|
|
|
|
_BUILD_SETUP= ${GHC_CMD} -o ${SETUP_CMD} -package Cabal --make
|
|
|
|
.if !target(do-configure)
|
|
do-configure:
|
|
.if !defined(METAPORT)
|
|
@if [ -f ${WRKSRC}/Setup.hs ]; then \
|
|
cd ${WRKSRC} && ${_BUILD_SETUP} Setup.hs; fi
|
|
@if [ -f ${WRKSRC}/Setup.lhs ]; then \
|
|
cd ${WRKSRC} && ${_BUILD_SETUP} Setup.lhs; fi
|
|
@if [ -f ${WRKSRC}/${SETUP_CMD} ]; then \
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
|
|
${SETUP_CMD} configure --ghc --prefix=${PREFIX} \
|
|
--extra-include-dirs="${LOCALBASE}/include" --extra-lib-dirs="${LOCALBASE}/lib" \
|
|
${__handle_datadir__} ${CONFIGURE_ARGS}; \
|
|
else \
|
|
${ECHO_MSG} "===> ${PKGNAME} configure fails: no setup program could be created."; \
|
|
exit 1; \
|
|
fi
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
.if defined(XMLDOCS) && defined(USE_AUTOTOOLS)
|
|
cd ${WRKSRC}/doc && ${AUTOCONF} && ./configure --prefix=${PREFIX}
|
|
.endif
|
|
.endif # DOCS
|
|
.else
|
|
${DO_NADA}
|
|
.endif # !METAPORT
|
|
.endif # target(do-configure)
|
|
|
|
.if !target(do-build)
|
|
do-build:
|
|
.if !defined(METAPORT)
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SETUP_CMD} build
|
|
.if !defined(STANDALONE)
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SETUP_CMD} register --gen-script
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
.if defined(HADDOCK_AVAILABLE) && !defined(XMLDOCS) && !defined(STANDALONE) && ${PORT_OPTIONS:MDOCS}
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SETUP_CMD} haddock ${HADDOCK_OPTS}
|
|
.endif # STANDALONE
|
|
.if defined(XMLDOCS)
|
|
@(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} html)
|
|
.endif # XMLDOCS
|
|
.endif # DOCS
|
|
.else
|
|
${DO_NADA}
|
|
.endif # !METAPORT
|
|
.endif # target(do-build)
|
|
|
|
.if !target(do-install)
|
|
do-install:
|
|
.if !defined(METAPORT)
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SETUP_CMD} install
|
|
|
|
.if !defined(STANDALONE)
|
|
cd ${WRKSRC} && ${INSTALL_SCRIPT} register.sh ${CABAL_LIBDIR}/${CABAL_LIBSUBDIR}/register.sh
|
|
.endif
|
|
|
|
.if !empty(INSTALL_PORTDATA)
|
|
@${MKDIR} ${DATADIR}
|
|
${INSTALL_PORTDATA}
|
|
.endif
|
|
|
|
.if !empty(INSTALL_PORTEXAMPLES) && ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_PORTEXAMPLES}
|
|
.endif
|
|
|
|
.if defined(MAN1SRC)
|
|
.for man in ${MAN1}
|
|
@${INSTALL_MAN} ${WRKSRC}/${MAN1SRC}/${man} ${PREFIX}/man/man1
|
|
.endfor
|
|
.endif # MAN1SRC
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
.if !empty(XMLDOCS)
|
|
.for xmldoc in ${XMLDOCS}
|
|
@(cd ${WRKSRC}/${xmldoc:C/:.*$//g} && ${COPYTREE_SHARE} \* ${DOCSDIR}/${xmldoc:C/^.*://g})
|
|
.endfor
|
|
.endif # XMLDOCS
|
|
.endif
|
|
.else
|
|
${DO_NADA}
|
|
.endif # !METAPORT
|
|
.endif # target(do-install)
|
|
|
|
.if !target(post-install-script)
|
|
post-install-script:
|
|
@for dir in ${CABAL_DIRS}; do if [ -d $${dir} ]; then ${FIND} -ds $${dir} \
|
|
-type f -print | ${SED} -E -e 's,^${PREFIX}/?,,' >> ${TMPPLIST}; fi ; \
|
|
if [ -d $${dir} ]; then ${FIND} -ds $${dir} \
|
|
-type d -print | ${SED} -E -e 's,^${PREFIX}/?,@dirrm ,' >> ${TMPPLIST}; fi ; done
|
|
.if defined(EXECUTABLE)
|
|
.for exe in ${EXECUTABLE}
|
|
@${ECHO_CMD} 'bin/${exe}' >>${TMPPLIST}
|
|
.endfor
|
|
.endif
|
|
|
|
.endif # target(post-install-script)
|
|
|
|
add-plist-post: add-plist-cabal
|
|
add-plist-cabal:
|
|
.if !defined(METAPORT)
|
|
@if [ -f ${CABAL_LIBDIR}/${CABAL_LIBSUBDIR}/register.sh ]; then \
|
|
(${ECHO_CMD} '@exec ${SH} %D/${CABAL_LIBDIR_REL}/${CABAL_LIBSUBDIR}/register.sh'; \
|
|
${ECHO_CMD} '@unexec %D/bin/ghc-pkg unregister --force ${PORTNAME}-${PORTVERSION}') >> ${TMPPLIST}; fi
|
|
.if defined(HADDOCK_AVAILABLE) && ${PORT_OPTIONS:MDOCS}
|
|
@(${ECHO_CMD} '@exec if [ -f %D/${GHC_LIB_DOCSDIR_REL}/gen_contents_index ]; then ${LN} -s ${DOCSDIR}/html %D/${GHC_LIB_DOCSDIR_REL}/${DISTNAME} && \
|
|
cd %D/${GHC_LIB_DOCSDIR_REL} && ${RM} -f doc-index*.html && ./gen_contents_index; fi' ; \
|
|
${ECHO_CMD} '@unexec ${RM} -f %D/${GHC_LIB_DOCSDIR_REL}/${DISTNAME}' ; \
|
|
${ECHO_CMD} '@unexec if [ -f %D/${GHC_LIB_DOCSDIR_REL}/gen_contents_index ]; then cd %D/${GHC_LIB_DOCSDIR_REL} && ${RM} -f doc-index*.html && ./gen_contents_index; fi') >>${TMPPLIST};
|
|
.endif
|
|
.else
|
|
${DO_NADA}
|
|
.endif # !METAPORT
|
|
|
|
post-install::
|
|
.if !defined(METAPORT)
|
|
.if defined(HADDOCK_AVAILABLE) && ${PORT_OPTIONS:MDOCS}
|
|
@if [ -f ${PREFIX}/${GHC_LIB_DOCSDIR_REL}/gen_contents_index ]; then \
|
|
${LN} -s ${DOCSDIR}/html ${PREFIX}/${GHC_LIB_DOCSDIR_REL}/${DISTNAME} && \
|
|
cd ${PREFIX}/${GHC_LIB_DOCSDIR_REL} && \
|
|
${RM} -f doc-index*.html && ./gen_contents_index; \
|
|
fi
|
|
.endif
|
|
|
|
.if defined(EXECUTABLE)
|
|
.for exe in ${EXECUTABLE}
|
|
@${STRIP_CMD} ${PREFIX}/bin/${exe}
|
|
@${CHMOD} ${BINMODE} ${PREFIX}/bin/${exe}
|
|
.endfor
|
|
.endif # EXECUTABLE
|
|
|
|
.if defined(SHOW_PKGMSG)
|
|
@${ECHO_MSG} -e "\a"
|
|
@${ECHO_MSG} "================================================================="
|
|
@${CAT} "${PKGMESSAGE}"
|
|
@${ECHO_MSG} "================================================================="
|
|
@${ECHO_MSG}
|
|
.endif # SHOW_PKGMSG
|
|
.else
|
|
${DO_NADA}
|
|
.endif # !METAPORT
|