diff options
Diffstat (limited to 'app-forensics/afflib/afflib-3.7.1.ebuild')
-rw-r--r-- | app-forensics/afflib/afflib-3.7.1.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/app-forensics/afflib/afflib-3.7.1.ebuild b/app-forensics/afflib/afflib-3.7.1.ebuild new file mode 100644 index 000000000000..03f4ce9698da --- /dev/null +++ b/app-forensics/afflib/afflib-3.7.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +PYTHON_DEPEND="python? 2" +AUTOTOOLS_AUTORECONF=1 + +inherit autotools-utils python + +DESCRIPTION="Library that implements the AFF image standard" +HOMEPAGE="https://github.com/simsong/AFFLIBv3" +SRC_URI="mirror://github/simsong/AFFLIBv3/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 hppa ppc x86" +IUSE="fuse ncurses python qemu readline s3 static-libs threads" + +RDEPEND="dev-libs/expat + dev-libs/openssl:0 + sys-libs/zlib + fuse? ( sys-fs/fuse ) + ncurses? ( sys-libs/ncurses ) + readline? ( sys-libs/readline:0 ) + s3? ( net-misc/curl )" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-python-module.patch + "${FILESDIR}"/${PN}-3.6.12-pyaff-header.patch +) + +pkg_setup() { + if use python ; then + python_set_active_version 2 + python_pkg_setup + fi +} + +src_prepare() { + sed -e '/FLAGS/s: -g::' \ + -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' \ + -i configure.ac || die + + sed -i -e '/-static/d' tools/Makefile.am || die + + autotools-utils_src_prepare +} + +src_configure() { + # Hacks for automagic dependencies + use ncurses || export ac_cv_lib_ncurses_initscr=no + use readline || export ac_cv_lib_readline_readline=no + + local myeconfargs=( + $(use_enable fuse) + $(use_enable python) + $(use_enable qemu) + $(use_enable s3) + $(use_enable threads threading) + ) + autotools-utils_src_configure +} |