Gentoo Archives: gentoo-commits

From: "Wulf Krueger (philantrop)" <philantrop@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/kpdf: ChangeLog kpdf-3.5.8-r1.ebuild kpdf-3.5.7-r3.ebuild
Date: Sat, 10 Nov 2007 16:47:48
Message-Id: E1IqtUj-0003x8-Ty@stork.gentoo.org
1 philantrop 07/11/10 16:47:41
2
3 Modified: ChangeLog
4 Added: kpdf-3.5.8-r1.ebuild kpdf-3.5.7-r3.ebuild
5 Log:
6 Added an upstream patch to fix security bug 198409.
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.140 kde-base/kpdf/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kpdf/ChangeLog?rev=1.140&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kpdf/ChangeLog?rev=1.140&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kpdf/ChangeLog?r1=1.139&r2=1.140
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/kde-base/kpdf/ChangeLog,v
19 retrieving revision 1.139
20 retrieving revision 1.140
21 diff -u -r1.139 -r1.140
22 --- ChangeLog 19 Oct 2007 23:22:31 -0000 1.139
23 +++ ChangeLog 10 Nov 2007 16:47:41 -0000 1.140
24 @@ -1,6 +1,14 @@
25 # ChangeLog for kde-base/kpdf
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kpdf/ChangeLog,v 1.139 2007/10/19 23:22:31 philantrop Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kpdf/ChangeLog,v 1.140 2007/11/10 16:47:41 philantrop Exp $
29 +
30 +*kpdf-3.5.8-r1 (10 Nov 2007)
31 +*kpdf-3.5.7-r3 (10 Nov 2007)
32 +
33 + 10 Nov 2007; Wulf C. Krueger <philantrop@g.o>
34 + +files/post-3.5.8-kdegraphics-kpdf.diff, +kpdf-3.5.7-r3.ebuild,
35 + +kpdf-3.5.8-r1.ebuild:
36 + Added an upstream patch to fix security bug 198409.
37
38 *kpdf-3.5.8 (19 Oct 2007)
39
40
41
42
43 1.1 kde-base/kpdf/kpdf-3.5.8-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kpdf/kpdf-3.5.8-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kpdf/kpdf-3.5.8-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: kpdf-3.5.8-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2007 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/kde-base/kpdf/kpdf-3.5.8-r1.ebuild,v 1.1 2007/11/10 16:47:41 philantrop Exp $
53
54 KMNAME=kdegraphics
55 MAXKDEVER=$PV
56 KM_DEPRANGE="$PV $MAXKDEVER"
57 inherit kde-meta flag-o-matic
58
59 DESCRIPTION="kpdf, a kde pdf viewer based on xpdf"
60 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
61 IUSE=""
62 KMEXTRA="kfile-plugins/pdf"
63
64 DEPEND=">=media-libs/freetype-2.0.5
65 media-libs/t1lib
66 >=app-text/poppler-0.5.1
67 >=app-text/poppler-bindings-0.5.1"
68 RDEPEND="${DEPEND}
69 $(deprange-dual $PV $MAXKDEVER kde-base/kdeprint)"
70
71 PATCHES="${FILESDIR}/post-3.5.8-kdegraphics-kpdf.diff"
72
73 pkg_setup() {
74 kde_pkg_setup
75 # check for qt still until it had a revision bump in both ~arch and stable.
76 if ! built_with_use app-text/poppler-bindings qt3; then
77 eerror "This package requires app-text/poppler-bindings compiled with Qt 3.x support."
78 eerror "Please reemerge app-text/poppler-bindings with USE=\"qt3\"."
79 die "Please reemerge app-text/poppler-bindings with USE=\"qt3\"."
80 fi
81 }
82
83 src_compile() {
84 local myconf="--with-poppler"
85 replace-flags "-Os" "-O2" # see bug 114822
86
87 # Fix the desktop file.
88 sed -i -e "s:PDFViewer;:Viewer;:" "${S}/kpdf/shell/kpdf.desktop"
89
90 kde-meta_src_compile
91 }
92
93
94
95 1.1 kde-base/kpdf/kpdf-3.5.7-r3.ebuild
96
97 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kpdf/kpdf-3.5.7-r3.ebuild?rev=1.1&view=markup
98 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kpdf/kpdf-3.5.7-r3.ebuild?rev=1.1&content-type=text/plain
99
100 Index: kpdf-3.5.7-r3.ebuild
101 ===================================================================
102 # Copyright 1999-2007 Gentoo Foundation
103 # Distributed under the terms of the GNU General Public License v2
104 # $Header: /var/cvsroot/gentoo-x86/kde-base/kpdf/kpdf-3.5.7-r3.ebuild,v 1.1 2007/11/10 16:47:41 philantrop Exp $
105
106 KMNAME=kdegraphics
107 MAXKDEVER=$PV
108 KM_DEPRANGE="$PV $MAXKDEVER"
109 inherit kde-meta flag-o-matic
110
111 DESCRIPTION="kpdf, a kde pdf viewer based on xpdf"
112 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
113 IUSE=""
114 KMEXTRA="kfile-plugins/pdf"
115
116 DEPEND=">=media-libs/freetype-2.0.5
117 media-libs/t1lib
118 >=app-text/poppler-0.5.1
119 >=app-text/poppler-bindings-0.5.1"
120 RDEPEND="${DEPEND}
121 $(deprange-dual $PV $MAXKDEVER kde-base/kdeprint)"
122
123 PATCHES="${FILESDIR}/post-3.5.7-kdegraphics-CVE-2007-3387.diff
124 ${FILESDIR}/${P}-hash_path.diff
125 ${FILESDIR}/post-3.5.8-kdegraphics-kpdf.diff"
126
127 pkg_setup() {
128 kde_pkg_setup
129 # check for qt still until it had a revision bump in both ~arch and stable.
130 if ! built_with_use app-text/poppler-bindings qt3; then
131 eerror "This package requires app-text/poppler-bindings compiled with Qt 3.x support."
132 eerror "Please reemerge app-text/poppler-bindings with USE=\"qt3\"."
133 die "Please reemerge app-text/poppler-bindings with USE=\"qt3\"."
134 fi
135 }
136
137 src_unpack() {
138 kde-meta_src_unpack
139
140 # Fixing the desktop file
141 sed -i -e "s:^\(MimeType=.*\):&;:" "${S}"/kpdf/shell/kpdf.desktop \
142 || die "Desktop file fix 1 failed"
143 sed -i -e "s:^\(Categories=.*\)\(PDFViewer\):\1X-\2:" "${S}"/kpdf/shell/kpdf.desktop \
144 || die "Desktop file fix 2 failed"
145 }
146
147 src_compile() {
148 local myconf="--with-poppler"
149 replace-flags "-Os" "-O2" # see bug 114822
150 kde-meta_src_compile
151 }
152
153
154
155 --
156 gentoo-commits@g.o mailing list