aboutsummaryrefslogtreecommitdiff
path: root/devel/hs-bsd-sysctl
diff options
context:
space:
mode:
authorGabor Pali <pgj@FreeBSD.org>2010-05-14 01:33:26 +0000
committerGabor Pali <pgj@FreeBSD.org>2010-05-14 01:33:26 +0000
commit3c08fb5a46e6eb86afaa3f88af6ba979f1bca9ad (patch)
tree18a4bc7119eb96622e446db76593d7e3fe8b3a50 /devel/hs-bsd-sysctl
parente04829c552da2e6b1f29bb68d9877995f69d7cf4 (diff)
downloadports-3c08fb5a46e6eb86afaa3f88af6ba979f1bca9ad.tar.gz
ports-3c08fb5a46e6eb86afaa3f88af6ba979f1bca9ad.zip
Notes
Diffstat (limited to 'devel/hs-bsd-sysctl')
-rw-r--r--devel/hs-bsd-sysctl/Makefile15
-rw-r--r--devel/hs-bsd-sysctl/pkg-plist24
2 files changed, 18 insertions, 21 deletions
diff --git a/devel/hs-bsd-sysctl/Makefile b/devel/hs-bsd-sysctl/Makefile
index 0c5a3b9a7b63..79d5b62fedb7 100644
--- a/devel/hs-bsd-sysctl/Makefile
+++ b/devel/hs-bsd-sysctl/Makefile
@@ -8,20 +8,11 @@
PORTNAME= bsd-sysctl
PORTVERSION= 1.0.6
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jupengfei@gmail.com
-COMMENT= Access to the BSD sysctl(3) interface via the Haskell FFI
+COMMENT= Access to the BSD sysctl(3) interface
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS= ${BUILD_DEPENDS}
-
-do-configure:
- cd ${WRKSRC} && runghc Setup.hs configure --prefix=${PREFIX}
-do-build:
- cd ${WRKSRC} && runghc Setup.hs build
-do-install:
- cd ${WRKSRC} && runghc Setup.hs install
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-bsd-sysctl/pkg-plist b/devel/hs-bsd-sysctl/pkg-plist
index 1aebb922be90..518e8d969c5e 100644
--- a/devel/hs-bsd-sysctl/pkg-plist
+++ b/devel/hs-bsd-sysctl/pkg-plist
@@ -1,9 +1,15 @@
-lib/bsd-sysctl-1.0.6/ghc-6.10.4/System/BSD/Sysctl.hi
-lib/bsd-sysctl-1.0.6/ghc-6.10.4/libHSbsd-sysctl-1.0.6.a
-lib/bsd-sysctl-1.0.6/ghc-6.10.4/HSbsd-sysctl-1.0.6.o
-share/doc/bsd-sysctl-1.0.6/LICENSE
-@dirrm lib/bsd-sysctl-1.0.6/ghc-6.10.4/System/BSD
-@dirrm lib/bsd-sysctl-1.0.6/ghc-6.10.4/System
-@dirrm lib/bsd-sysctl-1.0.6/ghc-6.10.4
-@dirrm lib/bsd-sysctl-1.0.6
-@dirrm share/doc/bsd-sysctl-1.0.6
+@comment $FreeBSD$
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/BSD/Sysctl.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/register.sh
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/BSD
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
+@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 %%PORTNAME%%-%%PORTVERSION%%
+@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old