diff options
Diffstat (limited to 'app-forensics/afflib/afflib-3.6.12.ebuild')
-rw-r--r-- | app-forensics/afflib/afflib-3.6.12.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/app-forensics/afflib/afflib-3.6.12.ebuild b/app-forensics/afflib/afflib-3.6.12.ebuild new file mode 100644 index 000000000000..50dcc023348b --- /dev/null +++ b/app-forensics/afflib/afflib-3.6.12.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-forensics/afflib/afflib-3.6.12.ebuild,v 1.1 2011/07/11 21:41:07 radhermit Exp $ + +EAPI="4" + +inherit eutils autotools + +DESCRIPTION="Library that implements the AFF image standard" +HOMEPAGE="http://www.afflib.org/" +SRC_URI="http://www.afflib.org/downloads/${P}.tar.gz" + +LICENSE="BSD-4" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~s390 ~sparc ~x86" +IUSE="fuse ncurses python qemu readline s3 static-libs threads" + +RDEPEND="dev-libs/expat + dev-libs/openssl + sys-libs/zlib + fuse? ( sys-fs/fuse ) + ncurses? ( sys-libs/ncurses ) + python? ( dev-lang/python ) + readline? ( sys-libs/readline ) + s3? ( net-misc/curl )" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-python-module.patch + + sed -i -e "/FLAGS/s: -g::" configure.ac + sed -i -e "/-static/d" tools/Makefile.am + + eautoreconf +} + +src_configure() { + # Hacks for automagic dependencies + use ncurses || export ac_cv_lib_ncurses_initscr=no + use readline || export ac_cv_lib_readline_readline=no + + econf \ + $(use_enable fuse) \ + $(use_enable python) \ + $(use_enable qemu) \ + $(use_enable s3) \ + $(use_enable static-libs static) \ + $(use_enable threads threading) +} + +src_install() { + default + find "${ED}" -name '*.la' -exec rm -f {} + +} |