diff options
author | pgj <pgj@FreeBSD.org> | 2010-07-30 17:05:08 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2010-07-30 17:05:08 +0800 |
commit | 4096b079fbe662d05d85dff0cc868b5bf53a5de4 (patch) | |
tree | 538850e0254a4ab05fa700820c3358796f70377a /textproc | |
parent | 253be354ac0ac08854129f67658294b88e98a6f4 (diff) | |
download | freebsd-ports-gnome-4096b079fbe662d05d85dff0cc868b5bf53a5de4.tar.gz freebsd-ports-gnome-4096b079fbe662d05d85dff0cc868b5bf53a5de4.tar.zst freebsd-ports-gnome-4096b079fbe662d05d85dff0cc868b5bf53a5de4.zip |
- Update to 0.3.0.1
- Add OPTIONS
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/hs-texmath/Makefile | 29 | ||||
-rw-r--r-- | textproc/hs-texmath/distinfo | 6 | ||||
-rw-r--r-- | textproc/hs-texmath/files/patch-texmath.cabal | 26 | ||||
-rw-r--r-- | textproc/hs-texmath/pkg-plist | 4 |
4 files changed, 57 insertions, 8 deletions
diff --git a/textproc/hs-texmath/Makefile b/textproc/hs-texmath/Makefile index 3fe505d6ed96..a8a31a2dba8f 100644 --- a/textproc/hs-texmath/Makefile +++ b/textproc/hs-texmath/Makefile @@ -6,18 +6,41 @@ # PORTNAME= texmath -PORTVERSION= 0.2.0.3 +PORTVERSION= 0.3.0.1 CATEGORIES= textproc haskell MAINTAINER= haskell@FreeBSD.org COMMENT= Conversion of LaTeX math formulas to MathML for Haskell CABAL_SETUP= Setup.hs -USE_HACKAGE= cgi json xml +USE_HACKAGE= xml utf8-string -EXECUTABLE= testTeXMathML texmath-cgi +OPTIONS= CGI "Compile CGI executable" off \ + TEST "Compile test executable" off PORTDATA= * +.include "${.CURDIR}/../../lang/ghc/bsd.cabal.options.mk" +.include <bsd.port.options.mk> + +.if defined(WITH_CGI) +CONFIGURE_ARGS+= --flags="cgi" +USE_HACKAGE+= cgi json +EXECUTABLE+= texmath-cgi +PLIST_SUB+= MAYBE_CGI="" +.else +CONFIGURE_ARGS+= --flags="-cgi" +PLIST_SUB+= MAYBE_CGI="@comment " +.endif + +.if defined(WITH_TEST) +CONFIGURE_ARGS+= --flags="test" +EXECUTABLE+= testTeXMathML +PLIST_SUB+= MAYBE_TEST="" +.else +CONFIGURE_ARGS+= --flags="-test" +PLIST_SUB+= MAYBE_TEST="@comment " +.endif + .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include <bsd.port.mk> diff --git a/textproc/hs-texmath/distinfo b/textproc/hs-texmath/distinfo index 930fb72d9513..2608a64806a1 100644 --- a/textproc/hs-texmath/distinfo +++ b/textproc/hs-texmath/distinfo @@ -1,3 +1,3 @@ -MD5 (texmath-0.2.0.3.tar.gz) = 5f0b9c3433a050703fe1974ecfba159e -SHA256 (texmath-0.2.0.3.tar.gz) = d355a298d28b9f5356926c2d2942f28ed07afa9d944cadfa47d8cdec73725b55 -SIZE (texmath-0.2.0.3.tar.gz) = 19630 +MD5 (texmath-0.3.0.1.tar.gz) = f2ec771aaae9e678bf9106fe161efb85 +SHA256 (texmath-0.3.0.1.tar.gz) = e1f4773b152ad30ab22f2f31fd6227017474504559ba4fe9a919631448c5c288 +SIZE (texmath-0.3.0.1.tar.gz) = 25368 diff --git a/textproc/hs-texmath/files/patch-texmath.cabal b/textproc/hs-texmath/files/patch-texmath.cabal new file mode 100644 index 000000000000..f598a4505bc7 --- /dev/null +++ b/textproc/hs-texmath/files/patch-texmath.cabal @@ -0,0 +1,26 @@ +--- ./texmath.cabal.orig 2010-07-23 00:04:31.000000000 +0200 ++++ ./texmath.cabal 2010-07-29 13:52:06.000000000 +0200 +@@ -63,12 +63,12 @@ + Build-depends: base >= 3 && < 4 + Exposed-modules: Text.TeXMath, Text.TeXMath.Parser, Text.TeXMath.MathMLWriter + +- Ghc-Options: -Wall -fno-warn-unused-do-bind ++ Ghc-Options: -Wall + Ghc-Prof-Options: -auto-all + + Executable testTeXMathML + Main-is: testTeXMathML.hs +- Ghc-Options: -Wall -fno-warn-unused-do-bind ++ Ghc-Options: -Wall + Ghc-Prof-Options: -auto-all + if flag(test) + Buildable: True +@@ -78,7 +78,7 @@ + Executable texmath-cgi + Main-is: cgi/texmath-cgi.hs + Build-depends: utf8-string +- Ghc-Options: -Wall -fno-warn-unused-do-bind ++ Ghc-Options: -Wall + Ghc-Prof-Options: -auto-all + if flag(cgi) + Buildable: True diff --git a/textproc/hs-texmath/pkg-plist b/textproc/hs-texmath/pkg-plist index d1ba492f90a7..16bd4a0b1700 100644 --- a/textproc/hs-texmath/pkg-plist +++ b/textproc/hs-texmath/pkg-plist @@ -1,6 +1,6 @@ @comment $FreeBSD$ -bin/testTeXMathML -bin/texmath-cgi +%%MAYBE_TEST%%bin/testTeXMathML +%%MAYBE_CGI%%bin/texmath-cgi %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/TeXMath.hi %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/TeXMath/MathMLWriter.hi |