summaryrefslogtreecommitdiff
blob: bd371504e0545c120ebdc91c0a510531e435c076 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-misc/fortune-mod-slackware/fortune-mod-slackware-1.12.ebuild,v 1.1 2006/03/15 20:42:44 tupone Exp $

# this ebuild now uses the offensive flag since AOLS
# is not exactly 'G' rated :)

MY_PN=slack-fortunes-all
DESCRIPTION="This fortune mod is a collection of quotes seen on AOLS (Slackware)"
HOMEPAGE="http://fauxascii.com/linux/mod_quotes.html"
SRC_URI="http://fauxascii.com/linux/data/${MY_PN}-${PV}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="offensive"

DEPEND="games-misc/fortune-mod"

S=${WORKDIR}

pkg_setup() {
	if ! use offensive ; then
	  einfo "These fortunes have offensive content. Enable offensive USE Flag"
	  einfo "ex: USE=\"offensive\" emerge ${PN}"
	  exit 1
	fi
}

src_unpack() {
	unpack ${A}
	# get rid of md5 checks and one silly extra file
	rm -f *.md5 *~
}

src_install() {
	insinto /usr/share/fortune
	doins * || die "doins failed"
}