commit:     ceb1c339481da1ddb97f270b5551becdf14bd880
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 10 19:51:05 2017 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Mon Apr 10 19:55:40 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ceb1c339

app-text/lout: Version and EAPI bump

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 app-text/lout/Manifest         |  1 +
 app-text/lout/lout-3.40.ebuild | 85 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)

diff --git a/app-text/lout/Manifest b/app-text/lout/Manifest
index b45b4b9f26c..f85d2af95ec 100644
--- a/app-text/lout/Manifest
+++ b/app-text/lout/Manifest
@@ -1,2 +1,3 @@
 DIST lout-3.38.tar.gz 2147395 SHA256 
6a2adc64a8b4a81ed39893328778da284a6ab0da3e5e20f678425f2d53dad80a SHA512 
ad396dc885e904e26c31498123f4e6e5dd1356da7fe623b2a812e9ae8442ee4c68ed3925854f8116687f46c9cc0084b6d39a3130d8b9d8a3ee0ee25d5b9b1f5e
 WHIRLPOOL 
59c8d99710fbc5096f84e75be13a1e64213e0c783c0bff30594ff0d23148aab3a619f6c2064bd62f059a7593d92b34f4689266d80eeb42d559fcd468d37412d5
 DIST lout-3.39.tar.gz 2157040 SHA256 
78a75504fa25c2e55539ecd9f4ba13ff1e402a1ffb307d70474a4d6033f6f389 SHA512 
c4201976282f29f5cc57076ae314b6fa2e9aca3ab0512e50a3c6a67851a507a9c055a059ce7737318969836d19e8637a2bc0ed88f536892cbbeeb3b476234799
 WHIRLPOOL 
33011a2b193446b17cf8c56525159b4650d01259dbb5931e8635ebfb412e6379c3c2f3a6f1da2ad72d24c5a4a6130046b45154396313e042a85a9dbc03b2bc8d
+DIST lout-3.40.tar.gz 2172651 SHA256 
3d16f1ce3373ed96419ba57399c2e4d94f88613c2cb4968cb0331ecac3da68bd SHA512 
adffbb44b9328f0d64b1c8f08fe0217307b1cca870827ca54e0aaae5a2258f519e3e6f0adc715ba6d192dd731ab26c2cc86aa8611d991d5665503842e599c061
 WHIRLPOOL 
6a39cf906cadd48404f60efe0cfe3adf5126ee2f9372b8019edaae21be0a5f4f1430b51d6567486be13c302841e1e0f393e7e03060cd9853273f2c23d69b1b95

diff --git a/app-text/lout/lout-3.40.ebuild b/app-text/lout/lout-3.40.ebuild
new file mode 100644
index 00000000000..5d99af5db8c
--- /dev/null
+++ b/app-text/lout/lout-3.40.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+IUSE="zlib doc"
+
+DESCRIPTION="High-level language for document formatting"
+HOMEPAGE="http://savannah.nongnu.org/projects/lout";
+SRC_URI="http://download.savannah.nongnu.org/releases/lout/${P}.tar.gz";
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+
+DEPEND="zlib? ( >=sys-libs/zlib-1.1.4 )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-3.38-makefile.patch"
+)
+
+src_compile() {
+       tc-export CC
+       local myconf
+       use zlib && myconf="$myconf PDF_COMPRESSION=1 ZLIB=-lz"
+       emake COPTS="${CFLAGS}" BINDIR="${EPREFIX}"/usr/bin \
+               LOUTLIBDIR="${EPREFIX}"/usr/share/lout \
+               LOUTDOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
+               MANDIR="${EPREFIX}"/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=${ED}usr/bin
+       libdir=${ED}usr/share/lout
+       docdir=${ED}usr/share/doc/${PF}
+       mandir=${ED}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 "${ED}"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
+}

Reply via email to