Magellan Linux

Annotation of /trunk/extras/tango-icon-theme/tango-icon-theme-0.8.90-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16763 - (hide annotations) (download)
Wed Mar 6 10:21:07 2013 UTC (11 years, 3 months ago) by niro
File size: 1650 byte(s)
-fixed dependencies
1 niro 16763 # $Id$
2    
3     PNAME="tango-icon-theme"
4     PVER="0.8.90"
5     PBUILD="r4"
6    
7     PCAT="x11-themes"
8    
9     DESCRIPTION="Tango SVG and PNG icon theme."
10     HOMEPAGE="http://tango.freedesktop.org/"
11    
12     DEPEND=">= x11-themes/hicolor-icon-theme-0.12"
13    
14     SDEPEND=">= dev-util/pkgconfig-0.25
15     >= sys-dev/gettext-0.18
16     >= dev-util/intltool-0.41
17     >= gnome-base/librsvg-2.34
18     >= media-gfx/imagemagick-6.7
19     >= x11-misc/icon-naming-utils-0.8.90"
20    
21     SRCFILE="${PNAME}-${PVER}.tar.gz"
22     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
23    
24     sminclude mbuild mtools
25    
26     SRC_URI=(
27     http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE}
28     http://tango.freedesktop.org/releases/${SRCFILE}
29     mirror://${PNAME}/${SRCFILE}
30     )
31    
32     UP2TARBALL="${PNAME}"
33     UP2DATE="updatecmd_freedesktop tango"
34    
35     # helper
36     xdg_provide_icon()
37     {
38     local source="$1"
39     local target="$2"
40     local size
41     local suffix
42    
43     for size in 16x16 22x22 32x32 scalable
44     do
45     if [[ ${size} = scalable ]]
46     then
47     suffix=svg
48     else
49     suffix=png
50     fi
51    
52     cp ${size}/${source}.${suffix} ${size}/${target}.${suffix} || die "cp ${size}/${source}.${suffix} -> ${size}/${target}.${suffix}"
53     done
54     }
55    
56     src_compile()
57     {
58     cd ${SRCDIR}
59     mconfigure --enable-png-creation --enable-icon-framing || die
60     mmake || die
61     }
62    
63     src_install()
64     {
65     cd ${SRCDIR}
66     mbuild_src_install || die
67    
68     # install missing icons
69     cd ${BINDIR}/usr/share/icons/Tango
70     xdg_provide_icon apps/preferences-desktop-keyboard-shortcuts apps/preferences-desktop-keyboard || die
71     xdg_provide_icon places/network-workgroup apps/preferences-system-network || die
72     xdg_provide_icon emblems/emblem-system apps/gtk-execute || die
73     xdg_provide_icon status/audio-volume-high apps/multimedia-volume-control || die
74     }