diff options
-rw-r--r-- | app-arch/lrzip/files/lrzip-0.631-solaris.patch | 11 | ||||
-rw-r--r-- | app-arch/lrzip/lrzip-0.631.ebuild | 5 |
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) |