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