1 |
ssuominen 09/06/03 02:17:30 |
2 |
|
3 |
Added: openclipart-0.18-r1.ebuild ChangeLog |
4 |
openclipart-0.19.ebuild metadata.xml |
5 |
Log: |
6 |
Move from x11-misc wrt #201044. |
7 |
(Portage version: 2.1.6.13/cvs/Linux x86_64, RepoMan options: --force) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-gfx/openclipart/openclipart-0.18-r1.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/openclipart/openclipart-0.18-r1.ebuild?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/openclipart/openclipart-0.18-r1.ebuild?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: openclipart-0.18-r1.ebuild |
16 |
=================================================================== |
17 |
# Copyright 1999-2009 Gentoo Foundation |
18 |
# Distributed under the terms of the GNU General Public License v2 |
19 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/openclipart/openclipart-0.18-r1.ebuild,v 1.1 2009/06/03 02:17:30 ssuominen Exp $ |
20 |
|
21 |
DESCRIPTION="Open Clip Art Library (openclipart.org)" |
22 |
HOMEPAGE="http://www.openclipart.org/" |
23 |
|
24 |
# Ugly stuff warning: |
25 |
SRC_URI="svg? ( !wmf? ( !png? ( !pdf? ( !doc? ( |
26 |
http://download.openclipart.org/downloads/${PV}/${P}-svgonly.tar.bz2 |
27 |
) ) ) ) |
28 |
png? ( http://download.openclipart.org/downloads/${PV}/${P}-full.tar.bz2 ) |
29 |
pdf? ( http://download.openclipart.org/downloads/${PV}/${P}-full.tar.bz2 ) |
30 |
wmf? ( http://download.openclipart.org/downloads/${PV}/${P}-full.tar.bz2 ) |
31 |
doc? ( http://download.openclipart.org/downloads/${PV}/${P}-full.tar.bz2 ) |
32 |
) |
33 |
!svg? ( http://download.openclipart.org/downloads/${PV}/${P}-full.tar.bz2 )" |
34 |
|
35 |
LICENSE="public-domain" # creative commons |
36 |
SLOT="0" |
37 |
KEYWORDS="amd64 ppc x86" |
38 |
IUSE="doc svg png pdf wmf gzip" |
39 |
|
40 |
# We don't really need anything to run |
41 |
DEPEND="" |
42 |
RDEPEND="" |
43 |
|
44 |
# Nothing to strip |
45 |
RESTRICT="strip" |
46 |
|
47 |
# suggested basedir for cliparts |
48 |
CLIPART="/usr/share/clipart/${PN}" |
49 |
|
50 |
src_unpack() { |
51 |
|
52 |
unpack "${A}" |
53 |
|
54 |
if ! use svg && ! use png && ! use pdf && ! use wmf; then |
55 |
ewarn "No image formats specified - defaulting to all" |
56 |
else |
57 |
! use pdf && MY_REMOVE="${MY_REMOVE} pdf" |
58 |
! use png && MY_REMOVE="${MY_REMOVE} png" |
59 |
! use svg && MY_REMOVE="${MY_REMOVE} svg" |
60 |
! use wmf && MY_REMOVE="${MY_REMOVE} wmf" |
61 |
fi |
62 |
|
63 |
! use doc && MY_REMOVE="${MY_REMOVE} txt" |
64 |
|
65 |
export MY_REMOVE |
66 |
|
67 |
MY_S="${WORKDIR}/openclipart-${PV}-" |
68 |
if use wmf || use png || use pdf || use doc || ! use svg; then |
69 |
MY_S="${MY_S}full" |
70 |
else |
71 |
MY_S="${MY_S}svgonly" |
72 |
fi |
73 |
export MY_S |
74 |
|
75 |
cd "${MY_S}/clipart/" |
76 |
einfo "Removing useless files..." |
77 |
|
78 |
find \ |
79 |
\( -name "automatic" -o -name "move" -o -name "*.rdf" -o \ |
80 |
-name "*.spec" -o -name "*.log" -o -name "*.sxd" -o \ |
81 |
-name "*~" -o -name ".*.swp" \ |
82 |
\) -exec rm -f {} \; || die "Failed" |
83 |
|
84 |
rm -f LICENSE.txt LOG.txt PASSFAIL README README.txt \ |
85 |
TODO index.xml keywords.idx || die "Failed" |
86 |
|
87 |
} |
88 |
|
89 |
src_compile() { |
90 |
|
91 |
cd "${MY_S}/clipart/" |
92 |
for ext in ${MY_REMOVE}; do |
93 |
einfo "Removing files - ${ext}..." |
94 |
find -name "*.${ext}" -exec rm -f {} \; \ |
95 |
|| die "Failed - remove" |
96 |
done |
97 |
|
98 |
if use gzip; then |
99 |
|
100 |
einfo "Compressing SVG files..." |
101 |
find -name "*.svg" -print0 | xargs -L 1 -0 \ |
102 |
bash -c 'gzip -9c "${1}" > "${1}z"; rm -f "${1}"' -- |
103 |
|
104 |
fi |
105 |
|
106 |
einfo "Compressing docs..." |
107 |
find \ |
108 |
\( -name "*.txt" -o -name "README" -o -name "AUTHORS" -o \ |
109 |
-name "COPYING" \ |
110 |
\) -exec gzip -9 {} \; || die "Failed - compress docs" |
111 |
|
112 |
} |
113 |
|
114 |
src_install() { |
115 |
|
116 |
dodir "${CLIPART}" || die "Failed - dodir" |
117 |
|
118 |
cd "${MY_S}/clipart" |
119 |
find -type f -exec cp --parents {} "${D}/${CLIPART}" \; || \ |
120 |
die "Failed - install" |
121 |
|
122 |
cd "${MY_S}" |
123 |
dodoc LICENSE README NEWS VERSION ChangeLog |
124 |
|
125 |
} |
126 |
|
127 |
|
128 |
|
129 |
1.1 media-gfx/openclipart/ChangeLog |
130 |
|
131 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/openclipart/ChangeLog?rev=1.1&view=markup |
132 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/openclipart/ChangeLog?rev=1.1&content-type=text/plain |
133 |
|
134 |
Index: ChangeLog |
135 |
=================================================================== |
136 |
# ChangeLog for media-gfx/openclipart |
137 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
138 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/openclipart/ChangeLog,v 1.1 2009/06/03 02:17:30 ssuominen Exp $ |
139 |
|
140 |
03 Jun 2009; Samuli Suominen <ssuominen@g.o> |
141 |
+openclipart-0.18-r1.ebuild, +openclipart-0.19.ebuild, +metadata.xml: |
142 |
Move from x11-misc wrt #201044. |
143 |
|
144 |
*openclipart-0.19 (11 May 2009) |
145 |
|
146 |
11 May 2009; Thilo Bangert <bangert@g.o> +openclipart-0.19.ebuild: |
147 |
version bump - bug #264732 |
148 |
|
149 |
24 Jan 2009; nixnut <nixnut@g.o> openclipart-0.18-r1.ebuild: |
150 |
ppc stable #254547 |
151 |
|
152 |
19 Jan 2009; Jeremy Olexa <darkside@g.o> |
153 |
openclipart-0.18-r1.ebuild: |
154 |
amd64 stable, bug 254547 |
155 |
|
156 |
15 Oct 2007; Krzysiek Pawlik <nelchael@g.o> |
157 |
openclipart-0.18-r1.ebuild: |
158 |
Fix SRC_URI, see bug #185982. |
159 |
|
160 |
02 Jul 2007; Piotr JaroszyĆski <peper@g.o> |
161 |
openclipart-0.18-r1.ebuild: |
162 |
(QA) RESTRICT clean up. |
163 |
|
164 |
21 Feb 2007; Markus Ullmann <jokey@g.o> ChangeLog: |
165 |
Redigest for Manifest2 |
166 |
|
167 |
23 May 2006; Krzysiek Pawlik <nelchael@g.o> |
168 |
-openclipart-0.18.ebuild, openclipart-0.18-r1.ebuild: |
169 |
Stable on x86. |
170 |
|
171 |
*openclipart-0.18-r1 (16 Mar 2006) |
172 |
|
173 |
16 Mar 2006; Krzysiek Pawlik <nelchael@g.o> |
174 |
+openclipart-0.18-r1.ebuild: |
175 |
Added new version with heavily modified install procedure. Allows smaller |
176 |
downloads when only svg is in USE and solves the issue with directory names |
177 |
that contain spaces. See bug #116289. |
178 |
|
179 |
28 Dec 2005; Krzysiek Pawlik <nelchael@g.o> |
180 |
-openclipart-0.17-r1.ebuild, openclipart-0.18.ebuild: |
181 |
Stable on x86, removed old version. |
182 |
|
183 |
*openclipart-0.18 (31 Oct 2005) |
184 |
|
185 |
31 Oct 2005; Krzysiek Pawlik <nelchael@g.o> |
186 |
-openclipart-0.15.ebuild, +openclipart-0.18.ebuild: |
187 |
Version bump. |
188 |
|
189 |
*openclipart-0.17-r1 (26 Sep 2005) |
190 |
|
191 |
26 Sep 2005; Krzysiek Pawlik <nelchael@g.o> |
192 |
-openclipart-0.17.ebuild, +openclipart-0.17-r1.ebuild: |
193 |
Fix bug 107254. |
194 |
|
195 |
*openclipart-0.17 (25 Sep 2005) |
196 |
|
197 |
25 Sep 2005; Krzysiek Pawlik <nelchael@g.o> |
198 |
-openclipart-0.12.ebuild, +openclipart-0.17.ebuild: |
199 |
Version bump, removed 0.12 |
200 |
|
201 |
*openclipart-0.15 (09 Jul 2005) |
202 |
|
203 |
09 Jul 2005; Jonathan Smith <smithj@g.o> +openclipart-0.15.ebuild: |
204 |
version bump |
205 |
|
206 |
09 Jul 2005; Jonathan Smith <smithj@g.o> openclipart-0.12.ebuild: |
207 |
added ~amd64 |
208 |
|
209 |
24 Jun 2005; David Holm <dholm@g.o> openclipart-0.12.ebuild: |
210 |
Added to ~ppc. |
211 |
|
212 |
*openclipart-0.12 (23 Jun 2005) |
213 |
|
214 |
23 Jun 2005; Jonathan Smith <smithj@g.o> +metadata.xml, |
215 |
+openclipart-0.12.ebuild: |
216 |
initial commit for #62278; thanks to Stefan Briesenick <sbriesen@g.o> |
217 |
for the ebuild |
218 |
|
219 |
|
220 |
|
221 |
|
222 |
1.1 media-gfx/openclipart/openclipart-0.19.ebuild |
223 |
|
224 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/openclipart/openclipart-0.19.ebuild?rev=1.1&view=markup |
225 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/openclipart/openclipart-0.19.ebuild?rev=1.1&content-type=text/plain |
226 |
|
227 |
Index: openclipart-0.19.ebuild |
228 |
=================================================================== |
229 |
# Copyright 1999-2009 Gentoo Foundation |
230 |
# Distributed under the terms of the GNU General Public License v2 |
231 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/openclipart/openclipart-0.19.ebuild,v 1.1 2009/06/03 02:17:30 ssuominen Exp $ |
232 |
|
233 |
EAPI="2" |
234 |
|
235 |
DESCRIPTION="Open Clip Art Library (openclipart.org)" |
236 |
HOMEPAGE="http://www.openclipart.org/" |
237 |
|
238 |
SRC_URI="http://download.openclipart.org/downloads/${PV}/${P}.tar.bz2" |
239 |
LICENSE="public-domain" |
240 |
SLOT="0" |
241 |
KEYWORDS="~amd64 ~ppc ~x86" |
242 |
IUSE="svg png gzip" |
243 |
|
244 |
# We don't really need anything to run |
245 |
DEPEND="" |
246 |
RDEPEND="" |
247 |
|
248 |
# suggested basedir for cliparts |
249 |
CLIPART="/usr/share/clipart/${PN}" |
250 |
|
251 |
src_compile() { |
252 |
local removeext |
253 |
|
254 |
if ! use svg && ! use png; then |
255 |
elog "No image formats specified - defaulting to all (png and svg)" |
256 |
else |
257 |
! use png && removeext="${removeext} png" |
258 |
! use svg && removeext="${removeext} svg" |
259 |
fi |
260 |
|
261 |
for ext in ${removeext}; do |
262 |
elog "Removing ${ext} files..." |
263 |
find -name "*.${ext}" -exec rm -f {} \; \ |
264 |
|| die "Failed - remove" |
265 |
done |
266 |
|
267 |
if use gzip; then |
268 |
einfo "Compressing SVG files..." |
269 |
find -name "*.svg" -print0 | xargs -L 1 -0 \ |
270 |
bash -c 'gzip -9c "${1}" > "${1}z"; rm -f "${1}"' -- |
271 |
fi |
272 |
} |
273 |
|
274 |
src_install() { |
275 |
insinto ${CLIPART} |
276 |
doins -r . |
277 |
} |
278 |
|
279 |
|
280 |
|
281 |
1.1 media-gfx/openclipart/metadata.xml |
282 |
|
283 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/openclipart/metadata.xml?rev=1.1&view=markup |
284 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/openclipart/metadata.xml?rev=1.1&content-type=text/plain |
285 |
|
286 |
Index: metadata.xml |
287 |
=================================================================== |
288 |
<?xml version="1.0" encoding="UTF-8"?> |
289 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
290 |
<pkgmetadata> |
291 |
<herd>graphics</herd> |
292 |
<use> |
293 |
<flag name="gzip">Compresses clip art using gzip</flag> |
294 |
</use> |
295 |
</pkgmetadata> |