diff options
author | miwi <miwi@FreeBSD.org> | 2007-05-01 11:16:09 +0000 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-05-01 11:16:09 +0000 |
commit | 065406d0455aca8ca333604fafda32fda43d1900 (patch) | |
tree | d2569f483a6f6d6cdb3b8b2ab6c70e8135bac8be /textproc | |
parent | df133c8f923d249a17ba523a45b98716db4f3df0 (diff) | |
download | FreeBSD-ports-065406d0455aca8ca333604fafda32fda43d1900.zip FreeBSD-ports-065406d0455aca8ca333604fafda32fda43d1900.tar.gz |
lhs2TeX is a preprocessor to generate LaTeX code from literate Haskell
sources. It is released under the GPL.
WWW: http://www.informatik.uni-bonn.de/~loeh/lhs2tex/
PR: ports/112096
Submitted by: mainland at apeiron.net
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/hs-lhs2tex/Makefile | 36 | ||||
-rw-r--r-- | textproc/hs-lhs2tex/distinfo | 3 | ||||
-rw-r--r-- | textproc/hs-lhs2tex/files/patch-Makefile | 29 | ||||
-rw-r--r-- | textproc/hs-lhs2tex/files/patch-configure | 11 | ||||
-rw-r--r-- | textproc/hs-lhs2tex/pkg-descr | 4 | ||||
-rw-r--r-- | textproc/hs-lhs2tex/pkg-plist | 18 |
6 files changed, 101 insertions, 0 deletions
diff --git a/textproc/hs-lhs2tex/Makefile b/textproc/hs-lhs2tex/Makefile new file mode 100644 index 0000000..aa810f2 --- /dev/null +++ b/textproc/hs-lhs2tex/Makefile @@ -0,0 +1,36 @@ +# ex:ts=8 +# Ports collection makefile for: lhs2TeX +# Date created: April 24, 2007 +# Whom: mainland@apeiron.net +# +# $FreeBSD$ +# + +PORTNAME= lhs2tex +PORTVERSION= 1.12 +CATEGORIES= devel haskell +MASTER_SITES= http://www.informatik.uni-bonn.de/~loeh/${PORTNAME}/ + +MAINTAINER= mainland@apeiron.net +COMMENT= A preprocessor to generate LaTeX code from literate Haskell sources + +BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \ + mktexlsr:${PORTSDIR}/print/teTeX-base + +USE_BZIP2= yes +USE_GMAKE= yes +HAS_CONFIGURE= yes +CONFIGURE_ARGS= --prefix=${PREFIX} \ + --datadir=${DATADIR} \ + --docdir=${DOCSDIR} \ + --mandir=${MANPREFIX}/man + +.if defined(NOPORTDOCS) +INSTALL_TARGET=install +.else +INSTALL_TARGET=install install-doc +.endif + +MAN1= lhs2TeX.1 + +.include <bsd.port.mk> diff --git a/textproc/hs-lhs2tex/distinfo b/textproc/hs-lhs2tex/distinfo new file mode 100644 index 0000000..225cd7e --- /dev/null +++ b/textproc/hs-lhs2tex/distinfo @@ -0,0 +1,3 @@ +MD5 (lhs2tex-1.12.tar.bz2) = 1bc982e96f19201aaf1c39c1d4b5e358 +SHA256 (lhs2tex-1.12.tar.bz2) = af3440b8d5dda73ad43660fa496f5e1c04a3d3105961847963d0105c69a03447 +SIZE (lhs2tex-1.12.tar.bz2) = 582250 diff --git a/textproc/hs-lhs2tex/files/patch-Makefile b/textproc/hs-lhs2tex/files/patch-Makefile new file mode 100644 index 0000000..7c56cbc --- /dev/null +++ b/textproc/hs-lhs2tex/files/patch-Makefile @@ -0,0 +1,29 @@ +--- ./Makefile.orig Wed Apr 25 22:23:20 2007 ++++ ./Makefile Wed Apr 25 22:24:00 2007 +@@ -135,14 +135,12 @@ + print : Lhs2TeX.dvi + $(DVIPS) -D600 -f Lhs2TeX.dvi | lpr -Pa -Zl + +-install : bin doc ++install : bin + $(MKINSTDIR) $(DESTDIR)$(bindir) + $(INSTALL) -m 755 lhs2TeX $(DESTDIR)$(bindir) + $(MKINSTDIR) $(DESTDIR)$(stydir) + $(INSTALL) -m 644 lhs2TeX.sty lhs2TeX.fmt $(DESTDIR)$(stydir) + $(INSTALL) -m 644 Library/*.fmt $(DESTDIR)$(stydir) +- $(MKINSTDIR) $(DESTDIR)$(docdir) +- $(INSTALL) -m 644 doc/Guide2.pdf $(DESTDIR)$(docdir) + $(MKINSTDIR) $(DESTDIR)$(mandir)/man1 + $(INSTALL) -m 644 lhs2TeX.1 $(DESTDIR)$(mandir)/man1 + ifeq ($(INSTALL_POLYTABLE),yes) +@@ -157,6 +155,10 @@ + else + echo "Please update the TeX filename database." + endif ++ ++install-doc : doc ++ $(MKINSTDIR) $(DESTDIR)$(docdir) ++ $(INSTALL) -m 644 doc/Guide2.pdf $(DESTDIR)$(docdir) + + srcdist : INSTALL doc + if test -d $(DISTDIR); then $(RM) -rf $(DISTDIR); fi diff --git a/textproc/hs-lhs2tex/files/patch-configure b/textproc/hs-lhs2tex/files/patch-configure new file mode 100644 index 0000000..d1b7f37 --- /dev/null +++ b/textproc/hs-lhs2tex/files/patch-configure @@ -0,0 +1,11 @@ +--- ./configure.orig Wed Apr 25 22:41:37 2007 ++++ ./configure Wed Apr 25 22:41:55 2007 +@@ -2726,7 +2726,7 @@ + + + # docdir and expansion +-docdir="$datadir/doc/$PACKAGE_TARNAME-$PACKAGE_VERSION" ++#docdir="$datadir/doc/$PACKAGE_TARNAME-$PACKAGE_VERSION" + + + # lhs2TeX binary path relative to docdir diff --git a/textproc/hs-lhs2tex/pkg-descr b/textproc/hs-lhs2tex/pkg-descr new file mode 100644 index 0000000..b3544e1 --- /dev/null +++ b/textproc/hs-lhs2tex/pkg-descr @@ -0,0 +1,4 @@ +lhs2TeX is a preprocessor to generate LaTeX code from literate Haskell +sources. It is released under the GPL. + +WWW: http://www.informatik.uni-bonn.de/~loeh/lhs2tex/ diff --git a/textproc/hs-lhs2tex/pkg-plist b/textproc/hs-lhs2tex/pkg-plist new file mode 100644 index 0000000..96c76a5 --- /dev/null +++ b/textproc/hs-lhs2tex/pkg-plist @@ -0,0 +1,18 @@ +bin/lhs2TeX +share/texmf-local/tex/latex/polytable/lazylist.sty +share/texmf-local/tex/latex/polytable/polytable.sty +@dirrm share/texmf-local/tex/latex/polytable +%%DATADIR%%/lhs2tex/colorcode.fmt +%%DATADIR%%/lhs2tex/forall.fmt +%%DATADIR%%/lhs2tex/greek.fmt +%%DATADIR%%/lhs2tex/jfpcompat.fmt +%%DATADIR%%/lhs2tex/lhs2TeX.fmt +%%DATADIR%%/lhs2tex/lhs2TeX.sty +%%DATADIR%%/lhs2tex/polycode.fmt +%%DATADIR%%/lhs2tex/spacing.fmt +@dirrm %%DATADIR%%/lhs2tex +@dirrm %%DATADIR%% +%%PORTDOCS%%%%DOCSDIR%%/Guide2.pdf +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@exec %D/bin/mktexlsr +@unexec %D/bin/mktexlsr |