Gentoo Archives: gentoo-commits

From: "Michael Weber (xmw)" <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/mupdf: mupdf-9999.ebuild mupdf-1.3.ebuild mupdf-1.3_pre20130704.ebuild ChangeLog
Date: Wed, 28 Aug 2013 22:26:28
Message-Id: 20130828222619.1BEA42004C@flycatcher.gentoo.org
1 xmw 13/08/28 22:26:19
2
3 Modified: mupdf-9999.ebuild mupdf-1.3.ebuild ChangeLog
4 Added: mupdf-1.3_pre20130704.ebuild
5 Log:
6 Add version for llpp-16
7
8 (Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
9
10 Revision Changes Path
11 1.42 app-text/mupdf/mupdf-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/mupdf-9999.ebuild?rev=1.42&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/mupdf-9999.ebuild?rev=1.42&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/mupdf-9999.ebuild?r1=1.41&r2=1.42
16
17 Index: mupdf-9999.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-9999.ebuild,v
20 retrieving revision 1.41
21 retrieving revision 1.42
22 diff -u -r1.41 -r1.42
23 --- mupdf-9999.ebuild 28 Aug 2013 10:28:18 -0000 1.41
24 +++ mupdf-9999.ebuild 28 Aug 2013 22:26:18 -0000 1.42
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2013 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-9999.ebuild,v 1.41 2013/08/28 10:28:18 xmw Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-9999.ebuild,v 1.42 2013/08/28 22:26:18 xmw Exp $
30
31 EAPI=5
32
33 @@ -12,7 +12,7 @@
34 #EGIT_HAS_SUBMODULES=1
35
36 LICENSE="AGPL-3"
37 -SLOT="0/1.2"
38 +SLOT="0/1.3"
39 KEYWORDS=""
40 IUSE="X vanilla static static-libs"
41
42
43
44
45 1.2 app-text/mupdf/mupdf-1.3.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/mupdf-1.3.ebuild?rev=1.2&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/mupdf-1.3.ebuild?rev=1.2&content-type=text/plain
49 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/mupdf-1.3.ebuild?r1=1.1&r2=1.2
50
51 Index: mupdf-1.3.ebuild
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-1.3.ebuild,v
54 retrieving revision 1.1
55 retrieving revision 1.2
56 diff -u -r1.1 -r1.2
57 --- mupdf-1.3.ebuild 28 Aug 2013 10:28:18 -0000 1.1
58 +++ mupdf-1.3.ebuild 28 Aug 2013 22:26:18 -0000 1.2
59 @@ -1,6 +1,6 @@
60 # Copyright 1999-2013 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 -# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-1.3.ebuild,v 1.1 2013/08/28 10:28:18 xmw Exp $
63 +# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-1.3.ebuild,v 1.2 2013/08/28 22:26:18 xmw Exp $
64
65 EAPI=5
66
67 @@ -11,7 +11,7 @@
68 SRC_URI="http://${PN}.googlecode.com/files/${P}-source.tar.gz"
69
70 LICENSE="AGPL-3"
71 -SLOT="0/1.2"
72 +SLOT="0/1.3"
73 KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
74 IUSE="X vanilla static static-libs"
75
76
77
78
79 1.88 app-text/mupdf/ChangeLog
80
81 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/ChangeLog?rev=1.88&view=markup
82 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/ChangeLog?rev=1.88&content-type=text/plain
83 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/ChangeLog?r1=1.87&r2=1.88
84
85 Index: ChangeLog
86 ===================================================================
87 RCS file: /var/cvsroot/gentoo-x86/app-text/mupdf/ChangeLog,v
88 retrieving revision 1.87
89 retrieving revision 1.88
90 diff -u -r1.87 -r1.88
91 --- ChangeLog 28 Aug 2013 10:28:18 -0000 1.87
92 +++ ChangeLog 28 Aug 2013 22:26:18 -0000 1.88
93 @@ -1,6 +1,12 @@
94 # ChangeLog for app-text/mupdf
95 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
96 -# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/ChangeLog,v 1.87 2013/08/28 10:28:18 xmw Exp $
97 +# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/ChangeLog,v 1.88 2013/08/28 22:26:18 xmw Exp $
98 +
99 +*mupdf-1.3_pre20130704 (28 Aug 2013)
100 +
101 + 28 Aug 2013; Michael Weber <xmw@g.o> +mupdf-1.3_pre20130704.ebuild,
102 + mupdf-1.3.ebuild, mupdf-9999.ebuild:
103 + Add version for llpp-16
104
105 *mupdf-1.3 (28 Aug 2013)
106
107
108
109
110 1.1 app-text/mupdf/mupdf-1.3_pre20130704.ebuild
111
112 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/mupdf-1.3_pre20130704.ebuild?rev=1.1&view=markup
113 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/mupdf-1.3_pre20130704.ebuild?rev=1.1&content-type=text/plain
114
115 Index: mupdf-1.3_pre20130704.ebuild
116 ===================================================================
117 # Copyright 1999-2013 Gentoo Foundation
118 # Distributed under the terms of the GNU General Public License v2
119 # $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-1.3_pre20130704.ebuild,v 1.1 2013/08/28 22:26:18 xmw Exp $
120
121 EAPI=5
122
123 inherit eutils flag-o-matic multilib toolchain-funcs vcs-snapshot
124
125 DESCRIPTION="a lightweight PDF viewer and toolkit written in portable C"
126 HOMEPAGE="http://mupdf.com/"
127 SRC_URI="http://git.ghostscript.com/?p=mupdf.git;a=snapshot;h=ac84904af638b243284e24d5f401c3f1a21cb0ef;sf=tgz -> ${P}.tar.gz"
128
129 LICENSE="AGPL-3"
130 SLOT="0/1.3"
131 KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
132 IUSE="X vanilla static static-libs"
133
134 LIB_DEPEND="dev-libs/openssl[static-libs?]
135 media-libs/freetype:2[static-libs?]
136 media-libs/jbig2dec[static-libs?]
137 media-libs/openjpeg:2[static-libs?]
138 net-misc/curl[static-libs?]
139 virtual/jpeg[static-libs?]
140 X? ( x11-libs/libX11[static-libs?]
141 x11-libs/libXext[static-libs?] )"
142 RDEPEND="${LIB_DEPEND}"
143 DEPEND="${RDEPEND}
144 virtual/pkgconfig
145 static-libs? ( ${LIB_DEPEND} )
146 static? ( ${LIB_DEPEND//?}
147 app-arch/bzip2[static-libs]
148 x11-libs/libXau[static-libs]
149 x11-libs/libXdmcp[static-libs]
150 x11-libs/libxcb[static-libs] )"
151
152 src_prepare() {
153 rm -rf thirdparty || die
154
155 epatch \
156 "${FILESDIR}"/${PN}-1.3-CFLAGS.patch \
157 "${FILESDIR}"/${PN}-1.3-openjpeg2.patch \
158 "${FILESDIR}"/${PN}-1.3-pkg-config.patch \
159 "${FILESDIR}"/${PN}-1.3-sys_curl.patch
160
161 sed -e "/^libdir=/s:/lib:/$(get_libdir):" \
162 -e "/^prefix=/s:=.*:=${EROOR}/usr:" \
163 -i platform/debian/${PN}.pc || die
164
165 use vanilla || epatch \
166 "${FILESDIR}"/${PN}-1.3-zoom-2.patch \
167 "${FILESDIR}"/${PN}-1.3-forward_back.patch
168
169 #http://bugs.ghostscript.com/show_bug.cgi?id=693467
170 sed -e '/^\(Actions\|MimeType\)=/s:\(.*\):\1;:' \
171 -i platform/debian/${PN}.desktop || die
172
173 sed -e "\$aOS = Linux" \
174 -e "\$aCC = $(tc-getCC)" \
175 -e "\$aLD = $(tc-getCC)" \
176 -e "\$aAR = $(tc-getAR)" \
177 -e "\$averbose = true" \
178 -e "\$abuild = debug" \
179 -e "\$aprefix = ${ED}usr" \
180 -e "\$alibdir = ${ED}usr/$(get_libdir)" \
181 -i Makerules || die
182
183 if ! use X ; then
184 sed -e "\$aNOX11 = yes" \
185 -i Makerules || die
186 fi
187
188 if use static-libs || use static ; then
189 cp -a "${S}" "${S}"-static || die
190 #add missing Libs.private for xcb and freetype
191 sed -e 's:\(pkg-config --libs\):\1 --static:' \
192 -e '/^SYS_X11_LIBS = /s:\(.*\):\1 -lpthread:' \
193 -e '/^SYS_FREETYPE_LIBS = /s:\(.*\):\1 -lbz2:' \
194 -i "${S}"-static/Makerules || die
195 fi
196
197 my_soname=libmupdf.so.1.2
198 my_soname_js_none=libmupdf-js-none.so.1.2
199 sed -e "\$a\$(MUPDF_LIB): \$(MUPDF_JS_NONE_LIB)" \
200 -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname} -Wl,--no-undefined -o \$@ \$^ \$(MUPDF_JS_NONE_LIB) \$(LIBS)" \
201 -e "/^MUPDF_LIB :=/s:=.*:= \$(OUT)/${my_soname}:" \
202 -e "\$a\$(MUPDF_JS_NONE_LIB):" \
203 -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname_js_none} -Wl,--no-undefined -o \$@ \$^ \$(LIBS)" \
204 -e "/^MUPDF_JS_NONE_LIB :=/s:=.*:= \$(OUT)/${my_soname_js_none}:" \
205 -i Makefile || die
206 }
207
208 src_compile() {
209 emake XCFLAGS="-fpic"
210 use static-libs && \
211 emake -C "${S}"-static build/debug/lib${PN}{,-js-none}.a
212 use static && \
213 emake -C "${S}"-static XLIBS="-static"
214 }
215
216 src_install() {
217 if use X ; then
218 domenu platform/debian/${PN}.desktop
219 doicon platform/debian/${PN}.xpm
220 else
221 rm docs/man/${PN}.1
222 fi
223
224 emake install
225 dosym ${my_soname} /usr/$(get_libdir)/lib${PN}.so
226
227 use static-libs && \
228 dolib.a "${S}"-static/build/debug/lib${PN}{,-js-none}.a
229 if use static ; then
230 dobin "${S}"-static/build/debug/mu{tool,draw}
231 use X && dobin "${S}"-static/build/debug/${PN}-x11
232 fi
233 use X && dosym ${PN}-x11 /usr/bin/${PN}
234
235 insinto /usr/$(get_libdir)/pkgconfig
236 doins platform/debian/${PN}.pc
237
238 dodoc README docs/*.{txt,c}
239 }