1 |
commit: 25d8d3321e71b88f83a431215c8f3cfe591cdea0 |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 26 22:51:46 2017 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 26 22:53:21 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25d8d332 |
7 |
|
8 |
sys-apps/dog: EAPI 6 bump. |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.1 |
11 |
|
12 |
sys-apps/dog/dog-1.7-r6.ebuild | 43 +++++++++++++++++++++++++ |
13 |
sys-apps/dog/files/1.7-manpage-touchup.patch | 4 +-- |
14 |
sys-apps/dog/files/dog-1.7-64bit-goodness.patch | 4 +-- |
15 |
sys-apps/dog/files/dog-1.7-check-ctime.diff | 4 +-- |
16 |
sys-apps/dog/files/dog-1.7-strfry.patch | 4 +-- |
17 |
5 files changed, 51 insertions(+), 8 deletions(-) |
18 |
|
19 |
diff --git a/sys-apps/dog/dog-1.7-r6.ebuild b/sys-apps/dog/dog-1.7-r6.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..9428960145c |
22 |
--- /dev/null |
23 |
+++ b/sys-apps/dog/dog-1.7-r6.ebuild |
24 |
@@ -0,0 +1,43 @@ |
25 |
+# Copyright 1999-2017 Gentoo Foundation |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=6 |
29 |
+ |
30 |
+inherit toolchain-funcs |
31 |
+ |
32 |
+DESCRIPTION="Dog is better than cat" |
33 |
+# the best HOMEPAGE we have. |
34 |
+HOMEPAGE="https://packages.gentoo.org/package/sys-apps/dog" |
35 |
+SRC_URI="mirror://gentoo/${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="GPL-2" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc64-solaris" |
40 |
+ |
41 |
+PATCHES=( |
42 |
+ "${FILESDIR}"/${P}-check-ctime.diff |
43 |
+ "${FILESDIR}"/${PV}-manpage-touchup.patch |
44 |
+ "${FILESDIR}"/${P}-64bit-goodness.patch |
45 |
+ "${FILESDIR}"/${P}-strfry.patch |
46 |
+) |
47 |
+ |
48 |
+src_prepare() { |
49 |
+ default |
50 |
+ |
51 |
+ if [[ "${CHOST}" == *-solaris* ]]; then |
52 |
+ sed -i '/gcc.*-o dog/s/$/ -lsocket -lnsl/' \ |
53 |
+ Makefile || die "sed Makefile failed" |
54 |
+ fi |
55 |
+ |
56 |
+ sed -i \ |
57 |
+ -e 's,^CFLAGS,#CFLAGS,' \ |
58 |
+ -e "s,gcc,$(tc-getCC)," \ |
59 |
+ -e 's:-o dog:$(LDFLAGS) -o dog:g' \ |
60 |
+ Makefile || die "sed Makefile failed" |
61 |
+} |
62 |
+ |
63 |
+src_install() { |
64 |
+ dobin "${PN}" |
65 |
+ doman "${PN}.1" |
66 |
+ einstalldocs |
67 |
+} |
68 |
|
69 |
diff --git a/sys-apps/dog/files/1.7-manpage-touchup.patch b/sys-apps/dog/files/1.7-manpage-touchup.patch |
70 |
index 324c8269670..17400a5207f 100644 |
71 |
--- a/sys-apps/dog/files/1.7-manpage-touchup.patch |
72 |
+++ b/sys-apps/dog/files/1.7-manpage-touchup.patch |
73 |
@@ -4,8 +4,8 @@ so let's fix it. |
74 |
|
75 |
http://bugs.gentoo.org/show_bug.cgi?id=69660 |
76 |
|
77 |
---- dog.1 |
78 |
-+++ dog.1 |
79 |
+--- a/dog.1 |
80 |
++++ b/dog.1 |
81 |
@@ -8,3 +8,3 @@ |
82 |
.B dog |
83 |
-[\-AbBeEnstTuv] [\-w cols] [\-l lines] |
84 |
|
85 |
diff --git a/sys-apps/dog/files/dog-1.7-64bit-goodness.patch b/sys-apps/dog/files/dog-1.7-64bit-goodness.patch |
86 |
index 9143761852c..5f053ace0fe 100644 |
87 |
--- a/sys-apps/dog/files/dog-1.7-64bit-goodness.patch |
88 |
+++ b/sys-apps/dog/files/dog-1.7-64bit-goodness.patch |
89 |
@@ -1,6 +1,6 @@ |
90 |
diff -ur dog-1.7/dog.c dog-1.7-64bit/dog.c |
91 |
---- dog-1.7/dog.c 2000-06-21 18:04:43.000000000 +0200 |
92 |
-+++ dog-1.7-64bit/dog.c 2005-05-23 10:40:58.613766328 +0200 |
93 |
+--- a/dog.c 2000-06-21 18:04:43.000000000 +0200 |
94 |
++++ b/dog.c 2005-05-23 10:40:58.613766328 +0200 |
95 |
@@ -38,22 +38,13 @@ |
96 |
#include <limits.h> |
97 |
#include <netdb.h> |
98 |
|
99 |
diff --git a/sys-apps/dog/files/dog-1.7-check-ctime.diff b/sys-apps/dog/files/dog-1.7-check-ctime.diff |
100 |
index 43f8aa0a8c9..03442b8e45d 100644 |
101 |
--- a/sys-apps/dog/files/dog-1.7-check-ctime.diff |
102 |
+++ b/sys-apps/dog/files/dog-1.7-check-ctime.diff |
103 |
@@ -1,6 +1,6 @@ |
104 |
diff --exclude='*~' --exclude='.*' -I '# $Id$ |
105 |
---- dog-1.7.orig/dog.c 2005-05-13 08:01:37.000000000 -0400 |
106 |
-+++ dog-1.7/dog.c 2005-05-13 08:30:38.000000000 -0400 |
107 |
+--- a/dog.c 2005-05-13 08:01:37.000000000 -0400 |
108 |
++++ b/dog.c 2005-05-13 08:30:38.000000000 -0400 |
109 |
@@ -36,6 +36,7 @@ |
110 |
#include <string.h> |
111 |
#include "getopt.h" |
112 |
|
113 |
diff --git a/sys-apps/dog/files/dog-1.7-strfry.patch b/sys-apps/dog/files/dog-1.7-strfry.patch |
114 |
index b62b815aed5..cfdae3e787e 100644 |
115 |
--- a/sys-apps/dog/files/dog-1.7-strfry.patch |
116 |
+++ b/sys-apps/dog/files/dog-1.7-strfry.patch |
117 |
@@ -1,7 +1,7 @@ |
118 |
See Gentoo bug 251675. Upstream appears to be dead. |
119 |
|
120 |
---- dog.c.orig 2009-04-09 23:29:16.307661147 -0500 |
121 |
-+++ dog.c 2009-04-09 23:30:11.353664890 -0500 |
122 |
+--- a/dog.c 2009-04-09 23:29:16.307661147 -0500 |
123 |
++++ b/dog.c 2009-04-09 23:30:11.353664890 -0500 |
124 |
@@ -552,7 +552,7 @@ |
125 |
|
126 |
// strfry() |