summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Kuznetsov <vadim.kuznetsov@gmail.com>2009-01-19 14:27:16 -0500
committerVadim Kuznetsov <vadim.kuznetsov@gmail.com>2009-01-19 14:27:16 -0500
commitdd6692ae5d5cdd3e6e32787485dd8c7ec1a65d6d (patch)
treef49a64dc56daebe21ee74c78323c62f7d8a6c1ba /app-text/lout
parentdev-lisp/clisp-9999: small change (diff)
downloadlisp-dd6692ae5d5cdd3e6e32787485dd8c7ec1a65d6d.tar.gz
lisp-dd6692ae5d5cdd3e6e32787485dd8c7ec1a65d6d.tar.bz2
lisp-dd6692ae5d5cdd3e6e32787485dd8c7ec1a65d6d.zip
Skribilo
new file: app-text/lout/Manifest new file: app-text/lout/lout-3.38.ebuild new file: app-text/skribilo/Manifest new file: app-text/skribilo/skribilo-0.9.1.ebuild new file: dev-scheme/guile-reader/Manifest new file: dev-scheme/guile-reader/guile-reader-0.6.ebuild
Diffstat (limited to 'app-text/lout')
-rw-r--r--app-text/lout/Manifest2
-rw-r--r--app-text/lout/lout-3.38.ebuild77
2 files changed, 79 insertions, 0 deletions
diff --git a/app-text/lout/Manifest b/app-text/lout/Manifest
new file mode 100644
index 00000000..005a6f7e
--- /dev/null
+++ b/app-text/lout/Manifest
@@ -0,0 +1,2 @@
+DIST lout-3.38.tar.gz 2147395 RMD160 8835b223f67b383bdbb1d4105a28e002745d4dbb SHA1 2c4aec500dc27a00298f8265b9249d74d97e5466 SHA256 6a2adc64a8b4a81ed39893328778da284a6ab0da3e5e20f678425f2d53dad80a
+EBUILD lout-3.38.ebuild 1932 RMD160 fbbc29cacea00da75cb46371bc791b2c43fcd170 SHA1 9d6c112b7bf450ba07a4c0669129e5ed467b3836 SHA256 a9904a4a185bc8e4693af362f83df0d224638f8d4c6b8a2729412572feee3431
diff --git a/app-text/lout/lout-3.38.ebuild b/app-text/lout/lout-3.38.ebuild
new file mode 100644
index 00000000..ae6522db
--- /dev/null
+++ b/app-text/lout/lout-3.38.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/lout/lout-3.31.ebuild,v 1.2 2008/01/22 21:32:11 grobian Exp $
+
+IUSE="zlib doc"
+
+DESCRIPTION="high-level language for document formatting"
+HOMEPAGE="http://lout.sourceforge.net/"
+SRC_URI="mirror://sourceforge/lout/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+DEPEND="zlib? ( >=sys-libs/zlib-1.1.4 )"
+
+src_compile() {
+ local myconf
+ use zlib && myconf="$myconf PDF_COMPRESSION=1 ZLIB=-lz"
+ emake \
+ BINDIR=/usr/bin \
+ LOUTLIBDIR=/usr/share/lout \
+ LOUTDOCDIR=/usr/share/doc/${P} \
+ MANDIR=/usr/share/man/man1 \
+ ${myconf} lout prg2lout || die "emake prg2lout lout failed"
+}
+
+compile_doc() {
+ #
+ # SYNOPSIS: compile_doc file times
+ #
+
+ einfo "${1}:"
+ # yes, it *is* necessary to run this 6 times...
+ for i in $(seq 1 $(expr $2 - 1)) ; do
+ einfo " pass $i"
+ lout all -o ${docdir}/$1 -e /dev/null
+ done
+ # in the last one, let errors be reported
+ einfo " final pass"
+ lout all -o ${docdir}/$1 || die "final pass failed"
+}
+
+src_install() {
+ local bindir libdir docdir mandir
+ bindir=${D}/usr/bin
+ libdir=${D}/usr/share/lout
+ docdir=${D}/usr/share/doc/${P}
+ mandir=${D}/usr/share/man/man1
+ export LOUTLIB=${libdir}
+ export PATH="${bindir}:${PATH}"
+
+ mkdir -p ${bindir} ${docdir} ${mandir}
+
+ make BINDIR=${bindir} \
+ LOUTLIBDIR=${libdir} \
+ LOUTDOCDIR=${docdir} \
+ MANDIR=${mandir} \
+ install installdoc installman || die "make install failed"
+
+ lout -x -s ${D}/usr/share/lout/include/init || die "lout init failed"
+
+ mv ${docdir}/README{,.docs}
+ dodoc README READMEPDF blurb blurb.short whatsnew
+
+ if use doc ; then
+ einfo "building postscript documentation (may take a while)"
+ cd doc/user
+ compile_doc user.ps 6
+ cd ../design
+ compile_doc design.ps 3
+ cd ../expert
+ compile_doc expert.ps 4
+ cd ../slides
+ compile_doc slides.ps 2
+ fi
+}