mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-misc/cowsay: misc fixes
* 3.0.7 -> 3.7.0 for patch versions (seems like a typo) * use prefix= instead of sed for prefix, not much better but it's the normal way * ... add sed for man page's %PREFIX% that the Makefile doesn't handle * fix mech-and-cow lack of extension, patch attempted to do a rename but a normal non-git patch can't do this Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
DESCRIPTION="Configurable talking ASCII cow (and other characters)"
|
||||
HOMEPAGE="https://cowsay.diamonds https://github.com/cowsay-org/cowsay"
|
||||
SRC_URI="https://github.com/cowsay-org/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="https://github.com/cowsay-org/cowsay/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
@@ -15,12 +15,21 @@ RDEPEND="dev-lang/perl"
|
||||
BDEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-3.0.7-head-in.patch"
|
||||
"${FILESDIR}/${PN}-3.0.7-mech-and-cow.patch"
|
||||
"${FILESDIR}/${P}-head-in.patch"
|
||||
"${FILESDIR}/${P}-mech-and-cow.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i 's#/usr/local#/${EPREFIX}/usr#' Makefile || die
|
||||
# no |g leaves one %PREFIX% but it makes sense in context
|
||||
sed -i "s|%PREFIX%|${EPREFIX}/usr|" cowsay.1 || die
|
||||
|
||||
# patch fixes the file but need extension to be recognized
|
||||
mv share/cows/mech-and-cow{,.cow} || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" prefix="${EPREFIX}/usr" install
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
--- a/share/cows/mech-and-cow
|
||||
+++ b/share/cows/mech-and-cow.cow
|
||||
+++ b/share/cows/mech-and-cow
|
||||
@@ -1,3 +1,5 @@
|
||||
+$the_cow = <<EOC;
|
||||
+${thouts}
|
||||
Reference in New Issue
Block a user