/[gentoo-x86]/gnome-extra/gnome-screensaver/gnome-screensaver-2.16.1.ebuild
Gentoo

Contents of /gnome-extra/gnome-screensaver/gnome-screensaver-2.16.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Dec 7 16:40:06 2006 UTC (11 years, 8 months ago) by compnerd
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
prune old versions
(Portage version: 2.1.2_rc2-r5)
 (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-extra/gnome-screensaver/gnome-screensaver-2.16.1.ebuild,v 1.4 2006/11/25 23:07:42 kloeri Exp $
4
5 inherit eutils gnome2
6
7 DESCRIPTION="Replaces xscreensaver, integrating with the desktop."
8 HOMEPAGE="http://live.gnome.org/GnomeScreensaver"
9
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
13 IUSE="debug doc xinerama opengl pam"
14
15 RDEPEND=">=gnome-base/gconf-2.6.1
16 >=x11-libs/gtk+-2.8
17 >=gnome-base/gnome-vfs-2.12
18 >=gnome-base/libgnomeui-2.12
19 >=gnome-base/libglade-2.5.0
20 >=gnome-base/gnome-menus-2.12
21 >=media-libs/libexif-0.6.12
22 >=dev-libs/glib-2.8
23 x11-libs/libX11
24 x11-libs/libXext
25 x11-libs/libXrandr
26 x11-libs/libXScrnSaver
27 x11-proto/xextproto
28 x11-proto/randrproto
29 x11-proto/scrnsaverproto
30 || (
31 >=dev-libs/dbus-glib-0.71
32 ( <sys-apps/dbus-0.90 >=sys-apps/dbus-0.35.2 )
33 )
34 opengl? ( virtual/opengl )
35 xinerama? (
36 x11-libs/libXinerama
37 x11-proto/xineramaproto
38 )
39 pam? ( sys-libs/pam )
40 !pam? ( sys-apps/shadow )"
41
42 DEPEND="${RDEPEND}
43 sys-devel/gettext
44 dev-util/pkgconfig
45 >=dev-util/intltool-0.35"
46
47 DOCS="AUTHORS ChangeLog HACKING NEWS README TODO"
48
49 pkg_setup() {
50 if use pam ; then
51 G2CONF="--enable-pam"
52 else
53 G2CONF="--with-shadow"
54 fi
55
56 G2CONF="${G2CONF} $(use_enable doc) $(use_enable debug) \
57 $(use_enable xinerama) $(use_with opengl gl)"
58
59 G2CONF="${G2CONF} --enable-locking --with-libexif --with-dpms-ext \
60 --with-gdm-config=/usr/share/gdm/defaults.conf \
61 --with-xscreensaverdir=/usr/share/xscreensaver/config \
62 --with-xscreensaverhackdir=/usr/lib/misc/xscreensaver "
63 }
64
65 src_install() {
66 gnome2_src_install
67
68 # Install the conversion script in the documentation
69 dodoc ${S}/data/migrate-xscreensaver-config.sh
70 dodoc ${S}/data/xscreensaver-config.xsl
71
72 # Conversion information
73 sed -e "s:\${PF}:${PF}:" \
74 < ${FILESDIR}/xss-conversion.txt > ${S}/xss-conversion.txt
75
76 dodoc ${S}/xss-conversion.txt
77
78 # If you are using shadow, you need to set the setuid bit on the dialog
79 if ! use pam ; then
80 fperms +s /usr/libexec/gnome-screensaver-dialog
81 fi
82 }
83
84 pkg_postinst() {
85 ewarn "If you have xscreensaver installed, you probably want to disable it."
86 ewarn "To prevent a duplicate Screensaver entry in the menu, you need to"
87 ewarn "build xscreensaver with -gnome in the USE flags."
88 ewarn "echo \"x11-misc/xscreensaver -gnome\" >> /etc/portage/package.use"
89 echo
90 einfo "Information for converting screensavers is located in "
91 einfo "/usr/share/doc/${PF}/xss-conversion.txt.gz"
92 }

  ViewVC Help
Powered by ViewVC 1.1.20