From jacula@gmail.com  Fri Jul 24 18:02:59 2009
Return-Path: <jacula@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E03E4106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 24 Jul 2009 18:02:59 +0000 (UTC)
	(envelope-from jacula@gmail.com)
Received: from mail-fx0-f219.google.com (mail-fx0-f219.google.com [209.85.220.219])
	by mx1.freebsd.org (Postfix) with ESMTP id 5E62D8FC1B
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 24 Jul 2009 18:02:59 +0000 (UTC)
	(envelope-from jacula@gmail.com)
Received: by fxm19 with SMTP id 19so40305fxm.43
        for <FreeBSD-gnats-submit@freebsd.org>; Fri, 24 Jul 2009 11:02:58 -0700 (PDT)
Received: by 10.204.121.194 with SMTP id i2mr3537595bkr.101.1248458578049;
        Fri, 24 Jul 2009 11:02:58 -0700 (PDT)
Received: from splork.wirewater.yow (host247-86-dynamic.55-79-r.retail.telecomitalia.it [79.55.86.247])
        by mx.google.com with ESMTPS id c28sm5531119fka.19.2009.07.24.11.02.57
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Fri, 24 Jul 2009 11:02:57 -0700 (PDT)
Received: from localhost.wirewater.yow [127.0.0.1]
 	by splork.wirewater.yow (Sendmail: 8.14.3/8.14.3) with ESMTP id n6OI2uD2098526
 	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 24 Jul 2009 18:02:57 GMT
Received: by splork.wirewater.yow (Sendmail: 8.14.3/8.14.3/Submit) id n6OI2unY098525
	;
 	Fri, 24 Jul 2009 18:02:56 GMT
Message-Id: <200907241802.n6OI2unY098525@splork.wirewater.yow>
Date: Fri, 24 Jul 2009 11:02:57 -0700 (PDT)
From: Jacula Modyun <jacula@gmail.com>
Reply-To: Jacula Modyun <jacula@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch]: update of devel/hs-utf8-string-ghc from the 0.3.4 version to the 0.3.5 version
X-Send-Pr-Version: 3.113
X-GNATS-Notify: wahjava@gmail.com

>Number:         137081
>Category:       ports
>Synopsis:       [patch]: update of devel/hs-utf8-string-ghc from the 0.3.4 version to the 0.3.5 version
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pgj
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 24 18:10:00 UTC 2009
>Closed-Date:    Wed Sep 02 17:08:28 UTC 2009
>Last-Modified:  Wed Sep 02 17:08:28 UTC 2009
>Originator:     Jacula Modyun
>Release:        FreeBSD 7.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD splork.wirewater.yow 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Sat Oct 18 11:22:07 UTC 2008 root@splork.wirewater.yow:/usr/obj/usr/src/sys/JACULA i386


	
>Description:

See the PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/137055

>How-To-Repeat:
	
>Fix:

	

--- patch-hs-utf8-string-ghc.diff begins here ---
diff -uNr hs-utf8-string-ghc.orig/Makefile hs-utf8-string-ghc/Makefile
--- hs-utf8-string-ghc.orig/Makefile	2009-01-30 09:54:34.000000000 +0000
+++ hs-utf8-string-ghc/Makefile	2009-07-22 06:24:55.000000000 +0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	utf8-string
-PORTVERSION=	0.3.4
+PORTVERSION=	0.3.5
 CATEGORIES=	devel haskell
 MASTER_SITES=	http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
 PKGNAMEPREFIX=	hs-
@@ -18,37 +18,59 @@
 BUILD_DEPENDS=	ghc:${PORTSDIR}/lang/ghc
 RUN_DEPENDS=	ghc:${PORTSDIR}/lang/ghc
 
-CABALCMD=	${LOCALBASE}/bin/runghc Setup.lhs
-CABALDIR=	${PREFIX}/lib/ghc-${GHC_VERSION}/cabal
-GHC_VERSION=	6.8.3
-SUBDIR=		lib/${PORTNAME}-${PORTVERSION}
-PLIST_SUB+=	GHC_VERSION=${GHC_VERSION} \
-		PORTVERSION=${PORTVERSION} \
-		PORTNAME=${PORTNAME} \
-		SUBDIR=lib/ghc-${GHC_VERSION}/cabal
-DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
-PORTDOCS=	LICENSE html
+GHC_VERSION=		6.10.4
+UTF8STR_VERSION=	${PORTVERSION}
 
-CONFIGURE_ARGS=	--ghc --prefix=${PREFIX} --libdir=${CABALDIR} --libsubdir='' --datasubdir=''
+GHC_CMD=	${LOCALBASE}/bin/ghc
+SETUP_CMD=	./setup
+
+DOCSDIR=		${PREFIX}/share/doc/${DISTNAME}
+UTF8STR_LIBDIR_REL=	lib/${DISTNAME}
+
+PLIST_SUB=	GHC_VERSION=${GHC_VERSION} \
+		UTF8STR_VERSION=${UTF8STR_VERSION} \
+		UTF8STR_LIBDIR_REL=${UTF8STR_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
-.else
-PLIST_DIRS+=	%%DOCSDIR%%
-PLIST_FILES+=	%%DOCSDIR%%/LICENSE
 .endif
+BUILD_DEPENDS+=	HsColour:${PORTSDIR}/print/hs-hscolour
+
+HSCOLOUR_VERSION=	1.13
+HSCOLOUR_DATADIR=	${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
+
+PORTDOCS=	*
+.endif
+
+.SILENT:
 
 do-configure:
-	cd ${WRKSRC} && ${CABALCMD} configure ${CONFIGURE_ARGS}
+	cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
+		     && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
 
 do-build:
-	cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register
+	cd ${WRKSRC} && ${SETUP_CMD} build \
+		     && ${SETUP_CMD} register --gen-script
+
 .if !defined(NOPORTDOCS)
-	cd ${WRKSRC} && ${CABALCMD} haddock
+	cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
+					     --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
 .endif
 
 do-install:
-	cd ${WRKSRC} && ${CABALCMD} install \
-	  && ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${CABALDIR}/${PORTNAME}-register.sh
+	cd ${WRKSRC} && ${SETUP_CMD} install \
+		     && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${UTF8STR_LIBDIR_REL}/register.sh
+
+post-install:
+	${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
 
 .include <bsd.port.mk>
diff -uNr hs-utf8-string-ghc.orig/distinfo hs-utf8-string-ghc/distinfo
--- hs-utf8-string-ghc.orig/distinfo	2009-01-30 09:54:34.000000000 +0000
+++ hs-utf8-string-ghc/distinfo	2009-07-14 15:54:24.000000000 +0000
@@ -1,3 +1,3 @@
-MD5 (utf8-string-0.3.4.tar.gz) = 72d13d9453cdf721dd95bc18144a120a
-SHA256 (utf8-string-0.3.4.tar.gz) = f97027354f0b88af9bf3638aee0eb3bb72c05ec44f4af4c1abe070597059a5bd
-SIZE (utf8-string-0.3.4.tar.gz) = 8063
+MD5 (utf8-string-0.3.5.tar.gz) = d5198209bd81ea4f8af7692e2467336c
+SHA256 (utf8-string-0.3.5.tar.gz) = 41f99b3e9f61ab5309c93f98d45f1ba2e475a8504c5202a350720c27fb82d07a
+SIZE (utf8-string-0.3.5.tar.gz) = 8758
diff -uNr hs-utf8-string-ghc.orig/pkg-descr hs-utf8-string-ghc/pkg-descr
--- hs-utf8-string-ghc.orig/pkg-descr	2008-12-23 12:50:23.000000000 +0000
+++ hs-utf8-string-ghc/pkg-descr	2009-07-14 16:02:03.000000000 +0000
@@ -2,4 +2,15 @@
 provides operations for encoding UTF8 strings to Word8 lists 
 and back, and for reading and writing UTF8 without truncation.
 
-WWW:	http://github.com/glguy/utf8-string/
+Author:		Eric Mertens
+Maintainer:	emertens@galois.com
+License:	BSD3
+WWW:		http://github.com/glguy/utf8-string/
+
+Exposed-modules: Codec.Binary.UTF8.String
+		 Codec.Binary.UTF8.Generic
+		 System.IO.UTF8
+		 System.Environment.UTF8
+		 Data.String.UTF8
+		 Data.ByteString.UTF8
+		 Data.ByteString.Lazy.UTF8
diff -uNr hs-utf8-string-ghc.orig/pkg-plist hs-utf8-string-ghc/pkg-plist
--- hs-utf8-string-ghc.orig/pkg-plist	2009-01-30 09:54:34.000000000 +0000
+++ hs-utf8-string-ghc/pkg-plist	2009-07-20 19:35:50.000000000 +0000
@@ -1,22 +1,28 @@
-%%SUBDIR%%/Codec/Binary/UTF8/Generic.hi
-%%SUBDIR%%/Codec/Binary/UTF8/String.hi
-%%SUBDIR%%/Data/ByteString/Lazy/UTF8.hi
-%%SUBDIR%%/Data/ByteString/UTF8.hi
-%%SUBDIR%%/Data/String/UTF8.hi
-%%SUBDIR%%/System/IO/UTF8.hi
-%%SUBDIR%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
-%%SUBDIR%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
-%%SUBDIR%%/%%PORTNAME%%-register.sh
-@dirrmtry %%SUBDIR%%/System/IO
-@dirrmtry %%SUBDIR%%/System
-@dirrmtry %%SUBDIR%%/Data/String
-@dirrmtry %%SUBDIR%%/Data/ByteString/Lazy
-@dirrmtry %%SUBDIR%%/Data/ByteString
-@dirrmtry %%SUBDIR%%/Data
-@dirrmtry %%SUBDIR%%/Codec/Binary/UTF8
-@dirrmtry %%SUBDIR%%/Codec/Binary
-@dirrmtry %%SUBDIR%%/Codec
-@exec /bin/sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh
+%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8/Generic.hi
+%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8/String.hi
+%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Lazy/UTF8.hi
+%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/UTF8.hi
+%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String/UTF8.hi
+%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSutf8-string-%%UTF8STR_VERSION%%.o
+%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Environment/UTF8.hi
+%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/UTF8.hi
+%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSutf8-string-%%UTF8STR_VERSION%%.a
+%%UTF8STR_LIBDIR_REL%%/register.sh
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
+@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO
+@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Environment
+@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
+@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String
+@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Lazy
+@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString
+@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8
+@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary
+@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec
+@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%UTF8STR_LIBDIR_REL%%
+@exec /bin/sh %D/%%UTF8STR_LIBDIR_REL%%/register.sh
 @exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%
+@unexec %D/bin/ghc-pkg unregister utf8-string
 @unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
--- patch-hs-utf8-string-ghc.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->haskell 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Jul 24 18:10:28 UTC 2009 
Responsible-Changed-Why:  
haskell@ wants this port PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=137081 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Fri Jul 24 18:10:32 UTC 2009 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=137081 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: wahjava@gmail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/137081: [patch]: update of devel/hs-utf8-string-ghc from the 0.3.4 version to the 0.3.5 version
Date: Fri, 24 Jul 2009 18:10:30 UT

 Maintainer of devel/hs-utf8-string-ghc,
 
 Please note that PR ports/137081 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/137081
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
Responsible-Changed-From-To: haskell->wxs 
Responsible-Changed-By: wxs 
Responsible-Changed-When: Fri Jul 24 19:31:49 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=137081 

From: wahjava@gmail.com (Ashish SHUKLA)
To: bug-followup@FreeBSD.org,jacula@gmail.com
Cc:  
Subject: Re: ports/137081: [patch]: update of devel/hs-utf8-string-ghc from the 0.3.4 version to the 0.3.5 version
Date: Tue, 28 Jul 2009 11:49:00 +0530

 --=-=-=
 Content-Transfer-Encoding: quoted-printable
 
 Hi,
 
 I've tested this port on my box and it worked as expected.
 
 I'm approving it.
 
 Thanks
 =2D-=20
 Ashish SHUKLA
 
 --=-=-=
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.12 (GNU/Linux)
 
 iEYEARECAAYFAkpumFgACgkQHy+EEHYuXnT7NwCgwhQK1RknJ2u0NPZrnPAREgSb
 BKsAoLbdI1LBP57CIcAjsh/Ryeiiv6iD
 =sSvs
 -----END PGP SIGNATURE-----
 --=-=-=--
Responsible-Changed-From-To: wxs->pgj 
Responsible-Changed-By: pgj 
Responsible-Changed-When: Fri Aug 28 20:14:56 UTC 2009 
Responsible-Changed-Why:  
Over to me. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=137081 
State-Changed-From-To: feedback->closed 
State-Changed-By: pgj 
State-Changed-When: Wed Sep 2 17:08:11 UTC 2009 
State-Changed-Why:  
Committed.  Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=137081 
>Unformatted:
