Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 134351

Summary: fortune X and ebuild
Product: Gentoo Linux Reporter: Floréal M <flop>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Floréal M 2006-05-25 12:55:28 UTC
Hello, i just search a x fortune for my window manager ... i found nothing on portage ... so i've just patched the fortune mod ebuild , in order to have an X use flag and a little script depending on xmessage. Since Xorg-7 xmessage has is own ebuild ... so this ebuild depends on it ...

have a nice fortune day.

Flor
Comment 1 Floréal M 2006-05-25 12:55:28 UTC
Hello, i just search a x fortune for my window manager ... i found nothing on portage ... so i've just patched the fortune mod ebuild , in order to have an X use flag and a little script depending on xmessage. Since Xorg-7 xmessage has is own ebuild ... so this ebuild depends on it ...

have a nice fortune day.

Floréal

+++ xfortune    2006-05-25 21:21:17.000000000 +0200
@@ -0,0 +1,4 @@
+#!/bin/sh
+while ! fortune $@ | xmessage -buttons Ok:0,Again:1 -default Again -timeout 60 -file - ; do
+       echo > /dev/null
+done

--- fortune-mod-1.99.1-r1.ebuild        2006-05-25 21:46:42.000000000 +0200
+++ fortune-mod-1.99.1-r3.ebuild        2006-05-25 21:36:32.000000000 +0200
@@ -11,10 +11,11 @@
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="alpha amd64 hppa mips ppc ~ppc-macos ppc64 sparc x86"
-IUSE="offensive"
+IUSE="offensive X"

 DEPEND="virtual/libc
-       app-text/recode"
+       app-text/recode
+       X? ( x11-apps/xmessage )"

 src_unpack() {
        unpack ${A}
@@ -62,5 +63,6 @@
                install \
                || die "make install failed"

+       dobin ${FILESDIR}/xfortune
        dodoc ChangeLog INDEX Notes Offensive README TODO cookie-files
 }
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2006-05-25 13:03:32 UTC
No thanks.  We're not going to add deps and a hackish script to portage for your convenience.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-05-25 13:06:12 UTC
This is the sort of thing that should be brought up with the upstream developers.  We try to not change functionality of a package like this, and we definitely don't want to be maintaining our own little Gentoo "fork" of these packages.  We'll gladly add the X USE flag if there's upstream support for an X-based fortune.