[Freebsd-haskell] [PATCH 5/9] x11/hs-x11-xft-ghc:

Jacula Modyun jacula at gmail.com
Sun Mar 8 09:39:33 EDT 2009


- standardized pkg-descr

- corrected profile dependence in the Makefile

- corrected a double run dependence on ghc

- corrected the variable D_NAME

- deleted some lines of comment
---
 x11/hs-x11-xft-ghc/Makefile  |   35 ++++++-----------------------------
 x11/hs-x11-xft-ghc/pkg-descr |    9 ++++++++-
 2 files changed, 14 insertions(+), 30 deletions(-)

diff --git a/x11/hs-x11-xft-ghc/Makefile b/x11/hs-x11-xft-ghc/Makefile
index 5118333..5056d2b 100644
--- a/x11/hs-x11-xft-ghc/Makefile
+++ b/x11/hs-x11-xft-ghc/Makefile
@@ -19,39 +19,16 @@ COMMENT=	Bindings to the Xft, Xrender and Freetype for Haskell programs
 
 BUILD_DEPENDS=	hs-x11-ghc>=1.2.1:${PORTSDIR}/x11/hs-x11-ghc \
 		hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
-RUN_DEPENDS=	ghc:${PORTSDIR}/lang/ghc \
-		hs-x11-ghc>=1.2.1:${PORTSDIR}/x11/hs-x11-ghc \
+RUN_DEPENDS=	hs-x11-ghc>=1.2.1:${PORTSDIR}/x11/hs-x11-ghc \
 		hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
 
+D_NAME=		X11-xft
 USE_XORG=	xft xrender
 USE_CABAL=	distrsimple:full docs lhs hc:bothdep profile:all:full
 
-# CABALCMD=	${LOCALBASE}/bin/runghc Setup.lhs
-# CABALDIR=	${PREFIX}/lib/ghc-${GHC_VERSION}/cabal
-# GHC_VERSION=	6.8.3
-# PLIST_SUB+=	GHC_VERSION=${GHC_VERSION} \
-# 		PORTVERSION=${PORTVERSION} \
-# 		PORTNAME=${PORTNAME} \
-# 		SUBDIR=lib/ghc-${GHC_VERSION}/cabal
-# DOCSDIR=	${PREFIX}/share/doc/X11-xft-${PORTVERSION}
-
-# CONFIGURE_ARGS=	--ghc --prefix=${PREFIX} --libdir=${CABALDIR} --libsubdir='' --datasubdir=''
-
-# .ifndef (NOPORTDOCS)
-# BUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
-# .endif
-
-# do-configure:
-# 	cd ${WRKSRC} && ${CABALCMD} configure ${CONFIGURE_ARGS}
-
-# do-build:
-# 	cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register
-# .ifndef (NOPORTDOCS)
-# 	cd ${WRKSRC} && ${CABALCMD} haddock
-# .endif
-
-# do-install:
-# 	cd ${WRKSRC} && ${CABALCMD} install \
-# 	  && ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${CABALDIR}/${PORTNAME}-register.sh
+.if !defined(NO_PROFILE)
+PROFILE_DEPENDS=	libHSX11-%%ver%%:${PORTSDIR}/x11/hs-x11-ghc \
+			libHSutf8-string-%%ver%%:${PORTSDIR}/devel/hs-utf8-string-ghc
+.endif
 
 .include <bsd.port.mk>
diff --git a/x11/hs-x11-xft-ghc/pkg-descr b/x11/hs-x11-xft-ghc/pkg-descr
index 69fd196..cb7b723 100644
--- a/x11/hs-x11-xft-ghc/pkg-descr
+++ b/x11/hs-x11-xft-ghc/pkg-descr
@@ -1,4 +1,11 @@
 Bindings to the Xft, X Free Type interface library, and 
 some Xrender parts.
 
-WWW:	http://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11-xft
+Author:		Clemens Fruhwirth
+Maintainer:	clemens at endorphin.org
+License:	LGPL
+WWW:		http://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11-xft
+
+Exposed-modules:
+	Graphics.X11.Xft
+	Graphics.X11.Xrender
-- 
1.6.1.3



More information about the FreeBSD-haskell mailing list