2018-03-31 10:54:56 +03:00
|
|
|
# Copyright 1999-2018 Gentoo Foundation
|
2011-11-09 11:33:19 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2017-11-26 15:48:23 +03:00
|
|
|
|
2015-02-06 01:37:01 +03:00
|
|
|
EAPI=5
|
2011-11-09 11:33:19 +04:00
|
|
|
# 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"
|
2018-07-22 21:57:45 +03:00
|
|
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc64 ~sh ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
2011-11-09 11:33:19 +04:00
|
|
|
IUSE="offensive"
|
|
|
|
|
|
|
|
RDEPEND="games-misc/fortune-mod"
|
|
|
|
|
|
|
|
S=${WORKDIR}
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
if ! use offensive ; then
|
|
|
|
elog "These fortunes have offensive content. Enable offensive USE Flag"
|
|
|
|
elog "ex: USE=\"offensive\" emerge ${PN}"
|
|
|
|
elog " or add to package.use file: games-misc/fortune-mod-slackware offensive"
|
|
|
|
die "Setting the offensive use flag is required for this package"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2015-02-06 01:37:01 +03:00
|
|
|
src_prepare() {
|
2011-11-09 11:33:19 +04:00
|
|
|
# get rid of md5 checks and extraneous files and backups
|
|
|
|
rm -f index.* *.md5 *~
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
insinto /usr/share/fortune
|
2015-02-06 01:37:01 +03:00
|
|
|
doins *
|
2011-11-09 11:33:19 +04:00
|
|
|
}
|