sys-apps/dog: EAPI 6 bump.
authorPatrice Clement <monsieurp@gentoo.org>
Mon, 26 Jun 2017 22:51:46 +0000 (00:51 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Mon, 26 Jun 2017 22:53:21 +0000 (00:53 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.1

sys-apps/dog/dog-1.7-r6.ebuild [new file with mode: 0644]
sys-apps/dog/files/1.7-manpage-touchup.patch
sys-apps/dog/files/dog-1.7-64bit-goodness.patch
sys-apps/dog/files/dog-1.7-check-ctime.diff
sys-apps/dog/files/dog-1.7-strfry.patch

diff --git a/sys-apps/dog/dog-1.7-r6.ebuild b/sys-apps/dog/dog-1.7-r6.ebuild
new file mode 100644 (file)
index 0000000..9428960
--- /dev/null
@@ -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
+}
index 324c82696705720b31e153e3c5c41d8f3c8ee482..17400a5207f5359b72bd8f963c4cf73fa9d3d273 100644 (file)
@@ -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] 
index 9143761852c12565de1d73e848b87100acbeeb29..5f053ace0feb8ab3c958fb19e2a761263a5ff501 100644 (file)
@@ -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>
index 43f8aa0a8c91e890140ca0344e3197c0363b3907..03442b8e45d5b450985615f6872a4ddd69f49c8e 100644 (file)
@@ -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"
index b62b815aed5078e8604dc48209696e10905674c9..cfdae3e787edc6e1f7c14fdd12fcc82570ee290d 100644 (file)
@@ -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()