Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/lout: ChangeLog lout-3.38-r1.ebuild
Date: Fri, 04 Sep 2009 09:41:39
Message-Id: E1Mja77-00016w-Kd@stork.gentoo.org
1 jer 09/09/04 14:50:09
2
3 Modified: ChangeLog
4 Added: lout-3.38-r1.ebuild
5 Log:
6 Respect CFLAGS (bug #240136), LDFLAGS.
7 (Portage version: 2.2_rc40/cvs/Linux i686)
8
9 Revision Changes Path
10 1.24 app-text/lout/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/lout/ChangeLog?rev=1.24&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/lout/ChangeLog?rev=1.24&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/lout/ChangeLog?r1=1.23&r2=1.24
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-text/lout/ChangeLog,v
19 retrieving revision 1.23
20 retrieving revision 1.24
21 diff -u -r1.23 -r1.24
22 --- ChangeLog 23 Jul 2009 23:02:13 -0000 1.23
23 +++ ChangeLog 4 Sep 2009 14:50:09 -0000 1.24
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-text/lout
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-text/lout/ChangeLog,v 1.23 2009/07/23 23:02:13 vostorga Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-text/lout/ChangeLog,v 1.24 2009/09/04 14:50:09 jer Exp $
29 +
30 +*lout-3.38-r1 (04 Sep 2009)
31 +
32 + 04 Sep 2009; Jeroen Roovers <jer@g.o> +lout-3.38-r1.ebuild,
33 + +files/lout-3.38-makefile.patch:
34 + Respect CFLAGS (bug #240136), LDFLAGS.
35
36 23 Jul 2009; VĂ­ctor Ostorga <vostorga@g.o> lout-3.30.ebuild,
37 lout-3.31.ebuild, lout-3.38.ebuild:
38
39
40
41 1.1 app-text/lout/lout-3.38-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/lout/lout-3.38-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/lout/lout-3.38-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: lout-3.38-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-text/lout/lout-3.38-r1.ebuild,v 1.1 2009/09/04 14:50:09 jer Exp $
51
52 EAPI="2"
53
54 inherit eutils toolchain-funcs
55
56 IUSE="zlib doc"
57
58 DESCRIPTION="high-level language for document formatting"
59 HOMEPAGE="http://lout.sourceforge.net/"
60 SRC_URI="mirror://sourceforge/lout/${P}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
65
66 DEPEND="zlib? ( >=sys-libs/zlib-1.1.4 )"
67 RDEPEND="${DEPEND}"
68
69 src_prepare() {
70 epatch "${FILESDIR}/${P}-makefile.patch"
71 }
72
73 src_compile() {
74 tc-export CC
75 local myconf
76 use zlib && myconf="$myconf PDF_COMPRESSION=1 ZLIB=-lz"
77 emake COPTS="${CFLAGS}" BINDIR=/usr/bin \
78 LOUTLIBDIR=/usr/share/lout \
79 LOUTDOCDIR=/usr/share/doc/${P} \
80 MANDIR=/usr/share/man/man1 \
81 ${myconf} lout prg2lout || die "emake prg2lout lout failed"
82 }
83
84 compile_doc() {
85 #
86 # SYNOPSIS: compile_doc file times
87 #
88
89 einfo "${1}:"
90 # yes, it *is* necessary to run this 6 times...
91 for i in $(seq 1 $(expr $2 - 1)) ; do
92 einfo " pass $i"
93 lout all -o ${docdir}/$1 -e /dev/null
94 done
95 # in the last one, let errors be reported
96 einfo " final pass"
97 lout all -o ${docdir}/$1 || die "final pass failed"
98 }
99
100 src_install() {
101 local bindir libdir docdir mandir
102 bindir=${D}/usr/bin
103 libdir=${D}/usr/share/lout
104 docdir=${D}/usr/share/doc/${P}
105 mandir=${D}/usr/share/man/man1
106 export LOUTLIB=${libdir}
107 export PATH="${bindir}:${PATH}"
108
109 mkdir -p ${bindir} ${docdir} ${mandir}
110
111 make BINDIR=${bindir} \
112 LOUTLIBDIR=${libdir} \
113 LOUTDOCDIR=${docdir} \
114 MANDIR=${mandir} \
115 install installdoc installman || die "make install failed"
116
117 lout -x -s "${D}"/usr/share/lout/include/init || die "lout init failed"
118
119 mv ${docdir}/README{,.docs}
120 dodoc README READMEPDF blurb blurb.short whatsnew
121
122 if use doc ; then
123 einfo "building postscript documentation (may take a while)"
124 cd doc/user
125 compile_doc user.ps 6
126 cd ../design
127 compile_doc design.ps 3
128 cd ../expert
129 compile_doc expert.ps 4
130 cd ../slides
131 compile_doc slides.ps 2
132 fi
133 }