1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

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 <jacula(at)gmail.com>
This commit is contained in:
Gabor Pali 2010-01-12 22:17:55 +00:00
parent 710cd8e50b
commit bf227d9075
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247761
5 changed files with 128 additions and 0 deletions

View File

@ -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

79
textproc/hs-feed/Makefile Normal file
View File

@ -0,0 +1,79 @@
# New ports collection makefile for: hs-feed
# Date created: January 10 2010
# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
#
# $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 <bsd.port.mk>

View File

@ -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

View File

@ -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

View File

@ -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