Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-tex/luatex: ChangeLog luatex-0.70.1-r1.ebuild
Date: Wed, 01 Aug 2012 13:00:34
Message-Id: 20120801130017.35C0C2004B@flycatcher.gentoo.org
1 aballier 12/08/01 13:00:17
2
3 Modified: ChangeLog
4 Added: luatex-0.70.1-r1.ebuild
5 Log:
6 Remove zlib version check which breaks at every minor/micro bump in zlib, by Ulrich Müller, bug #310487
7
8 (Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.103 dev-tex/luatex/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tex/luatex/ChangeLog?rev=1.103&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tex/luatex/ChangeLog?rev=1.103&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tex/luatex/ChangeLog?r1=1.102&r2=1.103
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-tex/luatex/ChangeLog,v
20 retrieving revision 1.102
21 retrieving revision 1.103
22 diff -u -r1.102 -r1.103
23 --- ChangeLog 26 Jul 2012 10:56:03 -0000 1.102
24 +++ ChangeLog 1 Aug 2012 13:00:16 -0000 1.103
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-tex/luatex
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-tex/luatex/ChangeLog,v 1.102 2012/07/26 10:56:03 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/luatex/ChangeLog,v 1.103 2012/08/01 13:00:16 aballier Exp $
30 +
31 +*luatex-0.70.1-r1 (01 Aug 2012)
32 +
33 + 01 Aug 2012; Alexis Ballier <aballier@g.o> +luatex-0.70.1-r1.ebuild,
34 + +files/remove-zlib-version-check.patch:
35 + Remove zlib version check which breaks at every minor/micro bump in zlib, by
36 + Ulrich Müller, bug #310487
37
38 26 Jul 2012; Alexis Ballier <aballier@g.o> +files/kpathsea2012.patch,
39 luatex-0.70.1.ebuild:
40
41
42
43 1.1 dev-tex/luatex/luatex-0.70.1-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tex/luatex/luatex-0.70.1-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tex/luatex/luatex-0.70.1-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: luatex-0.70.1-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-tex/luatex/luatex-0.70.1-r1.ebuild,v 1.1 2012/08/01 13:00:16 aballier Exp $
53
54 EAPI=4
55
56 inherit libtool eutils
57
58 DESCRIPTION="An extended version of pdfTeX using Lua as an embedded scripting language."
59 HOMEPAGE="http://www.luatex.org/"
60 SRC_URI="http://foundry.supelec.fr/gf/download/frsrelease/392/1730/${PN}-beta-${PV}.tar.bz2
61 http://foundry.supelec.fr/gf/download/frsrelease/392/1732/${PN}-beta-${PV}-doc.tar.bz2"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
66 IUSE="doc"
67
68 RDEPEND="dev-libs/zziplib
69 >=media-libs/libpng-1.4
70 >=app-text/poppler-0.12.3-r3[xpdf-headers]
71 sys-libs/zlib
72 >=dev-libs/kpathsea-6.0.1_p20110627"
73 DEPEND="${RDEPEND}
74 virtual/pkgconfig"
75
76 S="${WORKDIR}/${PN}-beta-${PV}/source"
77 PRELIBS="libs/obsdcompat"
78 #texk/kpathsea"
79 #kpathsea_extraconf="--disable-shared --disable-largefile"
80
81 src_prepare() {
82 has_version '>=app-text/poppler-0.18.0:0' && epatch "${FILESDIR}/poppler018.patch"
83 has_version '>=app-text/poppler-0.20.0:0' && epatch "${FILESDIR}/poppler020.patch"
84 epatch "${FILESDIR}/kpathsea2012.patch" \
85 "${FILESDIR}/remove-zlib-version-check.patch"
86 S="${S}/build-aux" elibtoolize --shallow
87 }
88
89 src_configure() {
90 # Too many regexps use A-Z a-z constructs, what causes problems with locales
91 # that don't have the same alphabetical order than ascii. Bug #244619
92 # So we set LC_ALL to C in order to avoid problems.
93 export LC_ALL=C
94
95 local myconf
96 myconf=""
97 #has_version '>=app-text/texlive-core-2009' && myconf="--with-system-kpathsea"
98
99 cd "${S}/texk/web2c"
100 econf \
101 --disable-cxx-runtime-hack \
102 --disable-all-pkgs \
103 --disable-mp \
104 --disable-ptex \
105 --disable-tex \
106 --disable-mf \
107 --disable-largefile \
108 --disable-ipc \
109 --disable-shared \
110 --enable-luatex \
111 --enable-dump-share \
112 --without-mf-x-toolkit \
113 --without-x \
114 --with-system-kpathsea \
115 --with-kpathsea-includes="${EPREFIX}"/usr/include \
116 --with-system-gd \
117 --with-system-libpng \
118 --with-system-teckit \
119 --with-system-zlib \
120 --with-system-t1lib \
121 --with-system-xpdf \
122 --with-system-poppler \
123 --with-system-zziplib \
124 --disable-multiplatform \
125
126 for i in ${PRELIBS} ; do
127 einfo "Configuring $i"
128 local j=$(basename $i)_extraconf
129 local myconf
130 eval myconf=\${$j}
131 cd "${S}/${i}"
132 econf ${myconf}
133 done
134 }
135
136 src_compile() {
137 texk/web2c/luatexdir/getluatexsvnversion.sh || die
138 for i in ${PRELIBS} ; do
139 cd "${S}/${i}"
140 emake || die "failed to build ${i}"
141 done
142 cd "${WORKDIR}/${PN}-beta-${PV}/source/texk/web2c"
143 emake luatex || die "failed to build luatex"
144 }
145
146 src_install() {
147 cd "${WORKDIR}/${PN}-beta-${PV}/source/texk/web2c"
148 emake DESTDIR="${D}" bin_PROGRAMS="luatex" SUBDIRS="" nodist_man_MANS="" \
149 install-exec-am || die
150
151 dodoc "${WORKDIR}/${PN}-beta-${PV}/README" || die
152 doman "${WORKDIR}/texmf/doc/man/man1/"*.1 || die
153 if use doc ; then
154 dodoc "${WORKDIR}/${PN}-beta-${PV}/manual/"*.pdf || die
155 dodoc "${WORKDIR}/texmf/doc/man/man1/"*.pdf || die
156 fi
157 }
158
159 pkg_postinst() {
160 if ! has_version '>=dev-texlive/texlive-basic-2008' ; then
161 elog "Please note that this package does not install much files, mainly the"
162 elog "${PN} executable that will need other files in order to be useful.."
163 elog "Please consider installing a recent TeX distribution"
164 elog "like TeX Live 2008 to get the full power of ${PN}"
165 fi
166 if [ "$ROOT" = "/" ] && [ -x "${EPREFIX}"/usr/bin/fmtutil-sys ] ; then
167 einfo "Rebuilding formats"
168 "${EPREFIX}"/usr/bin/fmtutil-sys --all &> /dev/null
169 else
170 ewarn "Cannot run fmtutil-sys for some reason."
171 ewarn "Your formats might be inconsistent with your installed ${PN} version"
172 ewarn "Please try to figure what has happened"
173 fi
174 }