/[gentoo-x86]/x11-themes/nimbus/nimbus-0.1.7-r1.ebuild
Gentoo

Contents of /x11-themes/nimbus/nimbus-0.1.7-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Jun 3 23:00:37 2012 UTC (2 years, 6 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Rename gtk-engines-nimbus to nimbus and add USE="gtk" to control building of the engine

(Portage version: 2.2.0_alpha108/cvs/Linux x86_64, RepoMan options: --force)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-themes/gtk-engines-nimbus/gtk-engines-nimbus-0.1.7.ebuild,v 1.3 2012/05/05 04:10:07 jdhore Exp $
4
5 EAPI=4
6 AUTOTOOLS_AUTO_DEPEND=no
7 inherit autotools gnome2-utils
8
9 DESCRIPTION="The default OpenSolaris theme (GTK+ 2.x engine, icon- and metacity theme)"
10 HOMEPAGE="http://dlc.sun.com/osol/jds/downloads/extras/nimbus/"
11 SRC_URI="http://dlc.sun.com/osol/jds/downloads/extras/${PN}/${P}.tar.bz2"
12
13 LICENSE="LGPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux"
16 IUSE="gtk minimal"
17
18 COMMON_DEPEND="gtk? ( x11-libs/gtk+:2 )"
19 RDEPEND="${COMMON_DEPEND}
20 !minimal? ( || ( x11-themes/gnome-icon-theme x11-themes/tango-icon-theme ) )"
21 DEPEND="${COMMON_DEPEND}
22 dev-util/intltool
23 virtual/pkgconfig
24 >=x11-misc/icon-naming-utils-0.8.90
25 !gtk? ( ${AUTOTOOLS_DEPEND} )
26 kernel_Interix? ( ${AUTOTOOLS_DEPEND} )"
27
28 src_prepare() {
29 # Tango is deprecated
30 sed -i -e '/^Inherits/s:Tango:gnome,&:' icons/index.theme.in || die
31
32 # Encoding= key is obsolete
33 sed -i -e '/^Encoding/d' *.theme.in || die
34
35 use gtk || { sed -i \
36 -e '/^gtk-engine/d' -e '/GTK2/d' -e '/^SUBDIRS/s:gtk-engine ::' \
37 configure.in Makefile.am || die; }
38
39 local f=po/POTFILES.skip
40 echo light-index.theme.in >> ${f}
41 echo dark-index.theme.in >> ${f}
42
43 if [[ ${CHOST} == *-interix* ]] || ! use gtk; then
44 eautoreconf
45 fi
46 }
47
48 src_configure() {
49 econf $(use gtk && echo --disable-static)
50 }
51
52 src_install() {
53 emake DESTDIR="${D}" install
54 dodoc AUTHORS ChangeLog
55
56 use gtk && find "${ED}"/usr -name libnimbus.la -exec rm -f {} +
57 }
58
59 pkg_preinst() { gnome2_icon_savelist; }
60 pkg_postinst() { gnome2_icon_cache_update; }
61 pkg_postrm() { gnome2_icon_cache_update; }

  ViewVC Help
Powered by ViewVC 1.1.20