summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2017-06-27 00:51:46 +0200
committerPatrice Clement <monsieurp@gentoo.org>2017-06-27 00:53:21 +0200
commit25d8d3321e71b88f83a431215c8f3cfe591cdea0 (patch)
tree51638669decb408b9d05f370f665febf7075fc58 /sys-apps
parentsys-power/hibernate-script: fix urls (diff)
downloadgentoo-25d8d3321e71b88f83a431215c8f3cfe591cdea0.tar.gz
gentoo-25d8d3321e71b88f83a431215c8f3cfe591cdea0.tar.bz2
gentoo-25d8d3321e71b88f83a431215c8f3cfe591cdea0.zip
sys-apps/dog: EAPI 6 bump.
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/dog/dog-1.7-r6.ebuild43
-rw-r--r--sys-apps/dog/files/1.7-manpage-touchup.patch4
-rw-r--r--sys-apps/dog/files/dog-1.7-64bit-goodness.patch4
-rw-r--r--sys-apps/dog/files/dog-1.7-check-ctime.diff4
-rw-r--r--sys-apps/dog/files/dog-1.7-strfry.patch4
5 files changed, 51 insertions, 8 deletions
diff --git a/sys-apps/dog/dog-1.7-r6.ebuild b/sys-apps/dog/dog-1.7-r6.ebuild
new file mode 100644
index 000000000000..9428960145c5
--- /dev/null
+++ b/sys-apps/dog/dog-1.7-r6.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Dog is better than cat"
+# the best HOMEPAGE we have.
+HOMEPAGE="https://packages.gentoo.org/package/sys-apps/dog"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc64-solaris"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-check-ctime.diff
+ "${FILESDIR}"/${PV}-manpage-touchup.patch
+ "${FILESDIR}"/${P}-64bit-goodness.patch
+ "${FILESDIR}"/${P}-strfry.patch
+)
+
+src_prepare() {
+ default
+
+ if [[ "${CHOST}" == *-solaris* ]]; then
+ sed -i '/gcc.*-o dog/s/$/ -lsocket -lnsl/' \
+ Makefile || die "sed Makefile failed"
+ fi
+
+ sed -i \
+ -e 's,^CFLAGS,#CFLAGS,' \
+ -e "s,gcc,$(tc-getCC)," \
+ -e 's:-o dog:$(LDFLAGS) -o dog:g' \
+ Makefile || die "sed Makefile failed"
+}
+
+src_install() {
+ dobin "${PN}"
+ doman "${PN}.1"
+ einstalldocs
+}
diff --git a/sys-apps/dog/files/1.7-manpage-touchup.patch b/sys-apps/dog/files/1.7-manpage-touchup.patch
index 324c82696705..17400a5207f5 100644
--- a/sys-apps/dog/files/1.7-manpage-touchup.patch
+++ b/sys-apps/dog/files/1.7-manpage-touchup.patch
@@ -4,8 +4,8 @@ so let's fix it.
http://bugs.gentoo.org/show_bug.cgi?id=69660
---- dog.1
-+++ dog.1
+--- a/dog.1
++++ b/dog.1
@@ -8,3 +8,3 @@
.B dog
-[\-AbBeEnstTuv] [\-w cols] [\-l lines]
diff --git a/sys-apps/dog/files/dog-1.7-64bit-goodness.patch b/sys-apps/dog/files/dog-1.7-64bit-goodness.patch
index 9143761852c1..5f053ace0feb 100644
--- a/sys-apps/dog/files/dog-1.7-64bit-goodness.patch
+++ b/sys-apps/dog/files/dog-1.7-64bit-goodness.patch
@@ -1,6 +1,6 @@
diff -ur dog-1.7/dog.c dog-1.7-64bit/dog.c
---- dog-1.7/dog.c 2000-06-21 18:04:43.000000000 +0200
-+++ dog-1.7-64bit/dog.c 2005-05-23 10:40:58.613766328 +0200
+--- a/dog.c 2000-06-21 18:04:43.000000000 +0200
++++ b/dog.c 2005-05-23 10:40:58.613766328 +0200
@@ -38,22 +38,13 @@
#include <limits.h>
#include <netdb.h>
diff --git a/sys-apps/dog/files/dog-1.7-check-ctime.diff b/sys-apps/dog/files/dog-1.7-check-ctime.diff
index 43f8aa0a8c91..03442b8e45d5 100644
--- a/sys-apps/dog/files/dog-1.7-check-ctime.diff
+++ b/sys-apps/dog/files/dog-1.7-check-ctime.diff
@@ -1,6 +1,6 @@
diff --exclude='*~' --exclude='.*' -I '# $Id$
---- dog-1.7.orig/dog.c 2005-05-13 08:01:37.000000000 -0400
-+++ dog-1.7/dog.c 2005-05-13 08:30:38.000000000 -0400
+--- a/dog.c 2005-05-13 08:01:37.000000000 -0400
++++ b/dog.c 2005-05-13 08:30:38.000000000 -0400
@@ -36,6 +36,7 @@
#include <string.h>
#include "getopt.h"
diff --git a/sys-apps/dog/files/dog-1.7-strfry.patch b/sys-apps/dog/files/dog-1.7-strfry.patch
index b62b815aed50..cfdae3e787ed 100644
--- a/sys-apps/dog/files/dog-1.7-strfry.patch
+++ b/sys-apps/dog/files/dog-1.7-strfry.patch
@@ -1,7 +1,7 @@
See Gentoo bug 251675. Upstream appears to be dead.
---- dog.c.orig 2009-04-09 23:29:16.307661147 -0500
-+++ dog.c 2009-04-09 23:30:11.353664890 -0500
+--- a/dog.c 2009-04-09 23:29:16.307661147 -0500
++++ b/dog.c 2009-04-09 23:30:11.353664890 -0500
@@ -552,7 +552,7 @@
// strfry()