ports/146538: [maintainer update] devel/hs-bsd-sysctl
Ju Pengfei
jupengfei at gmail.com
Thu May 13 04:10:10 UTC 2010
>Number: 146538
>Category: ports
>Synopsis: [maintainer update] devel/hs-bsd-sysctl
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu May 13 04:10:09 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Ju Pengfei
>Release: 8.0-RELEASE-p2
>Organization:
Ju Pengfei
>Environment:
>Description:
Convert ports to Cabal format.
>How-To-Repeat:
>Fix:
apply this patch, please.
Patch attached with submission follows:
diff -ruN hs-bsd-sysctl.bak/Makefile hs-bsd-sysctl/Makefile
--- hs-bsd-sysctl.bak/Makefile 2010-05-05 14:45:58.000000000 +0800
+++ hs-bsd-sysctl/Makefile 2010-05-13 10:37:50.000000000 +0800
@@ -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 at gmail.com
COMMENT= Access to the BSD sysctl(3) interface via the Haskell FFI
-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 -ruN hs-bsd-sysctl.bak/pkg-plist hs-bsd-sysctl/pkg-plist
--- hs-bsd-sysctl.bak/pkg-plist 2010-05-05 14:45:58.000000000 +0800
+++ hs-bsd-sysctl/pkg-plist 2010-05-13 11:56:38.000000000 +0800
@@ -1,9 +1,29 @@
-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
- at dirrm lib/bsd-sysctl-1.0.6/ghc-6.10.4/System/BSD
- at dirrm lib/bsd-sysctl-1.0.6/ghc-6.10.4/System
- at dirrm lib/bsd-sysctl-1.0.6/ghc-6.10.4
- at dirrm lib/bsd-sysctl-1.0.6
- at dirrm share/doc/bsd-sysctl-1.0.6
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/BSD/Sysctl.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSbsd-sysctl-1.0.6.a
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSbsd-sysctl-1.0.6.o
+%%LIBDIR_REL%%/register.sh
+%%NOPORTDOCS%%%%DOCSDIR%%/html/src/hscolour.css
+%%NOPORTDOCS%%%%DOCSDIR%%/html/src/System-BSD-Sysctl.html
+%%NOPORTDOCS%%%%DOCSDIR%%/html/index.html
+%%NOPORTDOCS%%%%DOCSDIR%%/html/index-frames.html
+%%NOPORTDOCS%%%%DOCSDIR%%/html/doc-index.html
+%%NOPORTDOCS%%%%DOCSDIR%%/html/System-BSD-Sysctl.html
+%%NOPORTDOCS%%%%DOCSDIR%%/html/mini_System-BSD-Sysctl.html
+%%NOPORTDOCS%%%%DOCSDIR%%/html/haddock.css
+%%NOPORTDOCS%%%%DOCSDIR%%/html/haskell_icon.gif
+%%NOPORTDOCS%%%%DOCSDIR%%/html/plus.gif
+%%NOPORTDOCS%%%%DOCSDIR%%/html/minus.gif
+%%NOPORTDOCS%%%%DOCSDIR%%/html/haddock-util.js
+%%NOPORTDOCS%%%%DOCSDIR%%/html/frames.html
+%%NOPORTDOCS%%%%DOCSDIR%%/html/bsd-sysctl.haddock
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+ at dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/BSD
+ at dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
+ at dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+ at dirrm %%LIBDIR_REL%%
+%%NOPORTDOCS%%@dirrm %%DOCSDIR%%/html
+%%NOPORTDOCS%%@dirrm %%DOCSDIR%%
+ at exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
+ at exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
+ at unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
+ at unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list