summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-05-01 11:16:09 +0000
committermiwi <miwi@FreeBSD.org>2007-05-01 11:16:09 +0000
commit065406d0455aca8ca333604fafda32fda43d1900 (patch)
treed2569f483a6f6d6cdb3b8b2ab6c70e8135bac8be
parentdf133c8f923d249a17ba523a45b98716db4f3df0 (diff)
downloadFreeBSD-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
-rw-r--r--devel/Makefile1
-rw-r--r--devel/lhs2TeX/Makefile36
-rw-r--r--devel/lhs2TeX/distinfo3
-rw-r--r--devel/lhs2TeX/files/patch-Makefile29
-rw-r--r--devel/lhs2TeX/files/patch-configure11
-rw-r--r--devel/lhs2TeX/pkg-descr4
-rw-r--r--devel/lhs2TeX/pkg-plist18
-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
13 files changed, 203 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 5098d97..02e84c6 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -501,6 +501,7 @@
SUBDIR += lbpp
SUBDIR += leaktracer
SUBDIR += lemon
+ SUBDIR += lhs2TeX
SUBDIR += libIDL
SUBDIR += libPropList
SUBDIR += libU77
diff --git a/devel/lhs2TeX/Makefile b/devel/lhs2TeX/Makefile
new file mode 100644
index 0000000..aa810f2
--- /dev/null
+++ b/devel/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/devel/lhs2TeX/distinfo b/devel/lhs2TeX/distinfo
new file mode 100644
index 0000000..225cd7e
--- /dev/null
+++ b/devel/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/devel/lhs2TeX/files/patch-Makefile b/devel/lhs2TeX/files/patch-Makefile
new file mode 100644
index 0000000..7c56cbc
--- /dev/null
+++ b/devel/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/devel/lhs2TeX/files/patch-configure b/devel/lhs2TeX/files/patch-configure
new file mode 100644
index 0000000..d1b7f37
--- /dev/null
+++ b/devel/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/devel/lhs2TeX/pkg-descr b/devel/lhs2TeX/pkg-descr
new file mode 100644
index 0000000..b3544e1
--- /dev/null
+++ b/devel/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/devel/lhs2TeX/pkg-plist b/devel/lhs2TeX/pkg-plist
new file mode 100644
index 0000000..96c76a5
--- /dev/null
+++ b/devel/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
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
OpenPOWER on IntegriCloud