Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/rss-glx/
Date: Wed, 03 Apr 2019 10:17:50
Message-Id: 1554286662.57ba9eb2ff8dbe8fddf90cb326a84f38826d189c.jer@gentoo
1 commit: 57ba9eb2ff8dbe8fddf90cb326a84f38826d189c
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 3 10:15:06 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 3 10:17:42 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57ba9eb2
7
8 x11-misc/rss-glx: Do not install static libraries
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 x11-misc/rss-glx/rss-glx-0.9.1-r2.ebuild | 129 +++++++++++++++++++++++++++++++
14 1 file changed, 129 insertions(+)
15
16 diff --git a/x11-misc/rss-glx/rss-glx-0.9.1-r2.ebuild b/x11-misc/rss-glx/rss-glx-0.9.1-r2.ebuild
17 new file mode 100644
18 index 00000000000..dfa7eb7baa0
19 --- /dev/null
20 +++ b/x11-misc/rss-glx/rss-glx-0.9.1-r2.ebuild
21 @@ -0,0 +1,129 @@
22 +# Copyright 1999-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +inherit autotools multilib
27 +
28 +MY_P=${PN}_${PV}
29 +
30 +DESCRIPTION="Really Slick OpenGL Screensavers for XScreenSaver"
31 +HOMEPAGE="http://rss-glx.sourceforge.net"
32 +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
33 +
34 +LICENSE="GPL-2"
35 +SLOT="0"
36 +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
37 +IUSE="+bzip2 openal quesoglc"
38 +
39 +RDEPEND="
40 + x11-libs/libX11
41 + x11-libs/libXext
42 + >=media-libs/glew-1.5.1:=
43 + media-libs/mesa
44 + >=media-gfx/imagemagick-6.4:=
45 + >=x11-misc/xscreensaver-5.08-r2
46 + bzip2? ( app-arch/bzip2 )
47 + openal? ( >=media-libs/freealut-1.1.0-r1 )
48 + quesoglc? ( media-libs/quesoglc )
49 +"
50 +DEPEND="
51 + ${RDEPEND}
52 + x11-base/xorg-proto
53 + virtual/pkgconfig
54 + sys-apps/sed
55 +"
56 +PATCHES=(
57 + "${FILESDIR}"/${P}-quesoglc.patch
58 + "${FILESDIR}"/${P}-asneeded.patch
59 + "${FILESDIR}"/${P}-imagemagick-7.patch
60 +)
61 +DOCS="ChangeLog README*"
62 +S=${WORKDIR}/${MY_P}
63 +
64 +src_prepare() {
65 + default
66 +
67 + sed -i \
68 + -e '/CFLAGS=/s:-O2:${CFLAGS}:' \
69 + -e '/CXXFLAGS=/s:-O2:${CXXFLAGS}:' \
70 + -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \
71 + configure.in || die
72 +
73 + eautoreconf
74 +}
75 +
76 +src_configure() {
77 + econf \
78 + $(use_enable bzip2) \
79 + $(use_enable openal sound) \
80 + $(use_with quesoglc) \
81 + --bindir=/usr/$(get_libdir)/misc/xscreensaver \
82 + --disable-dependency-tracking \
83 + --disable-static \
84 + --enable-shared \
85 + --with-configdir=/usr/share/xscreensaver/config
86 +}
87 +
88 +pkg_postinst() {
89 + local xssconf="${ROOT}usr/share/X11/app-defaults/XScreenSaver"
90 +
91 + if [ -f ${xssconf} ]; then
92 + sed -e '/*programs:/a\
93 + GL: \"Cyclone\" cyclone --root \\n\\\
94 + GL: \"Euphoria\" euphoria --root \\n\\\
95 + GL: \"Fieldlines\" fieldlines --root \\n\\\
96 + GL: \"Flocks\" flocks --root \\n\\\
97 + GL: \"Flux\" flux --root \\n\\\
98 + GL: \"Helios\" helios --root \\n\\\
99 + GL: \"Hyperspace\" hyperspace --root \\n\\\
100 + GL: \"Lattice\" lattice --root \\n\\\
101 + GL: \"Plasma\" plasma --root \\n\\\
102 + GL: \"Pixelcity\" pixelcity --root \\n\\\
103 + GL: \"Skyrocket\" skyrocket --root \\n\\\
104 + GL: \"Solarwinds\" solarwinds --root \\n\\\
105 + GL: \"Colorfire\" colorfire --root \\n\\\
106 + GL: \"Hufos Smoke\" hufo_smoke --root \\n\\\
107 + GL: \"Hufos Tunnel\" hufo_tunnel --root \\n\\\
108 + GL: \"Sundancer2\" sundancer2 --root \\n\\\
109 + GL: \"BioF\" biof --root \\n\\\
110 + GL: \"BusySpheres\" busyspheres --root \\n\\\
111 + GL: \"SpirographX\" spirographx --root \\n\\\
112 + GL: \"MatrixView\" matrixview --root \\n\\\
113 + GL: \"Lorenz\" lorenz --root \\n\\\
114 + GL: \"Drempels\" drempels --root \\n\\\
115 + GL: \"Feedback\" feedback --root \\n\\' \
116 + -i ${xssconf} || die
117 + fi
118 +}
119 +
120 +pkg_postrm() {
121 + local xssconf="${ROOT}usr/share/X11/app-defaults/XScreenSaver"
122 +
123 + if [ -f ${xssconf} ]; then
124 + sed \
125 + -e '/\"Cyclone\" cyclone/d' \
126 + -e '/\"Euphoria\" euphoria/d' \
127 + -e '/\"Fieldlines\" fieldlines/d' \
128 + -e '/\"Flocks\" flocks/d' \
129 + -e '/\"Flux\" flux/d' \
130 + -e '/\"Helios\" helios/d' \
131 + -e '/\"Hyperspace\" hyperspace/d' \
132 + -e '/\"Lattice\" lattice/d' \
133 + -e '/\"Plasma\" plasma/d' \
134 + -e '/\"Pixelcity\" pixelcity/d' \
135 + -e '/\"Skyrocket\" skyrocket/d' \
136 + -e '/\"Solarwinds\" solarwinds/d' \
137 + -e '/\"Colorfire\" colorfire/d' \
138 + -e '/\"Hufos Smoke\" hufo_smoke/d' \
139 + -e '/\"Hufos Tunnel\" hufo_tunnel/d' \
140 + -e '/\"Sundancer2\" sundancer2/d' \
141 + -e '/\"BioF\" biof/d' \
142 + -e '/\"BusySpheres\" busyspheres/d' \
143 + -e '/\"SpirographX\" spirographx/d' \
144 + -e '/\"MatrixView\" matrixview/d' \
145 + -e '/\"Lorenz\" lorenz/d' \
146 + -e '/\"Drempels\" drempels/d' \
147 + -e '/\"Feedback\" feedback/d' \
148 + -i ${xssconf} || die
149 + fi
150 +}