commit:     6d5901fd57daf9d949c930749d8fbc32385f2c15
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Tue Jun  6 12:00:25 2017 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Tue Jun  6 12:02:49 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d5901fd

app-arch/xar: Fix building (#583668)

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 app-arch/xar/files/xar-1.6.1-ext2.patch | 24 ++++++++++++++++++++
 app-arch/xar/xar-1.6.1-r1.ebuild        | 40 +++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/app-arch/xar/files/xar-1.6.1-ext2.patch 
b/app-arch/xar/files/xar-1.6.1-ext2.patch
new file mode 100644
index 00000000000..da413b03e52
--- /dev/null
+++ b/app-arch/xar/files/xar-1.6.1-ext2.patch
@@ -0,0 +1,24 @@
+--- a/lib/ext2.c.orig
++++ b/lib/ext2.c
+@@ -139,8 +139,10 @@
+       if(! (flags & ~EXT2_NOCOMPR_FL) )
+               x_addprop(f, "NoCompBlock");
+ #endif
++#ifdef EXT2_ECOMPR_FL
+       if(! (flags & ~EXT2_ECOMPR_FL) )
+               x_addprop(f, "CompError");
++#endif
+       if(! (flags & ~EXT2_BTREE_FL) )
+               x_addprop(f, "BTree");
+       if(! (flags & ~EXT2_INDEX_FL) )
+@@ -225,8 +227,10 @@
+       if( e2prop_get(f, "NoCompBlock", (char **)&tmp) == 0 )
+               flags |= EXT2_NOCOMPR_FL ;
+ #endif
++#ifdef EXT2_ECOMPR_FL
+       if( e2prop_get(f, "CompError", (char **)&tmp) == 0 )
+               flags |= EXT2_ECOMPR_FL ;
++#endif
+       if( e2prop_get(f, "BTree", (char **)&tmp) == 0 )
+               flags |= EXT2_BTREE_FL ;
+       if( e2prop_get(f, "HashIndexed", (char **)&tmp) == 0 )

diff --git a/app-arch/xar/xar-1.6.1-r1.ebuild b/app-arch/xar/xar-1.6.1-r1.ebuild
new file mode 100644
index 00000000000..fe744682e35
--- /dev/null
+++ b/app-arch/xar/xar-1.6.1-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools ltprune
+
+DESCRIPTION="An easily extensible archive format"
+HOMEPAGE="https://github.com/mackyle/xar";
+SRC_URI="mirror://github/mackyle/${PN}/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="+bzip2 libressl"
+
+DEPEND="
+       !libressl? ( dev-libs/openssl:0= )
+       libressl? ( dev-libs/libressl:0= )
+       bzip2? ( app-arch/bzip2 )
+       sys-libs/zlib
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-ext2.patch )
+
+src_prepare() {
+       default
+       eautoconf
+}
+
+src_configure() {
+       econf \
+               $(use_with bzip2) \
+               --disable-static
+}
+
+src_install() {
+       default
+       prune_libtool_files
+}

Reply via email to