app-arch/lrzip: fix/keyword *-macos, *-solaris, bug #468854
authorFabian Groffen <grobian@gentoo.org>
Mon, 11 Dec 2017 17:28:25 +0000 (18:28 +0100)
committerFabian Groffen <grobian@gentoo.org>
Mon, 11 Dec 2017 17:28:38 +0000 (18:28 +0100)
Package-Manager: Portage-2.3.13, Repoman-2.3.3

app-arch/lrzip/files/lrzip-0.631-solaris.patch [new file with mode: 0644]
app-arch/lrzip/lrzip-0.631.ebuild

diff --git a/app-arch/lrzip/files/lrzip-0.631-solaris.patch b/app-arch/lrzip/files/lrzip-0.631-solaris.patch
new file mode 100644 (file)
index 0000000..d8eb95e
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/liblrzip.c
++++ b/liblrzip.c
+@@ -36,7 +36,7 @@
+ #include "lrzip_core.h"
+ #include "rzip.h"
+-#if defined(__APPLE__) || defined(__FreeBSD__)
++#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun) || defined(sun)
+ # define fmemopen(s, len, modes) fake_fmemopen((s), (len), (modes))
+ static FILE *fake_fmemopen(void *buf, size_t buflen, const char *mode)
+ {
index d3b839bd266ce254fbe891dbacb7a89b2e0b40f4..e5f89de483dd466d5d425e27a97f4705ffeb896c 100644 (file)
@@ -11,7 +11,7 @@ SRC_URI="http://ck.kolivas.org/apps/${PN}/${P}.tar.bz2"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
+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"
 IUSE="static-libs"
 
 RDEPEND="dev-libs/lzo
@@ -23,7 +23,8 @@ DEPEND="${RDEPEND}
 
 PATCHES=(
        "${FILESDIR}"/${PN}-missing-stdarg_h.patch
-       )
+       "${FILESDIR}"/${P}-solaris.patch
+)
 
 src_configure() {
        econf $(use_enable static-libs static)