diff options
author | pgj <pgj@FreeBSD.org> | 2010-01-08 01:52:53 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2010-01-08 01:52:53 +0800 |
commit | 580000d96e8db0ec566a9111c93ccbb85dfd164a (patch) | |
tree | 1a57f5cea56f906fc0e8f87c9dff667cbb954e4d /devel | |
parent | 4a2c864ae5da9dbe41a501e0bf263d3646d4acf9 (diff) | |
download | freebsd-ports-gnome-580000d96e8db0ec566a9111c93ccbb85dfd164a.tar.gz freebsd-ports-gnome-580000d96e8db0ec566a9111c93ccbb85dfd164a.tar.zst freebsd-ports-gnome-580000d96e8db0ec566a9111c93ccbb85dfd164a.zip |
- Update to 0.9.12
PR: ports/142095
Submitted by: Jacula Modyun <jacula(at)gmail.com> (maintainer)
Diffstat (limited to 'devel')
-rw-r--r-- | devel/hs-uuagc/Makefile | 44 | ||||
-rw-r--r-- | devel/hs-uuagc/distinfo | 6 | ||||
-rw-r--r-- | devel/hs-uuagc/pkg-plist | 21 |
3 files changed, 61 insertions, 10 deletions
diff --git a/devel/hs-uuagc/Makefile b/devel/hs-uuagc/Makefile index 87f91f90be4c..289701fd8540 100644 --- a/devel/hs-uuagc/Makefile +++ b/devel/hs-uuagc/Makefile @@ -6,7 +6,7 @@ # PORTNAME= uuagc -PORTVERSION= 0.9.10 +PORTVERSION= 0.9.12 CATEGORIES= devel haskell MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ PKGNAMEPREFIX= hs- @@ -19,26 +19,60 @@ BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ LIB_DEPENDS+= gmp.8:${PORTSDIR}/math/libgmp4 GHC_VERSION= 6.10.4 +UUAGC_VERSION= ${PORTVERSION} GHC_CMD= ${LOCALBASE}/bin/ghc SETUP_CMD= ./setup -DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +UUAGC_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + UUAGC_VERSION=${UUAGC_VERSION} \ + UUAGC_LIBDIR_REL=${UUAGC_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.15 +HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION} + +PORTDOCS= * +.endif .SILENT: do-configure: cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \ - && ${SETUP_CMD} configure --prefix=${PREFIX} + && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} do-build: - cd ${WRKSRC} && ${SETUP_CMD} build + 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} && ${SETUP_CMD} install + cd ${WRKSRC} && ${SETUP_CMD} install \ + && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${UUAGC_LIBDIR_REL}/register.sh post-install: ${STRIP_CMD} ${PREFIX}/bin/uuagc ${CHMOD} ${BINMODE} ${PREFIX}/bin/uuagc + ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old .include <bsd.port.mk> diff --git a/devel/hs-uuagc/distinfo b/devel/hs-uuagc/distinfo index 743c505b826d..6b649c6f254d 100644 --- a/devel/hs-uuagc/distinfo +++ b/devel/hs-uuagc/distinfo @@ -1,3 +1,3 @@ -MD5 (uuagc-0.9.10.tar.gz) = 4be7fb2b0e7477b929e88977ab2c66f9 -SHA256 (uuagc-0.9.10.tar.gz) = cdbe78b6138a67bbc612f0f667f70ba483ebbdaa4d0c87c5508cfb5e68a49dcb -SIZE (uuagc-0.9.10.tar.gz) = 191213 +MD5 (uuagc-0.9.12.tar.gz) = d8e67d97ac15145f0d60f4bc53600066 +SHA256 (uuagc-0.9.12.tar.gz) = a6e6793be22c39bee2d3539aad30c34409f2af62bfbb93b272da9d6bf08979be +SIZE (uuagc-0.9.12.tar.gz) = 198285 diff --git a/devel/hs-uuagc/pkg-plist b/devel/hs-uuagc/pkg-plist index 11b417f5d194..cc97b0902d70 100644 --- a/devel/hs-uuagc/pkg-plist +++ b/devel/hs-uuagc/pkg-plist @@ -1,4 +1,21 @@ @comment $FreeBSD$ bin/uuagc -%%DOCSDIR%%/LICENSE -@dirrm %%DOCSDIR%% +%%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC.hi +%%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC/AbsSyn.hi +%%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC/Options.hi +%%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC/Parser.hi +%%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC/UUAGC.hi +%%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSuuagc-%%UUAGC_VERSION%%.o +%%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSuuagc-%%UUAGC_VERSION%%.a +%%UUAGC_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC +@dirrm %%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple +@dirrm %%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution +@dirrm %%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%UUAGC_LIBDIR_REL%% +@exec /bin/sh %D/%%UUAGC_LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister uuagc +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |