aboutsummaryrefslogtreecommitdiff
path: root/devel/hs-show
diff options
context:
space:
mode:
Diffstat (limited to 'devel/hs-show')
-rw-r--r--devel/hs-show/Makefile64
-rw-r--r--devel/hs-show/pkg-plist22
2 files changed, 15 insertions, 71 deletions
diff --git a/devel/hs-show/Makefile b/devel/hs-show/Makefile
index fdde5f3509db..6839e1a24c2b 100644
--- a/devel/hs-show/Makefile
+++ b/devel/hs-show/Makefile
@@ -8,70 +8,14 @@
PORTNAME= show
PORTVERSION= 0.3.3
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Haskell Show instances for Lambdabot
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-smallcheck>=0.4:${PORTSDIR}/devel/hs-smallcheck
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-smallcheck>=0.4:${PORTSDIR}/devel/hs-smallcheck
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= smallcheck>=0.4
-GHC_VERSION= 6.10.4
-SHOW_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-SHOW_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- SHOW_VERSION=${SHOW_VERSION} \
- SHOW_LIBDIR_REL=${SHOW_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} --constraint='base<4'
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${SHOW_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CONFIGURE_ARGS+= --constraint='base<4'
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-show/pkg-plist b/devel/hs-show/pkg-plist
index b1f6f7c5d0a6..27c492c1673b 100644
--- a/devel/hs-show/pkg-plist
+++ b/devel/hs-show/pkg-plist
@@ -1,16 +1,16 @@
@comment $FreeBSD$
-%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSshow-%%SHOW_VERSION%%.o
-%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/ShowFun.hi
-%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/ShowIO.hi
-%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/ShowQ.hi
-%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/SimpleReflect.hi
-%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSshow-%%SHOW_VERSION%%.a
-%%SHOW_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/ShowFun.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/ShowIO.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/ShowQ.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/SimpleReflect.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%SHOW_LIBDIR_REL%%
-@exec /bin/sh %D/%%SHOW_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister show
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old