diff options
author | Alastair Tse <liquidx@gentoo.org> | 2003-11-22 14:39:16 +0000 |
---|---|---|
committer | Alastair Tse <liquidx@gentoo.org> | 2003-11-22 14:39:16 +0000 |
commit | 7d20d1089ff30f782e4e5947b11d89f19307b3b2 (patch) | |
tree | 8dd3665741ba58e8800b9e5fb0f8ff10b4f21bd3 /x11-misc/rss-glx | |
parent | add openal support, cleanup postinst/rm (diff) | |
download | historical-7d20d1089ff30f782e4e5947b11d89f19307b3b2.tar.gz historical-7d20d1089ff30f782e4e5947b11d89f19307b3b2.tar.bz2 historical-7d20d1089ff30f782e4e5947b11d89f19307b3b2.zip |
add openal support, cleanup postinst/rm
Diffstat (limited to 'x11-misc/rss-glx')
-rw-r--r-- | x11-misc/rss-glx/Manifest | 6 | ||||
-rw-r--r-- | x11-misc/rss-glx/rss-glx-0.7.6.ebuild | 26 |
2 files changed, 17 insertions, 15 deletions
diff --git a/x11-misc/rss-glx/Manifest b/x11-misc/rss-glx/Manifest index 4f928e27e120..acaa45c3593f 100644 --- a/x11-misc/rss-glx/Manifest +++ b/x11-misc/rss-glx/Manifest @@ -1,10 +1,8 @@ -MD5 2200182572446322bb21e30b31f7ff09 ChangeLog 3003 +MD5 cd0ef86df411eee28de9718a3a0293dc ChangeLog 3134 MD5 77ca606d4e2b3bbbc172c408468e0156 metadata.xml 280 MD5 046e68c3cc0b489e1f270202f3fff210 rss-glx-0.7.4-r1.ebuild 3732 -MD5 270786c06a56dd66841bf0df33e69e30 rss-glx-0.7.6-r1.ebuild 4131 -MD5 052a67a76d6574634c8046c11794f113 rss-glx-0.7.6.ebuild 4070 +MD5 bb8496ba3dcc37e674e34a5c9427440c rss-glx-0.7.6.ebuild 4131 MD5 55ae7a0c63825a631b147a3c34f1131b files/digest-rss-glx-0.7.4-r1 67 MD5 c569bd57d6615d7b3d0d66db78c86bb9 files/digest-rss-glx-0.7.6 67 -MD5 c569bd57d6615d7b3d0d66db78c86bb9 files/digest-rss-glx-0.7.6-r1 67 MD5 0bb415e3a8164c510eaa9369bd233c19 files/rss-glx-0.7.4-gcc33.patch 10901 MD5 2f47a2d4b9947332e2817ec81f2ec0d7 files/rss-glx-0.7.4-kdedesktop.patch 833 diff --git a/x11-misc/rss-glx/rss-glx-0.7.6.ebuild b/x11-misc/rss-glx/rss-glx-0.7.6.ebuild index ea604ef8200d..5a657cd5e160 100644 --- a/x11-misc/rss-glx/rss-glx-0.7.6.ebuild +++ b/x11-misc/rss-glx/rss-glx-0.7.6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/rss-glx/rss-glx-0.7.6.ebuild,v 1.3 2003/09/29 22:54:16 liquidx Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/rss-glx/rss-glx-0.7.6.ebuild,v 1.4 2003/11/22 14:39:10 liquidx Exp $ inherit flag-o-matic filter-flags -fPIC @@ -15,14 +15,15 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc" -IUSE="kde sse 3dnow" +IUSE="kde sse 3dnow openal" DEPEND="virtual/x11 virtual/opengl >=sys-apps/sed-4 >=media-gfx/imagemagick-5.5.7 kde? ( kde-base/kdeartwork ) - !kde? ( x11-misc/xscreensaver )" + !kde? ( x11-misc/xscreensaver ) + openal? ( media-libs/openal )" src_unpack() { unpack ${A} @@ -50,6 +51,7 @@ src_compile() { econf \ `use_enable sse` \ `use_enable 3dnow` \ + `use_enable openal sound` \ ${myconf} || die emake || die } @@ -63,11 +65,11 @@ src_install() { } pkg_postinst() { - if [ -f ${ROOT}/usr/X11R6/lib/X11/app-defaults/XScreenSaver ]; then - [ -n "`grep 'euphoria --root' /usr/X11R6/lib/X11/app-defaults/XScreenSaver`" ] && return 0 - einfo "Adding Really Slick Screensavers to XScreenSaver" + local XSCREENSAVER_CONF="${ROOT}/usr/X11R6/lib/X11/app-defaults/XScreenSaver" - sed -i '/*programs:/a\ + if [ -f ${XSCREENSAVER_CONF} -a -z "`grep 'Euphoria' ${XSCREENSAVER_CONF}`" ]; then + einfo "Adding Really Slick Screensavers to XScreenSaver" + sed -e '/*programs:/a\ GL: \"Cyclone\" cyclone --root \\n\\\ GL: \"Euphoria\" euphoria --root \\n\\\ GL: \"Fieldlines\" fieldlines --root \\n\\\ @@ -86,7 +88,7 @@ pkg_postinst() { GL: \"MatrixView\" matrixview --root \\n\\\ GL: \"Spirographx\" spirographx --root \\n\\\ GL: \"BusySpheres\" busyspheres --root \\n\\' \ - ${ROOT}/usr/X11R6/lib/X11/app-defaults/XScreenSaver + -i ${XSCREENSAVER_CONF} else einfo "Unable to add these to XScreenSaver configuration" @@ -96,8 +98,10 @@ pkg_postinst() { } pkg_postrm() { + local XSCREENSAVER_CONF="${ROOT}/usr/X11R6/lib/X11/app-defaults/XScreenSaver" + has_version rss-glx && return 0 - if [ -f ${ROOT}/usr/X11R6/lib/X11/app-defaults/XScreenSaver ]; then + if [ -f ${XSCREENSAVER_CONF} ]; then einfo "Removing Really Slick Screensavers from XScreenSaver configuration." sed \ -e '/\"Cyclone\" cyclone/d' \ @@ -117,7 +121,7 @@ pkg_postrm() { -e '/\"BioF\" biof/d' \ -e '/\"MatrixView\" matrixview/d' \ -e '/\"Spirographx\" spirographx/d' \ - -e '/\"BusySpheres\" busyspheres/d' -i \ - ${ROOT}/usr/X11R6/lib/X11/app-defaults/XScreenSaver + -e '/\"BusySpheres\" busyspheres/d' \ + -i ${XSCREENSAVER_CONF} fi } |