Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/lrzip/files/, app-arch/lrzip/
Date: Mon, 11 Dec 2017 17:28:45
Message-Id: 1513013318.d86304fcea13757ec52fa659d467ff4c241a0d60.grobian@gentoo
1 commit: d86304fcea13757ec52fa659d467ff4c241a0d60
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 11 17:28:25 2017 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 11 17:28:38 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d86304fc
7
8 app-arch/lrzip: fix/keyword *-macos, *-solaris, bug #468854
9
10 Package-Manager: Portage-2.3.13, Repoman-2.3.3
11
12 app-arch/lrzip/files/lrzip-0.631-solaris.patch | 11 +++++++++++
13 app-arch/lrzip/lrzip-0.631.ebuild | 5 +++--
14 2 files changed, 14 insertions(+), 2 deletions(-)
15
16 diff --git a/app-arch/lrzip/files/lrzip-0.631-solaris.patch b/app-arch/lrzip/files/lrzip-0.631-solaris.patch
17 new file mode 100644
18 index 00000000000..d8eb95e563d
19 --- /dev/null
20 +++ b/app-arch/lrzip/files/lrzip-0.631-solaris.patch
21 @@ -0,0 +1,11 @@
22 +--- a/liblrzip.c
23 ++++ b/liblrzip.c
24 +@@ -36,7 +36,7 @@
25 + #include "lrzip_core.h"
26 + #include "rzip.h"
27 +
28 +-#if defined(__APPLE__) || defined(__FreeBSD__)
29 ++#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun) || defined(sun)
30 + # define fmemopen(s, len, modes) fake_fmemopen((s), (len), (modes))
31 + static FILE *fake_fmemopen(void *buf, size_t buflen, const char *mode)
32 + {
33
34 diff --git a/app-arch/lrzip/lrzip-0.631.ebuild b/app-arch/lrzip/lrzip-0.631.ebuild
35 index d3b839bd266..e5f89de483d 100644
36 --- a/app-arch/lrzip/lrzip-0.631.ebuild
37 +++ b/app-arch/lrzip/lrzip-0.631.ebuild
38 @@ -11,7 +11,7 @@ SRC_URI="http://ck.kolivas.org/apps/${PN}/${P}.tar.bz2"
39
40 LICENSE="GPL-2"
41 SLOT="0"
42 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
43 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
44 IUSE="static-libs"
45
46 RDEPEND="dev-libs/lzo
47 @@ -23,7 +23,8 @@ DEPEND="${RDEPEND}
48
49 PATCHES=(
50 "${FILESDIR}"/${PN}-missing-stdarg_h.patch
51 - )
52 + "${FILESDIR}"/${P}-solaris.patch
53 +)
54
55 src_configure() {
56 econf $(use_enable static-libs static)