summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2017-12-11 18:28:25 +0100
committerFabian Groffen <grobian@gentoo.org>2017-12-11 18:28:38 +0100
commitd86304fcea13757ec52fa659d467ff4c241a0d60 (patch)
tree8121fb738a77833709a241e22ad9a58d01b587d9 /app-arch/lrzip
parentdev-util/meson: 0.44.0 version bump (diff)
downloadgentoo-d86304fcea13757ec52fa659d467ff4c241a0d60.tar.gz
gentoo-d86304fcea13757ec52fa659d467ff4c241a0d60.tar.bz2
gentoo-d86304fcea13757ec52fa659d467ff4c241a0d60.zip
app-arch/lrzip: fix/keyword *-macos, *-solaris, bug #468854
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'app-arch/lrzip')
-rw-r--r--app-arch/lrzip/files/lrzip-0.631-solaris.patch11
-rw-r--r--app-arch/lrzip/lrzip-0.631.ebuild5
2 files changed, 14 insertions, 2 deletions
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
index 000000000000..d8eb95e563d2
--- /dev/null
+++ b/app-arch/lrzip/files/lrzip-0.631-solaris.patch
@@ -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)
+ {
diff --git a/app-arch/lrzip/lrzip-0.631.ebuild b/app-arch/lrzip/lrzip-0.631.ebuild
index d3b839bd266c..e5f89de483dd 100644
--- a/app-arch/lrzip/lrzip-0.631.ebuild
+++ b/app-arch/lrzip/lrzip-0.631.ebuild
@@ -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)