Gentoo Archives: gentoo-dev

From: hasufell <hasufell@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] enhancement for doicon/newicon in eutils.eclass
Date: Thu, 24 May 2012 00:43:22
Message-Id: 4FBD835E.6020003@gentoo.org
In Reply to: Re: [gentoo-dev] enhancement for doicon/newicon in eutils.eclass by Mike Frysinger
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On 05/24/2012 02:30 AM, Mike Frysinger wrote:
5 > On Wednesday 23 May 2012 20:16:12 hasufell wrote:
6 >> Thanks, I'v implemented most of that, but your proposal about
7 >> non-duplicated list in case) has multiple problems. The only
8 >> cases that actually work with that snippet are:
9 >> 16x16|22x22|24x24|32x32|36x36|48x48|64x64|72x72|96x96|scalable.
10 >> All others will fail (like 128x128 or just 48).
11 >
12 > so do: size= if [[ $2 == "scalable" ]] ; then size=$2 elif [[
13 > ${2%%x*}x${2%%x*} == "$2" ]] ; then size=${2%%x*} case ${size} in
14 > 16|22|24|32|36|48|64|72|96|128|192|256) ;; *) size= ;; esac fi
15 > -mike
16
17 that will install
18 doicon -s 256x256 "${FILESDIR}"/${PN}.svg
19 into
20 /usr/share/icons/hicolor/256/apps/${PN}.svg
21
22 and
23
24 doicon -s 256 "${FILESDIR}"/${PN}.svg
25 into
26 /usr/share/pixmaps/${PN}.svg
27
28
29 I don't see the point in bothering with that.
30 -----BEGIN PGP SIGNATURE-----
31 Version: GnuPG v2.0.19 (GNU/Linux)
32 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
33
34 iQEcBAEBAgAGBQJPvYNeAAoJEFpvPKfnPDWzXeEIAKAK+c/+xkt4UIS2xLK9SGMQ
35 U1DwEqtiiytYvpB84QYrYjnoEMZrZN76uv6GsFtDYQC1nS5PDJt6F8yhGldF5CWr
36 UrD12iiIVIi3gLvkWVyfdhX3gA4wn/CL8Vq00R2oIMjy00uTBcYUmFV9X7xJzIxz
37 zyXhZBsXSpdnqZ1x9+nc9m9zy77Y7FIwA1dR9bWhBsiYMshUjTtGlIBE3uzm6v4Z
38 qKzhwKoG67jKFQuMyu495VSGGjXIJ0wuNofA2GRWLYZc5xP2nmeG5Q70vpM0CRiI
39 5Y2epr8thqbX53tsIxyJKqSwvqHGIKItChD0av9saIUa2D0KaUEiRrRN+m6cJuM=
40 =YxUg
41 -----END PGP SIGNATURE-----