summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-11-14 17:13:33 +0000
committerV3n3RiX <venerix@rogentos.ro>2016-11-14 17:13:33 +0000
commit9952c2e40292adc3f6c83de86321c8cc9b28990a (patch)
treecd446367276d7a55ffcdbe34a54ff7923b4731d1
parent55359b02f91dcac3d17e8ac072ea013843a586a9 (diff)
libewf gcc5 buildfix
-rw-r--r--app-forensics/libewf/Manifest1
-rw-r--r--app-forensics/libewf/files/libewf-20140406-gcc5-compat.patch11
-rw-r--r--app-forensics/libewf/libewf-20140406.ebuild57
3 files changed, 69 insertions, 0 deletions
diff --git a/app-forensics/libewf/Manifest b/app-forensics/libewf/Manifest
new file mode 100644
index 00000000..84fd8ca3
--- /dev/null
+++ b/app-forensics/libewf/Manifest
@@ -0,0 +1 @@
+DIST libewf-20140406.tar.gz 2135248 SHA256 8a142ff823582ef9f2cf51caa7cefbe0d9e967b61d1d455d6646a9381b624f7c SHA512 5c67f66a240091e9d02f068ab28e65f7cf7c04d2c27aee1a2a7948ec9fe6a0011557637657aba1a9fadc5823a8d0595b333ad953d3213361a25fd840c03dcae8 WHIRLPOOL 773054e9ed47d4d6075ee84e9734bb9296dd09121d828bb76daae7fdf5c41cc8fda0cc9b7e8e3d119f9aac792548e0fe204c1432fe6b0e756a807e19b65699fe
diff --git a/app-forensics/libewf/files/libewf-20140406-gcc5-compat.patch b/app-forensics/libewf/files/libewf-20140406-gcc5-compat.patch
new file mode 100644
index 00000000..094ac8ea
--- /dev/null
+++ b/app-forensics/libewf/files/libewf-20140406-gcc5-compat.patch
@@ -0,0 +1,11 @@
+--- libuna/libuna_inline.h.orig 2016-03-31 11:53:52.655941638 -0700
++++ libuna/libuna_inline.h 2016-03-31 11:55:10.404944126 -0700
+@@ -27,7 +27,7 @@
+ #if defined( _MSC_VER )
+ #define LIBUNA_INLINE _inline
+
+-#elif defined( __BORLANDC__ ) || defined( __clang__ )
++#elif defined( __BORLANDC__ ) || defined( __clang__ ) || ( defined( __GNUC__ ) && __GNUC__ >= 5 )
+ #define LIBUNA_INLINE /* inline */
+
+ #else
diff --git a/app-forensics/libewf/libewf-20140406.ebuild b/app-forensics/libewf/libewf-20140406.ebuild
new file mode 100644
index 00000000..1f22159c
--- /dev/null
+++ b/app-forensics/libewf/libewf-20140406.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools-utils
+
+DESCRIPTION="Implementation of the EWF (SMART and EnCase) image format"
+HOMEPAGE="https://github.com/libyal/libewf"
+SRC_URI="https://googledrive.com/host/0B3fBvzttpiiSMTdoaVExWWNsRjg/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/2"
+KEYWORDS="amd64 x86"
+# upstream bug #2597171, pyewf has implicit declarations
+#IUSE="debug python unicode"
+IUSE="bfio debug ewf +fuse +ssl static-libs +uuid unicode zlib"
+
+DEPEND="
+ sys-libs/zlib
+ bfio? ( =app-forensics/libbfio-0.0.20120425_alpha )
+ fuse? ( sys-fs/fuse )
+ uuid? ( sys-apps/util-linux )
+ ssl? ( dev-libs/openssl )
+ zlib? ( sys-libs/zlib )"
+RDEPEND="${DEPEND}"
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+DOCS=( AUTHORS ChangeLog NEWS README documents/header.txt documents/header2.txt )
+
+src_prepare() {
+ epatch ${FILESDIR}/${P}-gcc5-compat.patch
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable debug debug-output)
+ $(use_enable debug verbose-output)
+ $(use_enable ewf v1-api)
+ $(use_enable unicode wide-character-type)
+ $(use_with zlib)
+ # autodetects bzip2 but does not use
+ --without-bzip2
+ $(use_with bfio libbfio)
+ $(use_with ssl openssl)
+ $(use_with uuid libuuid)
+ $(use_with fuse libfuse)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+ doman manuals/*.1 manuals/*.3
+}