Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/rss-glx: rss-glx-0.8.1-r5.ebuild ChangeLog
Date: Sun, 01 Feb 2009 05:12:56
Message-Id: E1LTUda-0003MA-AC@stork.gentoo.org
1 dirtyepic 09/02/01 05:12:54
2
3 Modified: ChangeLog
4 Added: rss-glx-0.8.1-r5.ebuild
5 Log:
6 Revision bump.
7 Bug #220825 - configure error w/ >=libtool-2
8 Bug #221286 - install into /usr/lib instead of /usr/lib64
9 Bug #227071 - GCC 4.3 compile error
10 Should also fix bug #245415 (libtool again).
11 Drop 3dnow and sse USE flags (were removed upstream in 0.8.1)
12 (Portage version: 2.2_rc23/cvs/Linux x86_64)
13
14 Revision Changes Path
15 1.62 x11-misc/rss-glx/ChangeLog
16
17 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/rss-glx/ChangeLog?rev=1.62&view=markup
18 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/rss-glx/ChangeLog?rev=1.62&content-type=text/plain
19 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/rss-glx/ChangeLog?r1=1.61&r2=1.62
20
21 Index: ChangeLog
22 ===================================================================
23 RCS file: /var/cvsroot/gentoo-x86/x11-misc/rss-glx/ChangeLog,v
24 retrieving revision 1.61
25 retrieving revision 1.62
26 diff -u -r1.61 -r1.62
27 --- ChangeLog 4 Apr 2008 17:54:56 -0000 1.61
28 +++ ChangeLog 1 Feb 2009 05:12:54 -0000 1.62
29 @@ -1,6 +1,18 @@
30 # ChangeLog for x11-misc/rss-glx
31 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
32 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/rss-glx/ChangeLog,v 1.61 2008/04/04 17:54:56 je_fro Exp $
33 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
34 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/rss-glx/ChangeLog,v 1.62 2009/02/01 05:12:54 dirtyepic Exp $
35 +
36 +*rss-glx-0.8.1-r5 (01 Feb 2009)
37 +
38 + 01 Feb 2009; Ryan Hill <dirtyepic@g.o>
39 + +files/rss-glx-0.8.1-gcc43.patch, +files/rss-glx-0.8.1-gentoo.patch,
40 + +files/rss-glx-0.8.1-imagemagick.patch, +rss-glx-0.8.1-r5.ebuild:
41 + Revision bump.
42 + Bug #220825 - configure error w/ >=libtool-2
43 + Bug #221286 - install into /usr/lib instead of /usr/lib64
44 + Bug #227071 - GCC 4.3 compile error
45 + Should also fix bug #245415 (libtool again).
46 + Drop 3dnow and sse USE flags (were removed upstream in 0.8.1)
47
48 04 Apr 2008; Jeff Gardner <je_fro@g.o>
49 -files/rss-glx-0.8.1-r1-gentoo.patch,
50
51
52
53 1.1 x11-misc/rss-glx/rss-glx-0.8.1-r5.ebuild
54
55 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/rss-glx/rss-glx-0.8.1-r5.ebuild?rev=1.1&view=markup
56 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/rss-glx/rss-glx-0.8.1-r5.ebuild?rev=1.1&content-type=text/plain
57
58 Index: rss-glx-0.8.1-r5.ebuild
59 ===================================================================
60 # Copyright 1999-2009 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 # $Header: /var/cvsroot/gentoo-x86/x11-misc/rss-glx/rss-glx-0.8.1-r5.ebuild,v 1.1 2009/02/01 05:12:54 dirtyepic Exp $
63
64 inherit flag-o-matic eutils autotools multilib
65
66 MY_P=${PN}_${PV}
67 S=${WORKDIR}/${MY_P}
68 DESCRIPTION="Really Slick Screensavers using OpenGL for XScreenSaver"
69 HOMEPAGE="http://rss-glx.sourceforge.net/"
70 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
71
72 LICENSE="GPL-2"
73 SLOT="0"
74 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
75 IUSE="kde openal xscreensaver"
76
77 RDEPEND="${RDEPEND}
78 virtual/opengl
79 media-libs/glew
80 >=media-gfx/imagemagick-5.5.7
81 kde? ( || ( kde-base/kdeartwork-kscreensaver kde-base/kdeartwork ) )
82 !kde? ( >=x11-misc/xscreensaver-5 )
83 xscreensaver? ( >=x11-misc/xscreensaver-5 )
84 openal? ( media-libs/openal )"
85 DEPEND="${RDEPEND}
86 dev-util/pkgconfig"
87
88 pkg_setup() {
89 if use kde && use xscreensaver ; then
90 for pkg in kde-base/kdeartwork-kscreensaver kde-base/kdeartwork ; do
91 if has_version ${pkg} && ! built_with_use ${pkg} xscreensaver ; then
92 eerror "rss-glx wont work nicely with kde unless you"
93 eerror "emerge ${pkg} with USE=xscreensaver."
94 eerror "See http://bugs.gentoo.org/show_bug.cgi?id=88212"
95 die "Please re-emerge ${pkg} with USE=xscreensaver"
96 fi
97 done
98 fi
99 }
100
101 src_unpack() {
102 unpack ${A}
103 cd "${S}"
104 epatch "${FILESDIR}"/${P}-gentoo.patch
105 epatch "${FILESDIR}"/${P}-imagemagick.patch
106 epatch "${FILESDIR}"/${PN}-0.8.1-hyperspace-viewport.patch
107 epatch "${FILESDIR}"/${P}-gcc43.patch
108 cp "${FILESDIR}"/jwz-vroot.h include/vroot.h || die
109
110 eautoreconf
111 }
112
113 src_compile() {
114 local myconf
115
116 myconf="${myconf} --bindir=/usr/$(get_libdir)/misc/xscreensaver"
117 myconf="${myconf} --with-configdir=/usr/share/xscreensaver/config/"
118
119 if use kde; then
120 find . -name '*.desktop' -exec \
121 sed -i \
122 -e 's:Exec=kxsrun \(.*\):Exec=kxsrun \1:g' \
123 -e 's:Exec=kxsconfig \(.*\):Exec=kxsconfig \1:g' \
124 '{}' \
125 \; \
126 || die "couldnt sed desktop files"
127 myconf="${myconf} --with-kdessconfigdir=/usr/share/applications/"
128 fi
129
130 econf \
131 $(use_enable openal sound) \
132 ${myconf} || die "econf failed"
133 emake || die "emake failed"
134 }
135
136 src_install() {
137 emake DESTDIR="${D}" install || die "install failed"
138 dodoc README README.xscreensaver
139
140 # symlink to satisfy kde's kxs*
141 use kde && dosym /usr/share/control-center/screensavers /usr/lib/xscreensaver/config
142 }
143
144 pkg_postinst() {
145 local XSCREENSAVER_CONF="${ROOT}/usr/share/X11/app-defaults/XScreenSaver"
146
147 if [ -f ${XSCREENSAVER_CONF} ]; then
148 einfo "Adding Really Slick Screensavers to XScreenSaver"
149 sed -e '/*programs:/a\
150 GL: \"Cyclone\" cyclone --root \\n\\\
151 GL: \"Euphoria\" euphoria --root \\n\\\
152 GL: \"Fieldlines\" fieldlines --root \\n\\\
153 GL: \"Flocks\" flocks --root \\n\\\
154 GL: \"Flux\" flux --root \\n\\\
155 GL: \"Helios\" helios --root \\n\\\
156 GL: \"Hyperspace\" hyperspace --root \\n\\\
157 GL: \"Lattice\" lattice --root \\n\\\
158 GL: \"Plasma\" plasma --root \\n\\\
159 GL: \"Skyrocket\" skyrocket --root \\n\\\
160 GL: \"Solarwinds\" solarwinds --root \\n\\\
161 GL: \"Colorfire\" colorfire --root \\n\\\
162 GL: \"Hufos Smoke\" hufo_smoke --root \\n\\\
163 GL: \"Hufos Tunnel\" hufo_tunnel --root \\n\\\
164 GL: \"Sundancer2\" sundancer2 --root \\n\\\
165 GL: \"BioF\" biof --root \\n\\\
166 GL: \"MatrixView\" matrixview --root \\n\\\
167 GL: \"Spirographx\" spirographx --root \\n\\\
168 GL: \"BusySpheres\" busyspheres --root \\n\\' \
169 -i ${XSCREENSAVER_CONF}
170
171 else
172 einfo "Unable to add these to XScreenSaver configuration"
173 einfo "This should not happen. Please file a bug"
174 fi
175 }
176
177 pkg_postrm() {
178 local XSCREENSAVER_CONF="${ROOT}/usr/share/X11/app-defaults/XScreenSaver"
179
180 has_version x11-misc/rss-glx && return 0
181 if [ -f ${XSCREENSAVER_CONF} ]; then
182 einfo "Removing Really Slick Screensavers from XScreenSaver configuration."
183 sed \
184 -e '/\"Cyclone\" cyclone/d' \
185 -e '/\"Euphoria\" euphoria/d' \
186 -e '/\"Fieldlines\" fieldlines/d' \
187 -e '/\"Flocks\" flocks/d' \
188 -e '/\"Flux\" flux/d' \
189 -e '/\"Helios\" helios/d' \
190 -e '/\"Hyperspace\" hyperspace/d' \
191 -e '/\"Lattice\" lattice/d' \
192 -e '/\"Plasma\" plasma/d' \
193 -e '/\"Skyrocket\" skyrocket/d' \
194 -e '/\"Solarwinds\" solarwinds/d' \
195 -e '/\"Colorfire\" colorfire/d' \
196 -e '/\"Hufos Smoke\" hufo_smoke/d' \
197 -e '/\"Hufos Tunnel\" hufo_tunnel/d' \
198 -e '/\"Sundancer2\" sundancer2/d' \
199 -e '/\"BioF\" biof/d' \
200 -e '/\"MatrixView\" matrixview/d' \
201 -e '/\"Spirographx\" spirographx/d' \
202 -e '/\"BusySpheres\" busyspheres/d' \
203 -i ${XSCREENSAVER_CONF}
204 fi
205 }