Date: Fri, 24 Jul 2009 13:59:56 -0700 (PDT) From: Jacula Modyun <jacula@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/137103: [patch]: update of archivers/hs-zlib from the 0.5.0.0 version to the 0.5.2.0 version Message-ID: <200907242059.n6OKxs87027473@splork.wirewater.yow> Resent-Message-ID: <200907242100.n6OL0EpK029134@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 137103 >Category: ports >Synopsis: [patch]: update of archivers/hs-zlib from the 0.5.0.0 version to the 0.5.2.0 version >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Jul 24 21:00:14 UTC 2009 >Closed-Date: >Last-Modified: >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-zlib.diff begins here --- diff -uNr hs-zlib.orig/Makefile hs-zlib/Makefile --- hs-zlib.orig/Makefile 2009-05-13 09:45:48.000000000 +0000 +++ hs-zlib/Makefile 2009-07-22 06:20:17.000000000 +0000 @@ -5,8 +5,7 @@ # $FreeBSD: ports/archivers/hs-zlib/Makefile,v 1.3 2009/05/13 09:45:48 ale Exp $ PORTNAME= zlib -PORTVERSION= 0.5.0.0 -PORTREVISION= 2 +PORTVERSION= 0.5.2.0 CATEGORIES= archivers haskell MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ \ http://kerneled.org/tmp/ @@ -16,23 +15,61 @@ COMMENT= Pure Haskell interface to the C zlib library BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc -LIB_DEPENDS= gmp.8:${PORTSDIR}/math/libgmp4 +RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc -CABAL= ${LOCALBASE}/bin/runghc Setup.hs -GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version` -SUBDIR= lib/${PORTNAME}-${PORTVERSION} -PLIST_SUB= GHC_VERSION="${GHC_VERSION}" \ - PORTVERSION=${PORTVERSION} \ - SUBDIR=${SUBDIR} +GHC_VERSION= 6.10.4 +ZLIB_VERSION= ${PORTVERSION} + +GHC_CMD= ${LOCALBASE}/bin/ghc +SETUP_CMD= ./setup + +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +ZLIB_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + ZLIB_VERSION=${ZLIB_VERSION} \ + ZLIB_LIBDIR_REL=${ZLIB_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.13 +HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION} + +PORTDOCS= * +.endif + +.SILENT: do-configure: - cd ${WRKSRC} && ${CABAL} configure --prefix=${PREFIX} --ghc + cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \ + && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} do-build: - cd ${WRKSRC} && ${CABAL} build && ${CABAL} register --gen-script + 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} && ${CABAL} install - ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${SUBDIR}/register.sh + cd ${WRKSRC} && ${SETUP_CMD} install \ + && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${ZLIB_LIBDIR_REL}/register.sh + +post-install: + ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old .include <bsd.port.mk> diff -uNr hs-zlib.orig/distinfo hs-zlib/distinfo --- hs-zlib.orig/distinfo 2008-11-04 21:24:37.000000000 +0000 +++ hs-zlib/distinfo 2009-07-13 10:35:27.000000000 +0000 @@ -1,3 +1,3 @@ -MD5 (zlib-0.5.0.0.tar.gz) = 22fa6d394c42c8584b234799b923f860 -SHA256 (zlib-0.5.0.0.tar.gz) = 20e067cfbec87ec062ac144875a60e158ea6cf7836aac031ec367fcdd5446891 -SIZE (zlib-0.5.0.0.tar.gz) = 122533 +MD5 (zlib-0.5.2.0.tar.gz) = 19859e241dc18ef1501a5d44d8523507 +SHA256 (zlib-0.5.2.0.tar.gz) = 4119fb627e0adc2b129acd86fe5724cf05a49d8de5b64eb7a6e519d3befd3b8f +SIZE (zlib-0.5.2.0.tar.gz) = 125081 diff -uNr hs-zlib.orig/pkg-descr hs-zlib/pkg-descr --- hs-zlib.orig/pkg-descr 2008-11-04 21:24:37.000000000 +0000 +++ hs-zlib/pkg-descr 2009-07-13 13:41:19.000000000 +0000 @@ -5,4 +5,12 @@ for most tasks and for the few cases where more control is needed it provides access to the full zlib feature set. -WWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib +license: BSD3 +author: Duncan Coutts <duncan@haskell.org> +maintainer: Duncan Coutts <duncan@haskell.org> +WWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib + +exposed-modules: Codec.Compression.GZip, + Codec.Compression.Zlib, + Codec.Compression.Zlib.Raw, + Codec.Compression.Zlib.Internal diff -uNr hs-zlib.orig/pkg-plist hs-zlib/pkg-plist --- hs-zlib.orig/pkg-plist 2008-11-05 23:36:46.000000000 +0000 +++ hs-zlib/pkg-plist 2009-07-22 18:08:47.000000000 +0000 @@ -1,19 +1,19 @@ -%%SUBDIR%%/ghc-%%GHC_VERSION%%/libHSzlib-%%PORTVERSION%%.a -%%SUBDIR%%/ghc-%%GHC_VERSION%%/HSzlib-%%PORTVERSION%%.o -%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Compression/GZip.hi -%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib.hi -%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Internal.hi -%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Raw.hi -%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Stream.hi -%%SUBDIR%%/register.sh -share/doc/zlib-%%PORTVERSION%%/LICENSE -@dirrm share/doc/zlib-%%PORTVERSION%% -@dirrm lib/zlib-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib -@dirrm lib/zlib-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Codec/Compression -@dirrm lib/zlib-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Codec -@dirrm lib/zlib-%%PORTVERSION%%/ghc-%%GHC_VERSION%% -@dirrm lib/zlib-%%PORTVERSION%% -@exec /bin/sh %D/%%SUBDIR%%/register.sh +%%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSzlib-%%ZLIB_VERSION%%.a +%%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSzlib-%%ZLIB_VERSION%%.o +%%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/GZip.hi +%%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib.hi +%%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Internal.hi +%%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Raw.hi +%%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Stream.hi +%%ZLIB_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib +@dirrm %%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression +@dirrm %%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec +@dirrm %%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%ZLIB_LIBDIR_REL%% +@exec /bin/sh %D/%%ZLIB_LIBDIR_REL%%/register.sh @exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old @unexec %D/bin/ghc-pkg unregister zlib @unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old --- patch-hs-zlib.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907242059.n6OKxs87027473>