From bf227d90756e8fd07f52ed2d68b314f73c6aa60d Mon Sep 17 00:00:00 2001 From: Gabor Pali Date: Tue, 12 Jan 2010 22:17:55 +0000 Subject: [PATCH] Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds in Haskell. WWW: http://hackage.haskell.org/package/feed PR: ports/142568 Submitted by: Jacula Modyun --- textproc/Makefile | 1 + textproc/hs-feed/Makefile | 79 ++++++++++++++++++++++++++++++++++++++ textproc/hs-feed/distinfo | 3 ++ textproc/hs-feed/pkg-descr | 3 ++ textproc/hs-feed/pkg-plist | 42 ++++++++++++++++++++ 5 files changed, 128 insertions(+) create mode 100644 textproc/hs-feed/Makefile create mode 100644 textproc/hs-feed/distinfo create mode 100644 textproc/hs-feed/pkg-descr create mode 100644 textproc/hs-feed/pkg-plist diff --git a/textproc/Makefile b/textproc/Makefile index a62e079e78d4..a50c00146771 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -219,6 +219,7 @@ SUBDIR += hr-aspell SUBDIR += hs-Diff SUBDIR += hs-bytestring-csv + SUBDIR += hs-feed SUBDIR += hs-haxml SUBDIR += hs-highlighting-kate-ghc SUBDIR += hs-polyparse-ghc diff --git a/textproc/hs-feed/Makefile b/textproc/hs-feed/Makefile new file mode 100644 index 000000000000..faacd1946fbc --- /dev/null +++ b/textproc/hs-feed/Makefile @@ -0,0 +1,79 @@ +# New ports collection makefile for: hs-feed +# Date created: January 10 2010 +# Whom: Giuseppe Pilichi aka Jacula Modyun +# +# $FreeBSD$ +# + +PORTNAME= feed +PORTVERSION= 0.3.7 +CATEGORIES= textproc haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- + +MAINTAINER= jacula@gmail.com +COMMENT= Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds in Haskell + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ + hs-utf8-string-ghc>=0.3.6:${PORTSDIR}/devel/hs-utf8-string-ghc \ + hs-xml>=1.2.6:${PORTSDIR}/textproc/hs-xml +RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ + hs-utf8-string-ghc>=0.3.6:${PORTSDIR}/devel/hs-utf8-string-ghc \ + hs-xml>=1.2.6:${PORTSDIR}/textproc/hs-xml + +GHC_VERSION= 6.10.4 +FEED_VERSION= ${PORTVERSION} + +GHC_CMD= ${LOCALBASE}/bin/ghc +SETUP_CMD= ./setup + +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +FEED_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + FEED_VERSION=${FEED_VERSION} \ + FEED_LIBDIR_REL=${FEED_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}/${FEED_LIBDIR_REL}/register.sh + +post-install: + ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old + +.include diff --git a/textproc/hs-feed/distinfo b/textproc/hs-feed/distinfo new file mode 100644 index 000000000000..86b55b3a8f37 --- /dev/null +++ b/textproc/hs-feed/distinfo @@ -0,0 +1,3 @@ +MD5 (feed-0.3.7.tar.gz) = 1c48ada3060fc18121b07e137dc6e47f +SHA256 (feed-0.3.7.tar.gz) = c2d539f763cdce1b1498f1fd0707b12078337aff690f01e41db0b6e3569c08aa +SIZE (feed-0.3.7.tar.gz) = 72592 diff --git a/textproc/hs-feed/pkg-descr b/textproc/hs-feed/pkg-descr new file mode 100644 index 000000000000..849d5d32a39e --- /dev/null +++ b/textproc/hs-feed/pkg-descr @@ -0,0 +1,3 @@ +Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds in Haskell. + +WWW: http://hackage.haskell.org/package/feed diff --git a/textproc/hs-feed/pkg-plist b/textproc/hs-feed/pkg-plist new file mode 100644 index 000000000000..837ef839cb80 --- /dev/null +++ b/textproc/hs-feed/pkg-plist @@ -0,0 +1,42 @@ +@comment $FreeBSD$ +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSfeed-%%FEED_VERSION%%.o +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed/Export.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed/Import.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed/Link.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed/Validate.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Pub.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Pub/Export.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/DublinCore/Types.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Constructor.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Export.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Import.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Query.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Translate.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Types.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Util.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS/Export.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS/Import.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS/Syntax.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS1/Export.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS1/Import.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS1/Syntax.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS1/Utils.hi +%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSfeed-%%FEED_VERSION%%.a +%%FEED_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS1 +@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS +@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed +@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/DublinCore +@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Pub +@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed +@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom +@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text +@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%FEED_LIBDIR_REL%% +@exec /bin/sh %D/%%FEED_LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister feed +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old