tango-icon-theme: Add
This commit is contained in:
parent
50b2e52988
commit
3a008f7a1d
22
pkgs/data/icons/tango-icon-theme/default.nix
Normal file
22
pkgs/data/icons/tango-icon-theme/default.nix
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{ stdenv, fetchurl, intltool, pkgconfig, iconnamingutils, imagemagick, librsvg }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "tango-icon-theme-0.8.90";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://tango.freedesktop.org/releases/${name}.tar.gz";
|
||||||
|
sha256 = "13n8cpml71w6zfm2jz5fa7r1z18qlzk4gv07r6n1in2p5l1xi63f";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [ ./rsvg-convert.patch ];
|
||||||
|
|
||||||
|
buildInputs = [ intltool pkgconfig iconnamingutils imagemagick librsvg ];
|
||||||
|
|
||||||
|
configureFlags = "--enable-png-creation";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A basic set of icons";
|
||||||
|
homepage = http://tango.freedesktop.org/Tango_Icon_Library;
|
||||||
|
platforms = stdenv.lib.platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
34
pkgs/data/icons/tango-icon-theme/rsvg-convert.patch
Normal file
34
pkgs/data/icons/tango-icon-theme/rsvg-convert.patch
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
Based on https://build.opensuse.org/package/view_file?file=tango-icon-theme-rsvg-2_35_2.patch&package=tango-icon-theme&project=openSUSE%3A12.2&rev=faf71bf8278d5df6ec8a31726e5b8542
|
||||||
|
|
||||||
|
diff -ru -x '*~' tango-icon-theme-0.8.90/configure tango-icon-theme-0.8.90-new/configure
|
||||||
|
--- tango-icon-theme-0.8.90/configure 2009-02-26 04:08:00.000000000 +0100
|
||||||
|
+++ tango-icon-theme-0.8.90-new/configure 2013-08-15 17:54:24.167065399 +0200
|
||||||
|
@@ -6554,7 +6554,7 @@
|
||||||
|
enable_large_bitmaps=no
|
||||||
|
fi
|
||||||
|
if test "x$enable_large_bitmaps" = "xyes"; then
|
||||||
|
- svgconvert_prog="rsvg"
|
||||||
|
+ svgconvert_prog="rsvg-convert"
|
||||||
|
else
|
||||||
|
svgconvert_prog="ksvgtopng"
|
||||||
|
fi
|
||||||
|
diff -ru -x '*~' tango-icon-theme-0.8.90/svg2png.sh.in tango-icon-theme-0.8.90-new/svg2png.sh.in
|
||||||
|
--- tango-icon-theme-0.8.90/svg2png.sh.in 2007-02-16 21:04:29.000000000 +0100
|
||||||
|
+++ tango-icon-theme-0.8.90-new/svg2png.sh.in 2013-08-15 17:54:08.275084837 +0200
|
||||||
|
@@ -9,12 +9,14 @@
|
||||||
|
|
||||||
|
ICONFILE=`basename ${3}`
|
||||||
|
ICONNAME=`echo ${ICONFILE} | sed -e "s/.svg//"`
|
||||||
|
-if test `basename $SVGCONVERT` = "rsvg"; then
|
||||||
|
+if test `basename $SVGCONVERT` = "rsvg-convert"; then
|
||||||
|
OPTIONS="-w ${1} -h ${1}"
|
||||||
|
+ OUTPUT="-o"
|
||||||
|
else
|
||||||
|
OPTIONS="${1} ${1}"
|
||||||
|
+ OUTPUT=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "${SVGCONVERT} ${OPTIONS} ${3} ${2}/${ICONNAME}.png"
|
||||||
|
-${SVGCONVERT} ${OPTIONS} ${3} ${2}/${ICONNAME}.png
|
||||||
|
+${SVGCONVERT} ${OPTIONS} ${3} ${OUTPUT} ${2}/${ICONNAME}.png
|
||||||
|
|
@ -7021,6 +7021,8 @@ let
|
|||||||
|
|
||||||
r5rs = callPackage ../data/documentation/rnrs/r5rs.nix { };
|
r5rs = callPackage ../data/documentation/rnrs/r5rs.nix { };
|
||||||
|
|
||||||
|
tango-icon-theme = callPackage ../data/icons/tango-icon-theme { };
|
||||||
|
|
||||||
themes = name: import (../data/misc/themes + ("/" + name + ".nix")) {
|
themes = name: import (../data/misc/themes + ("/" + name + ".nix")) {
|
||||||
inherit fetchurl;
|
inherit fetchurl;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user