diff options
author | Gabor Pali <pgj@FreeBSD.org> | 2010-05-12 16:33:59 +0000 |
---|---|---|
committer | Gabor Pali <pgj@FreeBSD.org> | 2010-05-12 16:33:59 +0000 |
commit | ec29a59ec3d0472e808e9907b2f18dce2e9fe68c (patch) | |
tree | bd2ff04188a74e09a51bfecae86236b3684491e5 /textproc/hs-texmath | |
parent | Here is a more descriptive pkg-descr. :-) (diff) |
Introduce a new (and hopefully better) ports infrastructure for Haskell Cabal
ports which makes possible the direct translation of Cabal package
descriptions to FreeBSD ports. It promises both easier addition and
maintenance for Cabal-based ports.
Notes
Notes:
svn path=/head/; revision=254209
Diffstat (limited to 'textproc/hs-texmath')
-rw-r--r-- | textproc/hs-texmath/Makefile | 74 | ||||
-rw-r--r-- | textproc/hs-texmath/pkg-plist | 24 |
2 files changed, 16 insertions, 82 deletions
diff --git a/textproc/hs-texmath/Makefile b/textproc/hs-texmath/Makefile index fb4f6fbe1e35..0cbad2d893e9 100644 --- a/textproc/hs-texmath/Makefile +++ b/textproc/hs-texmath/Makefile @@ -8,82 +8,16 @@ PORTNAME= texmath PORTVERSION= 0.1.1 CATEGORIES= textproc haskell -MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ -PKGNAMEPREFIX= hs- MAINTAINER= jacula@gmail.com COMMENT= Conversion of LaTeX math formulas to MathML for Haskell -BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ - hs-xml>=1.2.6:${PORTSDIR}/textproc/hs-xml \ - hs-cgi>=3001.1.7.1:${PORTSDIR}/www/hs-cgi \ - hs-json>=0.4.3:${PORTSDIR}/converters/hs-json -RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ - hs-xml>=1.2.6:${PORTSDIR}/textproc/hs-xml \ - hs-cgi>=3001.1.7.1:${PORTSDIR}/www/hs-cgi \ - hs-json>=0.4.3:${PORTSDIR}/converters/hs-json +CABAL_SETUP= Setup.hs +USE_HACKAGE= cgi json xml -GHC_VERSION= 6.10.4 -TEXMATH_VERSION= ${PORTVERSION} +EXECUTABLE= testTeXMathML texmath-cgi -GHC_CMD= ${LOCALBASE}/bin/ghc -SETUP_CMD= ./setup - -DATADIR= ${PREFIX}/share/${DISTNAME} PORTDATA= * -DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} -TEXMATH_LIBDIR_REL= lib/${DISTNAME} - -PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ - TEXMATH_VERSION=${TEXMATH_VERSION} \ - TEXMATH_LIBDIR_REL=${TEXMATH_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 -.if !defined(NOPORTDATA) - cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} -.else - cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \ - --datadir='' --datasubdir='' --docdir='${DOCSDIR}' -.endif - -do-build: - cd ${WRKSRC} && ${SETUP_CMD} build \ - && ${SETUP_CMD} register --gen-script - -.if !defined(NOPORTDOCS) - cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source --executables \ - --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css -.endif - -do-install: - cd ${WRKSRC} && ${SETUP_CMD} install \ - && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${TEXMATH_LIBDIR_REL}/register.sh - -post-install: - ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old - +.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include <bsd.port.mk> diff --git a/textproc/hs-texmath/pkg-plist b/textproc/hs-texmath/pkg-plist index 3ffbe951dd16..d1ba492f90a7 100644 --- a/textproc/hs-texmath/pkg-plist +++ b/textproc/hs-texmath/pkg-plist @@ -1,19 +1,19 @@ @comment $FreeBSD$ bin/testTeXMathML bin/texmath-cgi -%%TEXMATH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HStexmath-%%TEXMATH_VERSION%%.o -%%TEXMATH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/TeXMath.hi -%%TEXMATH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/TeXMath/MathMLWriter.hi -%%TEXMATH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/TeXMath/Parser.hi -%%TEXMATH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHStexmath-%%TEXMATH_VERSION%%.a -%%TEXMATH_LIBDIR_REL%%/register.sh +%%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 +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/TeXMath/Parser.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a +%%LIBDIR_REL%%/register.sh %%NOPORTDOCS%%%%DOCSDIR%%/LICENSE %%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% -@dirrm %%TEXMATH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/TeXMath -@dirrm %%TEXMATH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text -@dirrm %%TEXMATH_LIBDIR_REL%%/ghc-%%GHC_VERSION%% -@dirrm %%TEXMATH_LIBDIR_REL%% -@exec /bin/sh %D/%%TEXMATH_LIBDIR_REL%%/register.sh +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/TeXMath +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%LIBDIR_REL%% +@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh @exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old -@unexec %D/bin/ghc-pkg unregister texmath +@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%% @unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |