summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2009-05-01 18:41:58 +0000
committerPatrick Lauer <patrick@gentoo.org>2009-05-01 18:41:58 +0000
commitb1af4f5e87cd8509f3bdb43e1021c3695b3e8b42 (patch)
tree0114cf4771f8319985a06aee79cca38eac73da31 /x11-misc
parentInitial import from sunrise. Fixes #237107 (diff)
downloadgentoo-2-b1af4f5e87cd8509f3bdb43e1021c3695b3e8b42.tar.gz
gentoo-2-b1af4f5e87cd8509f3bdb43e1021c3695b3e8b42.tar.bz2
gentoo-2-b1af4f5e87cd8509f3bdb43e1021c3695b3e8b42.zip
Fixing bits for media-gfx/flam3 addition. Ebuild fixes by David Bitseff. Dropping sparc keyword until we can get flam3 keyworded there.
(Portage version: 2.2_rc31/cvs/Linux x86_64)
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/electricsheep/ChangeLog11
-rw-r--r--x11-misc/electricsheep/electricsheep-2.6.8-r3.ebuild87
2 files changed, 96 insertions, 2 deletions
diff --git a/x11-misc/electricsheep/ChangeLog b/x11-misc/electricsheep/ChangeLog
index 125c4e19e496..cc4cc16e72f5 100644
--- a/x11-misc/electricsheep/ChangeLog
+++ b/x11-misc/electricsheep/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for x11-misc/electricsheep
-# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/electricsheep/ChangeLog,v 1.42 2009/04/29 08:43:51 patrick Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/electricsheep/ChangeLog,v 1.43 2009/05/01 18:41:58 patrick Exp $
+
+*electricsheep-2.6.8-r3 (01 May 2009)
+
+ 01 May 2009; Patrick Lauer <patrick@gentoo.org>
+ +electricsheep-2.6.8-r3.ebuild:
+ Fixing bits for media-gfx/flam3 addition. Ebuild fixes by David Bitseff.
+ Dropping sparc keyword until we can get flam3 keyworded there.
*electricsheep-2.6.8-r2 (27 Apr 2009)
diff --git a/x11-misc/electricsheep/electricsheep-2.6.8-r3.ebuild b/x11-misc/electricsheep/electricsheep-2.6.8-r3.ebuild
new file mode 100644
index 000000000000..e45a0bbb4f2a
--- /dev/null
+++ b/x11-misc/electricsheep/electricsheep-2.6.8-r3.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/electricsheep/electricsheep-2.6.8-r3.ebuild,v 1.1 2009/05/01 18:41:58 patrick Exp $
+
+inherit eutils flag-o-matic kde-functions
+
+DESCRIPTION="realize the collective dream of sleeping computers from all over the internet"
+HOMEPAGE="http://electricsheep.org/"
+SRC_URI="http://electricsheep.org/${P}.tar.gz"
+IUSE="kde"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="x11-libs/libXv
+ x11-libs/libICE
+ x11-libs/libSM
+ dev-libs/expat
+ net-misc/curl
+ media-gfx/flam3
+ media-libs/jpeg
+ media-libs/libpng
+ media-libs/libsdl
+ sys-libs/zlib"
+
+DEPEND="${RDEPEND}
+ x11-proto/xextproto
+ x11-libs/libXt
+ sys-apps/groff
+ dev-lang/perl
+ media-libs/libmpeg2
+ sys-devel/libtool"
+
+src_unpack() {
+ unpack ${A}
+ # Detect PIC requirement from direct from compiler instead of
+ # macro PIC.
+ sed -i -e 's/def PIC/def __PIC__/' "${S}/mpeg2dec/src/cpu_accel.c"
+ epatch "${FILESDIR}"/${P}-cflagsfix.patch
+ epatch "${FILESDIR}"/${P}-multihead.patch
+ #cd "${S}"
+ #eautoreconf
+}
+
+# Also detects and ties in sys-libs/slang, media-libs/aalib media-libs/svgalib and nas
+# if they exist on the user machine although these aren't deps.
+
+src_compile() {
+ econf
+ find -name Makefile -exec sed -i -e 's/-Werror//' {} \;
+ emake || die
+}
+
+src_install() {
+
+ # prevent writing for xscreensaver
+ sed -i "s/^install-data-local:$/install-data-local:\nmy-install-data-local:/" \
+ Makefile || die "sed Makefile failed"
+
+ # install the xscreensaver config file
+ insinto /usr/share/xscreensaver/config
+ doins electricsheep.xml
+
+ emake install DESTDIR="${D}" || die "make install failed"
+
+ dodir /usr/share/electricsheep
+ if [ ! -f /usr/share/electricsheep/electricsheep-uniqueid ]
+ then
+ "${D}/usr/bin/uniqueid" > \
+ "${D}/usr/share/electricsheep/electricsheep-uniqueid"
+ fi
+
+ if use kde;
+ then
+ set-kdedir
+ insinto /usr/share/applications
+ doins "${FILESDIR}/${PN}.desktop"
+ insinto "${KDEDIR}//share/applnk/System/ScreenSavers"
+ doins "${FILESDIR}/${PN}.desktop"
+ fi
+
+ # remove header files that are installed over libmpeg2
+ rm -rf "${D}/usr/include"
+
+ # remove files installed by flam3
+ rm -rf "${D}/usr/lib"* "${D}/usr/bin/flam3-"*
+}