Commit 44ee9666 authored by T. Fischer's avatar T. Fischer

'rsvg-convert' has issues to create custom-size PNG images, thus going through 'convert'

parent 2cfba305
EBUILD josm-9060.ebuild 1813 SHA256 8676c9ff1e1262363cabc9e24a250f3326fc6fe043b07b029059bbbd05858b5f SHA512 8d6345a7fda411eff3a3ef00e72aea5402c1540f78e9d4384ebe10f1e08ae22f51588b80470163ea77749d6dec77f7bd9f854142a0cddaad82d2f780c8552214 WHIRLPOOL d04c5892a28f460345ca6553b474b2d34627c6df18fc6e61e208f50b0de53778322161800ec030dc7bd2fed262e730d85e41f9ca4a92c28cb8f62f89ede21195
EBUILD josm-9060.ebuild 2125 SHA256 a6c91489257651e754672ea5476bde5e566f96a2e60acce77a1facf2544e8bbf SHA512 c45f8bc15fa341f10db4157b80e162dae9c390e203f6dfd2268e63a7e957bc83947ce42726d592b43cdaa262525f8459a7090d48f9daad603360128b5e769b37 WHIRLPOOL 3a4c857013f34b31ee12d263dbd7a8472c753b041737c7fc0d21b7d2689571eb5b53c9d93109fc125bd68ea6751dfb7d389e11fe1829219357fde75f6fbf9bb6
......@@ -19,6 +19,8 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND=">=virtual/jdk-1.7
|| ( media-gfx/imagemagick media-gfx/graphicsmagick )
media-gfx/optipng
gnome-base/librsvg"
RDEPEND=">=virtual/jre-1.7"
......@@ -37,10 +39,14 @@ src_compile() {
eant dist-optimized
# create icon in various sizes based on project's SVG logo
rsvg-convert -f png -o ${T}/${PN}.png images/logo.svg || \
die "Cannot create PNG file '${T}/${PN}.png' from SVG file 'images/logo.svg'"
for size in 128 16 192 22 24 256 32 36 48 512 64 72 96 ; do
mkdir -p ${T}/${size} || die "Cannot create temporary directory '${T}/${size}'"
rsvg-convert -f png -o ${T}/${size}/${PN}.png -w ${size} -h ${size} "images/logo.svg" || \
die "Cannot create PNG file '${T}/${size}/${PN}.png' from SVG file 'images/logo.svg'"
convert ${T}/${PN}.png -scale ${size}x${size} ${T}/${size}/${PN}.png || \
die "Cannot create PNG file '${T}/${size}/${PN}.png' from PNG file ${T}/${PN}.png'"
optipng ${T}/${size}/${PN}.png || \
die "Cannot optimize PNG file '${T}/${size}/${PN}.png'"
done
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment