pentoo-overlay/app-forensics/libvshadow/libvshadow-20170902.ebuild
2017-09-19 07:47:27 +08:00

65 lines
1.6 KiB
Bash

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_{6,7} )
inherit python-single-r1
DESCRIPTION="Library and tools to support the Volume Shadow Snapshot (VSS) format."
HOMEPAGE="https://github.com/libyal/libvshadow"
SRC_URI="https://github.com/libyal/${PN}/releases/download/${MY_PV}/${PN}-alpha-${PV}.tar.gz"
LICENSE="LGPL-3+"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="debug python nls unicode"
DEPEND="nls? (
virtual/libintl
virtual/libiconv
)
python? ( dev-lang/python:* )
sys-fs/fuse:*
app-forensics/libbfio
dev-libs/libcdata
dev-libs/libcerror
dev-libs/libcfile
dev-libs/libclocale
dev-libs/libcnotify
dev-libs/libcpath
dev-libs/libcsplit
dev-libs/libcthreads
dev-libs/libfdatetime
dev-libs/libfguid
dev-libs/libuna
"
RDEPEND="${DEPEND}
sys-fs/fuse"
src_prepare() {
#https://github.com/libyal/libcthreads/issues/6
#sed -i -e '/libcerror\/Makefile/d' configure.ac
#sed -i -e '/libcerror/d' Makefile.am
#workaround, see https://github.com/libyal/libvshadow/issues/10
echo "#define HAVE_ERRNO_H 1" >> common/config.h.in
eapply_user
}
src_configure() {
econf $(use_enable python) \
$(use_enable nls) \
$(use_with nls libiconv-prefix) \
$(use_with nls libintl-prefix) \
$(use_enable unicode wide-character-type) \
$(use_enable debug debug-output) \
$(use_enable debug verbose-output) \
--with-libcdata --with-libcerror --with-libcfile \
--with-libclocale --with-libcnotify --with-libcpath \
--with-libcsplit --with-libcthreads --with-libfdatetime \
--with-libfguid --with-libuna
}