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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Thu Nov 13 11:53:57 2014 UTC (3 years, 11 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +1 -1 lines
FILE REMOVED
Drop package due bug #508854

1 # Copyright 1999-2014 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.30.2-r1.ebuild,v 1.14 2014/08/10 21:19:57 slyfox Exp $
4
5 EAPI="2"
6
7 inherit eutils gnome2 multilib autotools
8
9 DESCRIPTION="Replaces xscreensaver, integrating with the desktop"
10 HOMEPAGE="http://live.gnome.org/GnomeScreensaver"
11 SRC_URI="${SRC_URI}
12 branding? ( http://www.gentoo.org/images/gentoo-logo.svg )"
13
14 LICENSE="GPL-2+"
15 SLOT="0"
16 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
17 KERNEL_IUSE="kernel_linux"
18 IUSE="branding debug doc libnotify opengl pam $KERNEL_IUSE"
19
20 RDEPEND=">=gnome-base/gconf-2.6.1:2
21 >=x11-libs/gtk+-2.14.0:2
22 >=gnome-base/gnome-desktop-2.29.0:2
23 >=gnome-base/gnome-menus-2.12:0
24 >=dev-libs/glib-2.15:2
25 >=gnome-base/libgnomekbd-0.1
26 >=dev-libs/dbus-glib-0.71
27 libnotify? ( x11-libs/libnotify )
28 opengl? ( virtual/opengl )
29 pam? ( virtual/pam )
30 !pam? ( kernel_linux? ( sys-apps/shadow ) )
31 x11-libs/libX11
32 x11-libs/libXext
33 x11-libs/libXrandr
34 x11-libs/libXScrnSaver
35 x11-libs/libXxf86misc
36 x11-libs/libXxf86vm"
37 DEPEND="${RDEPEND}
38 virtual/pkgconfig
39 >=dev-util/intltool-0.40
40 doc? (
41 app-text/xmlto
42 ~app-text/docbook-xml-dtd-4.1.2
43 ~app-text/docbook-xml-dtd-4.4 )
44 x11-proto/xextproto
45 x11-proto/randrproto
46 x11-proto/scrnsaverproto
47 x11-proto/xf86miscproto
48 gnome-base/gnome-common"
49
50 DOCS="AUTHORS ChangeLog HACKING NEWS README TODO"
51
52 pkg_setup() {
53 G2CONF="${G2CONF}
54 $(use_enable doc docbook-docs)
55 $(use_enable debug)
56 $(use_with libnotify)
57 $(use_with opengl gl)
58 $(use_enable pam)
59 --enable-locking
60 --with-xf86gamma-ext
61 --with-kbd-layout-indicator
62 --with-xscreensaverdir=/usr/share/xscreensaver/config
63 --with-xscreensaverhackdir=/usr/$(get_libdir)/misc/xscreensaver"
64 }
65
66 src_prepare() {
67 # libnotify support was removed from trunk, so not needed for next release
68 epatch "${FILESDIR}/${P}-libnotify-0.7.patch"
69
70 # The dialog uses libxklavier directly, so link against it, upstream bug #634949
71 epatch "${FILESDIR}/${P}-libxklavier-configure.patch"
72
73 # Fix QA warning, upstream bug #637676
74 epatch "${FILESDIR}/${P}-popsquares-header.patch"
75
76 # Fix fading on nvidia setups, upstream bugs #610294 and #618932
77 epatch "${FILESDIR}/${P}-nvidia-fade.patch"
78 epatch "${FILESDIR}/${P}-nvidia-fade2.patch"
79
80 # Don't run twice, upstream bug #642462
81 epatch "${FILESDIR}/${P}-prevent-twice.patch"
82
83 # Don't user name owner proxies for SessionManager, upstream bug #611207
84 epatch "${FILESDIR}/${P}-name-manager.patch"
85
86 # Fix intltoolize broken file, see upstream #577133
87 sed "s:'\^\$\$lang\$\$':\^\$\$lang\$\$:g" -i po/Makefile.in.in \
88 || die "sed failed"
89
90 # automake-1.13 fix, bug #467910
91 sed -i -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' configure.ac || die
92
93 intltoolize --force --copy --automake || die "intltoolize failed"
94 eautoreconf
95 gnome2_src_prepare
96 }
97
98 src_install() {
99 gnome2_src_install
100
101 # Install the conversion script in the documentation
102 dodoc "${S}/data/migrate-xscreensaver-config.sh"
103 dodoc "${S}/data/xscreensaver-config.xsl"
104
105 # Conversion information
106 sed -e "s:\${PF}:${PF}:" < "${FILESDIR}/xss-conversion-2.txt" \
107 > "${S}/xss-conversion.txt" || die "sed failed"
108
109 dodoc "${S}/xss-conversion.txt"
110
111 # Non PAM users will need this suid to read the password hashes.
112 # OpenPAM users will probably need this too when
113 # http://bugzilla.gnome.org/show_bug.cgi?id=370847
114 # is fixed.
115 if ! use pam ; then
116 fperms u+s /usr/libexec/gnome-screensaver-dialog
117 fi
118
119 if use branding ; then
120 doicon "${DISTDIR}/gentoo-logo.svg" || die "doins 1 failed"
121 insinto /usr/share/applications/screensavers/
122 doins "${FILESDIR}/gentoologo-floaters.desktop" || die "doins 2 failed"
123 fi
124 }
125
126 pkg_postinst() {
127 gnome2_pkg_postinst
128
129 if has_version "<x11-base/xorg-server-1.5.3-r4" ; then
130 ewarn "You have a too old xorg-server installation. This will cause"
131 ewarn "gnome-screensaver to eat up your CPU. Please consider upgrading."
132 echo
133 fi
134
135 if has_version "<x11-misc/xscreensaver-4.22-r2" ; then
136 ewarn "You have xscreensaver installed, you probably want to disable it."
137 ewarn "To prevent a duplicate screensaver entry in the menu, you need to"
138 ewarn "build xscreensaver with -gnome in the USE flags."
139 ewarn "echo \"x11-misc/xscreensaver -gnome\" >> /etc/portage/package.use"
140
141 echo
142 fi
143
144 elog "Information for converting screensavers is located in "
145 elog "/usr/share/doc/${PF}/xss-conversion.txt.${PORTAGE_COMPRESS}"
146 }

  ViewVC Help
Powered by ViewVC 1.1.20