1 |
commit: 0c76e27aa23c1e251ea6670e725710f2116d03b8 |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Sep 30 11:54:37 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 6 22:33:10 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c76e27a |
7 |
|
8 |
app-arch/lha: EAPI7 revbump, use HTTPs |
9 |
|
10 |
Closes: https://bugs.gentoo.org/667360 |
11 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
12 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/10023 |
14 |
|
15 |
.../lha/files/lha-114i-file-list-from-stdin.patch | 8 ++-- |
16 |
.../lha-114i-fix-getopt_long-declaration.patch | 4 +- |
17 |
app-arch/lha/lha-114i-r9.ebuild | 53 ++++++++++++++++++++++ |
18 |
3 files changed, 59 insertions(+), 6 deletions(-) |
19 |
|
20 |
diff --git a/app-arch/lha/files/lha-114i-file-list-from-stdin.patch b/app-arch/lha/files/lha-114i-file-list-from-stdin.patch |
21 |
index 4bd0d17d752..d29f8d20bc8 100644 |
22 |
--- a/app-arch/lha/files/lha-114i-file-list-from-stdin.patch |
23 |
+++ b/app-arch/lha/files/lha-114i-file-list-from-stdin.patch |
24 |
@@ -1,7 +1,7 @@ |
25 |
Index: src/lharc.c |
26 |
=================================================================== |
27 |
---- src/lharc.c (revision 773) |
28 |
-+++ src/lharc.c (working copy) |
29 |
+--- a/src/lharc.c (revision 773) |
30 |
++++ b/src/lharc.c (working copy) |
31 |
@@ -561,7 +561,7 @@ |
32 |
if (!isatty(1) && cmd == CMD_ADD) |
33 |
quiet = TRUE; |
34 |
@@ -13,8 +13,8 @@ Index: src/lharc.c |
35 |
/* Bug(?) on MinGW, isatty() return 0 on Cygwin console. |
36 |
Index: configure.ac |
37 |
=================================================================== |
38 |
---- configure.ac (revision 773) |
39 |
-+++ configure.ac (working copy) |
40 |
+--- a/configure.ac (revision 773) |
41 |
++++ b/configure.ac (working copy) |
42 |
@@ -289,6 +289,11 @@ |
43 |
[Define to 1 if you want to ignore dot files with -X command line switch]) |
44 |
fi |
45 |
|
46 |
diff --git a/app-arch/lha/files/lha-114i-fix-getopt_long-declaration.patch b/app-arch/lha/files/lha-114i-fix-getopt_long-declaration.patch |
47 |
index b57a1c9c615..3c3b7dfd94c 100644 |
48 |
--- a/app-arch/lha/files/lha-114i-fix-getopt_long-declaration.patch |
49 |
+++ b/app-arch/lha/files/lha-114i-fix-getopt_long-declaration.patch |
50 |
@@ -1,5 +1,5 @@ |
51 |
---- src/getopt_long.c.orig 2013-12-18 16:05:59.789413528 -0600 |
52 |
-+++ src/getopt_long.c 2013-12-18 16:06:01.200420472 -0600 |
53 |
+--- a/src/getopt_long.c 2013-12-18 16:05:59.789413528 -0600 |
54 |
++++ b/src/getopt_long.c 2013-12-18 16:06:01.200420472 -0600 |
55 |
@@ -64,7 +64,7 @@ |
56 |
|
57 |
#ifndef USE_GNU |
58 |
|
59 |
diff --git a/app-arch/lha/lha-114i-r9.ebuild b/app-arch/lha/lha-114i-r9.ebuild |
60 |
new file mode 100644 |
61 |
index 00000000000..fc3cd93847f |
62 |
--- /dev/null |
63 |
+++ b/app-arch/lha/lha-114i-r9.ebuild |
64 |
@@ -0,0 +1,53 @@ |
65 |
+# Copyright 1999-2018 Gentoo Authors |
66 |
+# Distributed under the terms of the GNU General Public License v2 |
67 |
+ |
68 |
+EAPI=7 |
69 |
+ |
70 |
+inherit autotools flag-o-matic |
71 |
+ |
72 |
+MY_P="${PN}-1.14i-ac20050924p1" |
73 |
+ |
74 |
+DESCRIPTION="Utility for creating and opening lzh archives" |
75 |
+HOMEPAGE="https://lha.osdn.jp https://github.com/jca02266/lha" |
76 |
+SRC_URI="mirror://sourceforge.jp/${PN}/22231/${MY_P}.tar.gz" |
77 |
+ |
78 |
+LICENSE="lha" |
79 |
+SLOT="0" |
80 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~m68k-mint" |
81 |
+ |
82 |
+S="${WORKDIR}/${MY_P}" |
83 |
+ |
84 |
+PATCHES=( |
85 |
+ "${FILESDIR}"/${P}-file-list-from-stdin.patch |
86 |
+ "${FILESDIR}"/${P}-fix-getopt_long-declaration.patch |
87 |
+) |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ default |
91 |
+ |
92 |
+ sed -e '/^AM_C_PROTOTYPES/d' \ |
93 |
+ -e 's/^AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' \ |
94 |
+ -i configure.ac || die #423125, 467544 |
95 |
+ |
96 |
+ eautoreconf |
97 |
+} |
98 |
+ |
99 |
+src_configure() { |
100 |
+ append-cppflags -DPROTOTYPES #423125 |
101 |
+ |
102 |
+ if [[ ${CHOST} == *-interix* ]]; then |
103 |
+ export ac_cv_header_inttypes_h=no |
104 |
+ export ac_cv_func_iconv=no |
105 |
+ fi |
106 |
+ |
107 |
+ econf |
108 |
+} |
109 |
+ |
110 |
+src_install() { |
111 |
+ emake \ |
112 |
+ DESTDIR="${D}" \ |
113 |
+ mandir="${EPREFIX}"/usr/share/man/ja \ |
114 |
+ install |
115 |
+ |
116 |
+ dodoc ChangeLog Hacking_of_LHa |
117 |
+} |