diff options
author | pgj <pgj@FreeBSD.org> | 2010-01-13 06:16:04 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2010-01-13 06:16:04 +0800 |
commit | 8095bc0b7513f9c726d9699e28c035293d3471a2 (patch) | |
tree | 5b71fdc788ea41e3bbd66071c83dc2212186cc98 /textproc | |
parent | ca1f1d3e7d0b739cb1a59c7cba7281c81536bfe1 (diff) | |
download | freebsd-ports-gnome-8095bc0b7513f9c726d9699e28c035293d3471a2.tar.gz freebsd-ports-gnome-8095bc0b7513f9c726d9699e28c035293d3471a2.tar.zst freebsd-ports-gnome-8095bc0b7513f9c726d9699e28c035293d3471a2.zip |
A simple XML library for Haskell.
WWW: http://hackage.haskell.org/package/xml
PR: ports/142567
Submitted by: Jacula Modyun <jacula(at)gmail.com>
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/hs-xml/Makefile | 75 | ||||
-rw-r--r-- | textproc/hs-xml/distinfo | 3 | ||||
-rw-r--r-- | textproc/hs-xml/pkg-descr | 3 | ||||
-rw-r--r-- | textproc/hs-xml/pkg-plist | 21 |
5 files changed, 103 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index a25c0f01c0c4..a62e079e78d4 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -224,6 +224,7 @@ SUBDIR += hs-polyparse-ghc SUBDIR += hs-stringsearch SUBDIR += hs-tagsoup + SUBDIR += hs-xml SUBDIR += hsb-aspell SUBDIR += htdig SUBDIR += html diff --git a/textproc/hs-xml/Makefile b/textproc/hs-xml/Makefile new file mode 100644 index 000000000000..3f040b01d51e --- /dev/null +++ b/textproc/hs-xml/Makefile @@ -0,0 +1,75 @@ +# New ports collection makefile for: hs-xml +# Date created: January 10 2010 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= xml +PORTVERSION= 1.3.5 +CATEGORIES= textproc haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- + +MAINTAINER= jacula@gmail.com +COMMENT= A simple XML library for Haskell + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc +RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc + +GHC_VERSION= 6.10.4 +HSXML_VERSION= ${PORTVERSION} + +GHC_CMD= ${LOCALBASE}/bin/ghc +SETUP_CMD= ./setup + +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +HSXML_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + HSXML_VERSION=${HSXML_VERSION} \ + HSXML_LIBDIR_REL=${HSXML_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 --haddock-options=-w --prefix=${PREFIX} + +do-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 \ + && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSXML_LIBDIR_REL}/register.sh + +post-install: + ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old + +.include <bsd.port.mk> diff --git a/textproc/hs-xml/distinfo b/textproc/hs-xml/distinfo new file mode 100644 index 000000000000..582fbc2d873f --- /dev/null +++ b/textproc/hs-xml/distinfo @@ -0,0 +1,3 @@ +MD5 (xml-1.3.5.tar.gz) = 27d2b6127ad1e349a97cfa659c8bd4d2 +SHA256 (xml-1.3.5.tar.gz) = d61abd617e6e4d5b384e19403486ecc0e5dccf412a235acce2a7b7072e97c3ab +SIZE (xml-1.3.5.tar.gz) = 11441 diff --git a/textproc/hs-xml/pkg-descr b/textproc/hs-xml/pkg-descr new file mode 100644 index 000000000000..b47d2bc63727 --- /dev/null +++ b/textproc/hs-xml/pkg-descr @@ -0,0 +1,3 @@ +A simple XML library for Haskell. + +WWW: http://hackage.haskell.org/package/xml diff --git a/textproc/hs-xml/pkg-plist b/textproc/hs-xml/pkg-plist new file mode 100644 index 000000000000..d7e5945bc581 --- /dev/null +++ b/textproc/hs-xml/pkg-plist @@ -0,0 +1,21 @@ +@comment $FreeBSD$ +%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSxml-%%HSXML_VERSION%%.o +%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light.hi +%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Cursor.hi +%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Input.hi +%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Output.hi +%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Proc.hi +%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Types.hi +%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSxml-%%HSXML_VERSION%%.a +%%HSXML_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light +@dirrm %%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML +@dirrm %%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text +@dirrm %%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%HSXML_LIBDIR_REL%% +@exec /bin/sh %D/%%HSXML_LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister xml +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |