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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon May 11 22:59:46 2009 UTC (9 years, 1 month ago) by eva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
New version for GNOME 2.26. Get idle time from xorg and idle detection from gnome-session. Clean up old revisions.
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 # Copyright 1999-2008 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.24.1.ebuild,v 1.2 2008/11/30 12:10:01 eva 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 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
13 KERNEL_IUSE="kernel_linux"
14 IUSE="debug doc libnotify opengl pam $KERNEL_IUSE"
15
16 RDEPEND=">=gnome-base/gconf-2.6.1
17 >=x11-libs/gtk+-2.14.0
18 >=gnome-base/libglade-2.5.0
19 >=gnome-base/gnome-desktop-2.23.2
20 >=gnome-base/gnome-menus-2.12
21 >=dev-libs/glib-2.15
22 >=gnome-base/libgnomekbd-0.1
23 >=dev-libs/dbus-glib-0.71
24 libnotify? ( x11-libs/libnotify )
25 opengl? ( virtual/opengl )
26 pam? ( virtual/pam )
27 !pam? ( kernel_linux? ( sys-apps/shadow ) )
28 x11-libs/libX11
29 x11-libs/libXext
30 x11-libs/libXrandr
31 x11-libs/libXScrnSaver
32 x11-libs/libXxf86misc
33 x11-libs/libXxf86vm"
34 DEPEND="${RDEPEND}
35 >=dev-util/pkgconfig-0.9
36 >=dev-util/intltool-0.35
37 doc? (
38 app-text/xmlto
39 ~app-text/docbook-xml-dtd-4.1.2
40 ~app-text/docbook-xml-dtd-4.4
41 )
42 x11-proto/xextproto
43 x11-proto/randrproto
44 x11-proto/scrnsaverproto
45 x11-proto/xf86miscproto"
46
47 DOCS="AUTHORS ChangeLog HACKING NEWS README TODO"
48
49 pkg_setup() {
50 G2CONF="${G2CONF}
51 $(use_enable doc docbook-docs)
52 $(use_enable debug)
53 $(use_with libnotify)
54 $(use_with opengl libgl)
55 $(use_enable pam)
56 --enable-locking
57 --with-xf86gamma-ext
58 --with-kbd-layout-indicator
59 --with-xscreensaverdir=/usr/share/xscreensaver/config
60 --with-xscreensaverhackdir=/usr/lib/misc/xscreensaver"
61 }
62
63 src_install() {
64 gnome2_src_install
65
66 # Install the conversion script in the documentation
67 dodoc "${S}/data/migrate-xscreensaver-config.sh"
68 dodoc "${S}/data/xscreensaver-config.xsl"
69
70 # Conversion information
71 sed -e "s:\${PF}:${PF}:" \
72 < "${FILESDIR}/xss-conversion-2.txt" > "${S}/xss-conversion.txt"
73
74 dodoc "${S}/xss-conversion.txt"
75
76 # Non PAM users will need this suid to read the password hashes.
77 # OpenPAM users will probably need this too when
78 # http://bugzilla.gnome.org/show_bug.cgi?id=370847
79 # is fixed.
80 if ! use pam ; then
81 fperms u+s /usr/libexec/gnome-screensaver-dialog
82 fi
83 }
84
85 pkg_postinst() {
86 gnome2_pkg_postinst
87
88 if has_version "<x11-misc/xscreensaver-4.22-r2" ; then
89 ewarn "You have xscreensaver installed, you probably want to disable it."
90 ewarn "To prevent a duplicate screensaver entry in the menu, you need to"
91 ewarn "build xscreensaver with -gnome in the USE flags."
92 ewarn "echo \"x11-misc/xscreensaver -gnome\" >> /etc/portage/package.use"
93
94 echo
95 fi
96
97 elog "Information for converting screensavers is located in "
98 elog "/usr/share/doc/${PF}/xss-conversion.txt.${PORTAGE_COMPRESS}"
99 }

  ViewVC Help
Powered by ViewVC 1.1.20