aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorpgj <pgj@FreeBSD.org>2010-05-16 06:06:56 +0800
committerpgj <pgj@FreeBSD.org>2010-05-16 06:06:56 +0800
commitb0eed793d998fb31679ce6b330511c64a7f64f14 (patch)
tree76a977dad0982b435a4ef7a346ce8f06537229e4 /textproc
parent046b39c41a4b0166f0579bfc84da6bf32d761812 (diff)
downloadfreebsd-ports-gnome-b0eed793d998fb31679ce6b330511c64a7f64f14.tar.gz
freebsd-ports-gnome-b0eed793d998fb31679ce6b330511c64a7f64f14.tar.zst
freebsd-ports-gnome-b0eed793d998fb31679ce6b330511c64a7f64f14.zip
- Update to 0.8
- Import OPTIONS Approved by: jacula (maintainer)
Diffstat (limited to 'textproc')
-rw-r--r--textproc/hs-tagsoup/Makefile21
-rw-r--r--textproc/hs-tagsoup/distinfo6
-rw-r--r--textproc/hs-tagsoup/pkg-plist10
3 files changed, 25 insertions, 12 deletions
diff --git a/textproc/hs-tagsoup/Makefile b/textproc/hs-tagsoup/Makefile
index f67925a60ac8..44f9bf9ad9c5 100644
--- a/textproc/hs-tagsoup/Makefile
+++ b/textproc/hs-tagsoup/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= tagsoup
-PORTVERSION= 0.6
-PORTREVISION= 1
+PORTVERSION= 0.8
CATEGORIES= textproc haskell
MAINTAINER= jacula@gmail.com
@@ -15,15 +14,23 @@ COMMENT= A Haskell library for extracting information from HTML documents
CABAL_SETUP= Setup.hs
-EXECUTABLE= tagsoup
-
PORTDATA= *
INSTALL_PORTDATA= cd ${WRKSRC} && \
${INSTALL_DATA} ${WRKSRC}/tagsoup.htm ${DATADIR}
-PORTEXAMPLES= *
-INSTALL_PORTEXAMPLES= cd ${WRKSRC}/Example && \
- ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
+OPTIONS= TESTPROG "Build the test program" on
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_TESTPROG)
+CONFIGURE_ARGS+= --flags="testprog"
+EXECUTABLE+= tagsoup
+USE_HACKAGE+= deepseq==1.1.0.0 HTTP QuickCheck>=2.1.0.0
+PLIST_SUB+= MAYBE_TESTPROG=""
+.else
+CONFIGURE_ARGS+= --flags="-testprog"
+PLIST_SUB+= MAYBE_TESTPROG="@comment "
+.endif
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/textproc/hs-tagsoup/distinfo b/textproc/hs-tagsoup/distinfo
index 2b47434c1f71..fe2804380850 100644
--- a/textproc/hs-tagsoup/distinfo
+++ b/textproc/hs-tagsoup/distinfo
@@ -1,3 +1,3 @@
-MD5 (tagsoup-0.6.tar.gz) = 4db416463189292609b4cd3d0e867ccd
-SHA256 (tagsoup-0.6.tar.gz) = 4331accd178fd5d4ca6dd9debe39da245f44be44a70134453441b4ef14683a78
-SIZE (tagsoup-0.6.tar.gz) = 21627
+MD5 (tagsoup-0.8.tar.gz) = 025aa572e366b51d7234963b5c6e5ac4
+SHA256 (tagsoup-0.8.tar.gz) = 83fd8caf3688efcd2cfad6d06dd96c7cc4d49346125fa7d04b561018af65aa88
+SIZE (tagsoup-0.8.tar.gz) = 28208
diff --git a/textproc/hs-tagsoup/pkg-plist b/textproc/hs-tagsoup/pkg-plist
index 63f3e91be980..5b05fe5038e9 100644
--- a/textproc/hs-tagsoup/pkg-plist
+++ b/textproc/hs-tagsoup/pkg-plist
@@ -1,14 +1,20 @@
@comment $FreeBSD$
-bin/tagsoup
-%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%MAYBE_TESTPROG%%bin/tagsoup
%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/Download.hi
%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup.hi
%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Entity.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Generated.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Implementation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Manual.hi
%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Match.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Options.hi
%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Parser.hi
%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Render.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Specification.hi
%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Tree.hi
%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Type.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/StringLike.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE