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

Contents of /gnome-extra/gnome-screensaver/gnome-screensaver-2.26.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Tue Nov 23 17:32:53 2010 UTC (7 years, 11 months ago) by eva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Clean up old revisions.

(Portage version: 2.2.0_alpha4/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.26.1-r1.ebuild,v 1.8 2010/07/20 02:18:17 jer Exp $
4
5 inherit eutils gnome2 multilib
6
7 DESCRIPTION="Replaces xscreensaver, integrating with the desktop."
8 HOMEPAGE="http://live.gnome.org/GnomeScreensaver"
9 SRC_URI="${SRC_URI}
10 branding? ( http://www.gentoo.org/images/gentoo-logo.svg )"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
15 KERNEL_IUSE="kernel_linux"
16 IUSE="branding debug doc libnotify opengl pam $KERNEL_IUSE"
17
18 RDEPEND=">=gnome-base/gconf-2.6.1
19 >=x11-libs/gtk+-2.14.0
20 >=gnome-base/libglade-2.5.0
21 >=gnome-base/gnome-desktop-2.23.2
22 >=gnome-base/gnome-menus-2.12
23 >=dev-libs/glib-2.15
24 >=gnome-base/libgnomekbd-0.1
25 >=dev-libs/dbus-glib-0.71
26 libnotify? ( x11-libs/libnotify )
27 opengl? ( virtual/opengl )
28 pam? ( virtual/pam )
29 !pam? ( kernel_linux? ( sys-apps/shadow ) )
30 x11-libs/libX11
31 x11-libs/libXext
32 x11-libs/libXrandr
33 x11-libs/libXScrnSaver
34 x11-libs/libXxf86misc
35 x11-libs/libXxf86vm"
36 DEPEND="${RDEPEND}
37 >=dev-util/pkgconfig-0.9
38 >=dev-util/intltool-0.40
39 doc? (
40 app-text/xmlto
41 ~app-text/docbook-xml-dtd-4.1.2
42 ~app-text/docbook-xml-dtd-4.4 )
43 x11-proto/xextproto
44 x11-proto/randrproto
45 x11-proto/scrnsaverproto
46 x11-proto/xf86miscproto"
47
48 DOCS="AUTHORS ChangeLog HACKING NEWS README TODO"
49
50 pkg_setup() {
51 G2CONF="${G2CONF}
52 $(use_enable doc docbook-docs)
53 $(use_enable debug)
54 $(use_with libnotify)
55 $(use_with opengl libgl)
56 $(use_enable pam)
57 --enable-locking
58 --with-xf86gamma-ext
59 --with-kbd-layout-indicator
60 --with-xscreensaverdir=/usr/share/xscreensaver/config
61 --with-xscreensaverhackdir=/usr/$(get_libdir)/misc/xscreensaver"
62 }
63
64 src_unpack() {
65 gnome2_src_unpack
66 # Fix screensaver not locking due inhibitors, upstream bug #600488
67 epatch "${FILESDIR}/${PN}-2.26.1-remove-inhibitors.patch"
68 }
69
70 src_install() {
71 gnome2_src_install
72
73 # Install the conversion script in the documentation
74 dodoc "${S}/data/migrate-xscreensaver-config.sh"
75 dodoc "${S}/data/xscreensaver-config.xsl"
76
77 # Conversion information
78 sed -e "s:\${PF}:${PF}:" \
79 < "${FILESDIR}/xss-conversion-2.txt" > "${S}/xss-conversion.txt"
80
81 dodoc "${S}/xss-conversion.txt"
82
83 # Non PAM users will need this suid to read the password hashes.
84 # OpenPAM users will probably need this too when
85 # http://bugzilla.gnome.org/show_bug.cgi?id=370847
86 # is fixed.
87 if ! use pam ; then
88 fperms u+s /usr/libexec/gnome-screensaver-dialog
89 fi
90
91 if use branding ; then
92 insinto /usr/share/pixmaps/
93 doins "${DISTDIR}/gentoo-logo.svg" || die "doins 1 failed"
94 insinto /usr/share/applications/screensavers/
95 doins "${FILESDIR}/gentoologo-floaters.desktop" || die "doins 2 failed"
96 fi
97 }
98
99 pkg_postinst() {
100 gnome2_pkg_postinst
101
102 if has_version "<x11-base/xorg-server-1.5.3-r4" ; then
103 ewarn "You have a too old xorg-server installation. This will cause"
104 ewarn "gnome-screensaver to eat up your CPU. Please consider upgrading."
105 echo
106 fi
107
108 if has_version "<x11-misc/xscreensaver-4.22-r2" ; then
109 ewarn "You have xscreensaver installed, you probably want to disable it."
110 ewarn "To prevent a duplicate screensaver entry in the menu, you need to"
111 ewarn "build xscreensaver with -gnome in the USE flags."
112 ewarn "echo \"x11-misc/xscreensaver -gnome\" >> /etc/portage/package.use"
113
114 echo
115 fi
116
117 elog "Information for converting screensavers is located in "
118 elog "/usr/share/doc/${PF}/xss-conversion.txt.${PORTAGE_COMPRESS}"
119 }

  ViewVC Help
Powered by ViewVC 1.1.20