/[gentoo-x86]/gnome-base/gnome-panel/gnome-panel-1.4.2-r2.ebuild
Gentoo

Contents of /gnome-base/gnome-panel/gnome-panel-1.4.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Thu Dec 21 05:18:18 2006 UTC (12 years, 6 months ago) by compnerd
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +1 -1 lines
FILE REMOVED
gnome-1.x removal
(Portage version: 2.1.2_rc3-r7)
 (Unsigned Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-panel/gnome-panel-1.4.2-r2.ebuild,v 1.15 2006/09/05 01:41:56 kumba Exp $
4
5 inherit libtool
6
7 S=${WORKDIR}/gnome-core-${PV}
8 DESCRIPTION="Split out panel from gnome-core"
9 HOMEPAGE="http://www.gnome.org/"
10 SRC_URI="mirror://gnome/sources/gnome-core/1.4/gnome-core-${PV}.tar.bz2"
11
12 LICENSE="GPL-2"
13 SLOT="1.4"
14 KEYWORDS="alpha amd64 arm hppa ia64 ppc ~sparc x86"
15 IUSE="kde nls"
16
17 RDEPEND="=gnome-base/control-center-1.4*
18 <gnome-base/libglade-0.99.0
19 >=gnome-base/gnome-libs-1.4.1.2-r1
20 >=media-libs/gdk-pixbuf-0.16.0-r1"
21
22 DEPEND="${RDEPEND}
23 >=app-text/scrollkeeper-0.2
24 =sys-devel/automake-1.4*
25 sys-devel/autoconf
26 nls? ( sys-devel/gettext
27 >=dev-util/intltool-0.11 )"
28
29 src_unpack() {
30 unpack ${A}
31 cd ${S}
32
33 # libpng-1.2.5 fix
34 cp configure.in configure.in.old
35 sed -e "s:-lz:\`libpng-config --libs\`:" configure.in.old \
36 > configure.in
37
38 # Libtoolize
39 elibtoolize
40 aclocal -I macros
41 WANT_AUTOMAKE=1.4 automake --add-missing
42 autoconf
43 }
44
45 src_compile() {
46 local myconf=""
47 local myldflags=""
48
49 use nls || myconf="${myconf} --disable-nls"
50
51 if use kde
52 then
53 myconf="${myconf} --with-kde-datadir=/usr/share"
54 fi
55
56 # Fix build against gdk-pixbuf-0.12 and later
57 CFLAGS="${CFLAGS} `gdk-pixbuf-config --cflags`"
58
59 ./configure --host=${CHOST} \
60 --prefix=/usr \
61 --mandir=/usr/share/man \
62 --sysconfdir=/etc \
63 --localstatedir=/var/lib \
64 ${myconf} || die
65
66 cd panel
67 cp gnome-panel-screenshot.c gnome-panel-screenshot.c.orig
68 cat gnome-panel-screenshot.c.orig | \
69 sed 's:\(^#include <errno.h>\):\1\n#include <locale.h>:' \
70 > gnome-panel-screenshot.c
71
72 cd ${S}
73 make -C panel
74 }
75
76 src_install() {
77 make -C panel \
78 prefix=${D}/usr \
79 mandir=${D}/usr/share/man \
80 sysconfdir=${D}/etc \
81 localstatedir=${D}/var/lib \
82 install || die
83 dodoc AUTHORS COPYING* ChangeLog README NEWS
84 rm -f ${D}/usr/bin/gnome-panel-screenshot
85 rm -f ${D}/usr/share/gnome/panel/gnome-panel-screenshot.glade
86 }
87

  ViewVC Help
Powered by ViewVC 1.1.20