aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-05-01 19:16:09 +0800
committermiwi <miwi@FreeBSD.org>2007-05-01 19:16:09 +0800
commit065406d0455aca8ca333604fafda32fda43d1900 (patch)
treed2569f483a6f6d6cdb3b8b2ab6c70e8135bac8be /textproc
parentdf133c8f923d249a17ba523a45b98716db4f3df0 (diff)
downloadfreebsd-ports-gnome-065406d0455aca8ca333604fafda32fda43d1900.tar.gz
freebsd-ports-gnome-065406d0455aca8ca333604fafda32fda43d1900.tar.zst
freebsd-ports-gnome-065406d0455aca8ca333604fafda32fda43d1900.zip
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/Makefile36
-rw-r--r--textproc/hs-lhs2tex/distinfo3
-rw-r--r--textproc/hs-lhs2tex/files/patch-Makefile29
-rw-r--r--textproc/hs-lhs2tex/files/patch-configure11
-rw-r--r--textproc/hs-lhs2tex/pkg-descr4
-rw-r--r--textproc/hs-lhs2tex/pkg-plist18
6 files changed, 101 insertions, 0 deletions
diff --git a/textproc/hs-lhs2tex/Makefile b/textproc/hs-lhs2tex/Makefile
new file mode 100644
index 000000000000..aa810f27be74
--- /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 000000000000..225cd7e9b256
--- /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 000000000000..7c56cbc22ebf
--- /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 000000000000..d1b7f37a583e
--- /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 000000000000..b3544e14b397
--- /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 000000000000..96c76a55d1ce
--- /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