Bump to version 3.31, adding ~ppc-macos and fixing zlib include
authorFabian Groffen <grobian@gentoo.org>
Sun, 2 Oct 2005 20:00:05 +0000 (20:00 +0000)
committerFabian Groffen <grobian@gentoo.org>
Sun, 2 Oct 2005 20:00:05 +0000 (20:00 +0000)
Package-Manager: portage-2.0.51.22-r2

app-text/lout/ChangeLog
app-text/lout/Manifest
app-text/lout/files/digest-lout-3.31 [new file with mode: 0644]
app-text/lout/lout-3.31.ebuild [new file with mode: 0644]

index e72eb9d1233a305e7f74fe3002acc154896b950b..4b5cb3bd3e3c1746822dfa19599bba6747e63dda 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for app-text/lout
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/lout/ChangeLog,v 1.16 2005/09/16 21:41:27 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/lout/ChangeLog,v 1.17 2005/10/02 20:00:05 grobian Exp $
+
+*lout-3.31 (02 Oct 2005)
+
+  02 Oct 2005; Fabian Groffen <grobian@gentoo.org> +lout-3.31.ebuild:
+  - Bump to version 3.31
+  - added ~ppc-macos
+  - changed /usr/lib/libz.a into -lz to allow for compilation also on OSX
 
   16 Sep 2005; Ciaran McCreesh <ciaranm@gentoo.org> ChangeLog:
   Converted to UTF-8, fixed encoding screwups
index d77d19cfdd0a2937b92c12e7cb942055423204d4..c4e3d06bec19db4fcdd54d7edca5e31c288a1527 100644 (file)
@@ -1,17 +1,9 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+MD5 2e70468a408baf854731f28ccd1228d4 lout-3.31.ebuild 1923
 MD5 4058f06f0e1f4543f077c51eb00298fb lout-3.29.ebuild 1806
 MD5 e325d5b4c83b35004d68937449bdfce3 lout-3.30.ebuild 1923
-MD5 10d00583b37c725536ed7ae85921023a ChangeLog 2548
-MD5 e898eb4de64cf9908d6e2e6cd48c5141 files/lout-3.25-r1-makefile-gentoo.patch 9685
+MD5 b91ae589f2f2708ffcb9279b217acc63 ChangeLog 2765
 MD5 29594e4e47a72654d5819c6ebb2d1bef files/digest-lout-3.29 62
 MD5 97dd1622e0573b3b3d3157f15865753a files/digest-lout-3.30 62
+MD5 71f7b349fa7618b22609e5b1253f8120 files/digest-lout-3.31 62
+MD5 e898eb4de64cf9908d6e2e6cd48c5141 files/lout-3.25-r1-makefile-gentoo.patch 9685
 MD5 eef4aadd919d3cc3b4025debb538c7fa files/lout-3.29-makefile-gentoo.patch 5985
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD4DBQFDKzw5LLFUmVNQ7rkRAhD8AJipojXFfoLP7GfRDYvnVGrZgboCAKCusvs6
-9I+Qy1ahYHzulHAoSa7ZaQ==
-=tIbY
------END PGP SIGNATURE-----
diff --git a/app-text/lout/files/digest-lout-3.31 b/app-text/lout/files/digest-lout-3.31
new file mode 100644 (file)
index 0000000..254f896
--- /dev/null
@@ -0,0 +1 @@
+MD5 8cc03412d5c26c208811877b89ad3174 lout-3.31.tar.gz 1987038
diff --git a/app-text/lout/lout-3.31.ebuild b/app-text/lout/lout-3.31.ebuild
new file mode 100644 (file)
index 0000000..2a22cff
--- /dev/null
@@ -0,0 +1,76 @@
+# Copyright 1999-2005 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.1 2005/10/02 20:00:05 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 ~ppc-macos ~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 \
+               LIBDIR=/usr/share/lout \
+               DOCDIR=/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} \
+               LIBDIR=${libdir} \
+               DOCDIR=${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
+}