summaryrefslogtreecommitdiff
blob: 74f435d8cb419e5bc0d9244b57c1efce3575832c (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

DESCRIPTION="Quotes from OpenBSD founder Theo de Raadt"
HOMEPAGE="http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/mg/theo.c"
# split off from app-editors/mg
SRC_URI="http://homepage.boetes.org/software/mg/mg-${PV}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="games-misc/fortune-mod"
RDEPEND="${DEPEND}"

S="${WORKDIR}/mg-${PV}"

src_configure() { :; }

src_compile() {
	sed -e '1,/talk.*{/d;/^}/,$d;s/^[ \t]*"\(.*\)",\?[ \t]*$/\1\n%/' \
		theo.c | fold -s -w 70 >theo-de-raadt || die
	strfile theo-de-raadt || die
}

src_install() {
	insinto /usr/share/fortune
	doins theo-de-raadt{,.dat}
}