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
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 }
No thanks. We're not going to add deps and a hackish script to portage for your convenience.
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.