summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-12-03 16:28:13 +0000
committerSam James <sam@gentoo.org>2020-12-03 16:28:40 +0000
commit7557f8b8471c2f66bd4d4b84e35b64fcdb7360bd (patch)
treed2913944e1800bd2bd38fcdea4e1d84f3ed5619c /app-forensics
parentsys-apps/systemd: bump to 247.1 (diff)
downloadgentoo-7557f8b8471c2f66bd4d4b84e35b64fcdb7360bd.tar.gz
gentoo-7557f8b8471c2f66bd4d4b84e35b64fcdb7360bd.tar.bz2
gentoo-7557f8b8471c2f66bd4d4b84e35b64fcdb7360bd.zip
app-forensics/afflib: bump to 3.7.19
Closes: https://bugs.gentoo.org/734200 Closes: https://bugs.gentoo.org/721814 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-forensics')
-rw-r--r--app-forensics/afflib/Manifest1
-rw-r--r--app-forensics/afflib/afflib-3.7.19.ebuild76
-rw-r--r--app-forensics/afflib/files/afflib-3.7.19-search-path.patch29
3 files changed, 106 insertions, 0 deletions
diff --git a/app-forensics/afflib/Manifest b/app-forensics/afflib/Manifest
index 8d41df122bb7..10bdf2cf5bfb 100644
--- a/app-forensics/afflib/Manifest
+++ b/app-forensics/afflib/Manifest
@@ -1 +1,2 @@
DIST afflib-3.7.18.tar.gz 540371 BLAKE2B 6c1837ebcb5cca97622736f38e61c35f149c045bc1a60acea455dd9059e8c60447cd8f45304fd55aa7f2e5f783d40e266a23d09b33209f9dc5441f971b8a188d SHA512 47ab74c86bbaedc2494558962f99463066e267f7a3f583902a53e1f488085a309b0d871093c67439033272c3ebf03d213649886930b9812013e66782ea84df85
+DIST afflib-3.7.19.tar.gz 540165 BLAKE2B dea0998741121d2c1ae0e42ced9652ec46816282128469af75e0a32f9e4e2d09ac4afb4888ee7925366a03a867932f2446bfcd3800ab4dc021939ab6c38c797b SHA512 6e0df7477bf7dbd3814099d94e3fce122e0cf9b714a425521b7458f4eedc6e8b8e7283fd37926b7c992cdf21d3adec620df29a79a6a5311bf1d1b5d4930768bc
diff --git a/app-forensics/afflib/afflib-3.7.19.ebuild b/app-forensics/afflib/afflib-3.7.19.ebuild
new file mode 100644
index 000000000000..20fece7ebabd
--- /dev/null
+++ b/app-forensics/afflib/afflib-3.7.19.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8,9} )
+
+inherit autotools python-single-r1
+
+MY_PN=AFFLIBv3
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Library that implements the AFF image standard"
+HOMEPAGE="https://github.com/sshock/AFFLIBv3/"
+SRC_URI="https://github.com/sshock/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~x86 ~x64-macos"
+IUSE="fuse libressl ncurses python qemu readline s3 static-libs threads"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+# Tests don't play well with sandbox
+RESTRICT="test"
+
+RDEPEND="
+ dev-libs/expat
+ sys-libs/zlib:0=
+ fuse? ( sys-fs/fuse:= )
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ ncurses? ( sys-libs/ncurses:0= )
+ python? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]')
+ )
+ readline? ( sys-libs/readline:0= )
+ s3? ( net-misc/curl )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-3.7.19-search-path.patch"
+)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ sed -i '/FLAGS/s: -g::' configure.ac || die
+
+ default
+ 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
+
+ local myeconfargs=(
+ $(use_enable fuse)
+ $(use_enable python)
+ $(use_enable qemu)
+ $(use_enable s3)
+ $(use_enable static-libs static)
+ $(use_enable threads threading)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ find "${ED}" -name "*.la" -delete || die
+}
diff --git a/app-forensics/afflib/files/afflib-3.7.19-search-path.patch b/app-forensics/afflib/files/afflib-3.7.19-search-path.patch
new file mode 100644
index 000000000000..db646eb5065b
--- /dev/null
+++ b/app-forensics/afflib/files/afflib-3.7.19-search-path.patch
@@ -0,0 +1,29 @@
+diff --git a/configure.ac b/configure.ac
+index d902e4b..914ccf5 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -30,24 +30,6 @@ AC_CONFIG_MACRO_DIR([m4])
+ m4_include([m4/acx_pthread.m4])
+ ACX_PTHREAD()
+
+-if test x"${cross_compiling}" = "xno" ; then
+- # Bring additional directories where things might be found into our
+- # search path. I don't know why autoconf doesn't do this by default
+- for spfx in ${prefix} /sw /opt/local /usr/local ; do
+- AC_MSG_NOTICE([checking ${spfx}/include])
+- if test -d ${spfx}/include; then
+- CPPFLAGS="$CPPFLAGS -I${spfx}/include"
+- LDFLAGS="$LDFLAGS -L${spfx}/lib"
+- AC_MSG_NOTICE([ *** ADDING ${spfx}/include to CPPFLAGS *** ])
+- AC_MSG_NOTICE([ *** ADDING ${spfx}/lib to LDFLAGS *** ])
+- fi
+- done
+- AC_MSG_NOTICE([ CPPFLAGS = ${CPPFLAGS} ])
+- AC_MSG_NOTICE([ LDFLAGS = ${LDFLAGS} ])
+-else
+- AC_MSG_NOTICE([Cross Compiling --- will not update CPPFALGS or LDFLAGS with /usr/local, /opt/local or /sw])
+-fi
+-
+ if test -r /bin/uname.exe ; then
+ if test `uname -o` == "Msys" ; then
+ AC_MSG_NOTICE([Compiling with Msys. Setting flags appropriately.])