Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 667360
Collapse All | Expand All

(-)a/app-arch/lha/files/lha-114i-file-list-from-stdin.patch
Lines 1-7 Link Here
1
Index: src/lharc.c
1
Index: src/lharc.c
2
===================================================================
2
===================================================================
(-)- src/lharc.c
Lines 13-20 Index: src/lharc.c Link Here
13
             /* Bug(?) on MinGW, isatty() return 0 on Cygwin console.
13
             /* Bug(?) on MinGW, isatty() return 0 on Cygwin console.
14
Index: configure.ac
14
Index: configure.ac
15
===================================================================
15
===================================================================
(-)a/app-arch/lha/files/lha-114i-fix-getopt_long-declaration.patch (-2 / +2 lines)
Lines 1-5 Link Here
1
--- src/getopt_long.c.orig      2013-12-18 16:05:59.789413528 -0600
1
--- a/src/getopt_long.c   2013-12-18 16:05:59.789413528 -0600
2
+++ src/getopt_long.c   2013-12-18 16:06:01.200420472 -0600
2
+++ b/src/getopt_long.c   2013-12-18 16:06:01.200420472 -0600
3
@@ -64,7 +64,7 @@
3
@@ -64,7 +64,7 @@
4
 
4
 
5
 #ifndef USE_GNU
5
 #ifndef USE_GNU
(-)a/app-arch/lha/lha-114i-r9.ebuild (+53 lines)
Line 0 Link Here
1
# Copyright 1999-2018 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=7
5
6
inherit autotools flag-o-matic
7
8
MY_P="${PN}-1.14i-ac20050924p1"
9
10
DESCRIPTION="Utility for creating and opening lzh archives"
11
HOMEPAGE="https://lha.osdn.jp https://github.com/jca02266/lha"
12
SRC_URI="mirror://sourceforge.jp/${PN}/22231/${MY_P}.tar.gz"
13
14
LICENSE="lha"
15
SLOT="0"
16
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"
17
18
S="${WORKDIR}/${MY_P}"
19
20
PATCHES=(
21
	"${FILESDIR}"/${P}-file-list-from-stdin.patch
22
	"${FILESDIR}"/${P}-fix-getopt_long-declaration.patch
23
)
24
25
src_prepare() {
26
	default
27
28
	sed -e '/^AM_C_PROTOTYPES/d' \
29
		-e 's/^AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' \
30
		-i configure.ac || die #423125, 467544
31
32
	eautoreconf
33
}
34
35
src_configure() {
36
	append-cppflags -DPROTOTYPES #423125
37
38
	if [[ ${CHOST} == *-interix* ]]; then
39
		export ac_cv_header_inttypes_h=no
40
		export ac_cv_func_iconv=no
41
	fi
42
43
	econf
44
}
45
46
src_install() {
47
	emake \
48
		DESTDIR="${D}" \
49
		mandir="${EPREFIX}"/usr/share/man/ja \
50
		install
51
52
	dodoc ChangeLog Hacking_of_LHa
53
}

Return to bug 667360