app-arch/lrzip: fix/keyword *-macos, *-solaris, bug #468854

Package-Manager: Portage-2.3.13, Repoman-2.3.3
This commit is contained in:
Fabian Groffen
2017-12-11 18:28:25 +01:00
parent c7cf481e32
commit d86304fcea
2 changed files with 14 additions and 2 deletions

View File

@@ -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)
{

View 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)