You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.2 KiB
51 lines
1.2 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
13 years ago
|
|
||
5 years ago
|
DESCRIPTION="Configurable talking ASCII cow (and other characters)"
|
||
|
HOMEPAGE="https://github.com/tnalpgge/rank-amateur-cowsay"
|
||
|
SRC_URI="https://github.com/tnalpgge/rank-amateur-${PN}/archive/${P}.tar.gz"
|
||
13 years ago
|
|
||
5 years ago
|
LICENSE="GPL-3"
|
||
13 years ago
|
SLOT="0"
|
||
5 years ago
|
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc64 ~x86 ~x64-solaris"
|
||
13 years ago
|
|
||
|
RDEPEND=">=dev-lang/perl-5"
|
||
5 years ago
|
BDEPEND="${RDEPEND}"
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}/${P}-tongue.patch"
|
||
|
"${FILESDIR}/${P}-mech.patch"
|
||
|
"${FILESDIR}/${P}-utf8.patch"
|
||
|
"${FILESDIR}/${P}-version.patch" )
|
||
|
|
||
|
S="${WORKDIR}/rank-amateur-${PN}-${P}"
|
||
13 years ago
|
|
||
|
src_prepare() {
|
||
|
sed -i \
|
||
11 years ago
|
-e "1 c\#!${EPREFIX}/usr/bin/perl"\
|
||
13 years ago
|
-e 's/\$version/\$VERSION/g'\
|
||
11 years ago
|
-e "s:%PREFIX%/share/cows:${EPREFIX}/usr/share/${P}/cows:" \
|
||
13 years ago
|
-e '/getopts/ i\$Getopt::Std::STANDARD_HELP_VERSION=1;' cowsay \
|
||
|
|| die "sed cowsay failed"
|
||
|
sed -i \
|
||
11 years ago
|
-e "s|%PREFIX%/share/cows|${EPREFIX}/usr/share/${P}/cows|" cowsay.1 \
|
||
13 years ago
|
|| die "sed cowsay.1 failed"
|
||
5 years ago
|
|
||
|
default
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
./install.sh "${D}"
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
10 years ago
|
dobin cowsay
|
||
13 years ago
|
doman cowsay.1
|
||
|
dosym cowsay /usr/bin/cowthink
|
||
|
dosym cowsay.1 /usr/share/man/man1/cowthink.1
|
||
5 years ago
|
insinto /usr/share/${P}
|
||
|
doins -r cows
|
||
|
einstalldocs
|
||
13 years ago
|
}
|