# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 #FIXME: add python3 support PYTHON_COMPAT=( python2_7 ) inherit python-single-r1 eutils autotools #COMMIT_HASH="3e58d2808093f255df13abcce70ead809b29c62a" 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}/archive/${COMMIT_HASH}.tar.gz -> ${P}.tar.gz" SRC_URI="https://github.com/libyal/${PN}/releases/download/${PV}/${PN}-alpha-${PV}.tar.gz" LICENSE="LGPL-3+" SLOT="0" KEYWORDS="~amd64 ~x86" #unicode: https://github.com/libyal/libvshadow/issues/17 IUSE="debug python nls" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" 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} python? ( ${PYTHON_DEPS} ) sys-fs/fuse" #S="${WORKDIR}/${PN}-${COMMIT_HASH}" src_prepare() { #https://github.com/libyal/libcthreads/issues/6 #sed -i -e '/libcerror\/Makefile/d' configure.ac #sed -i -e '/libcerror/d' Makefile.am epatch "${FILESDIR}/${PN}"_autoconfig.patch #workaround, see https://github.com/libyal/libvshadow/issues/10 echo "#define HAVE_ERRNO_H 1" >> common/config.h.in #the makefile was created with 1.16, let's re-generate them eautoreconf eapply_user } # $(use_enable unicode wide-character-type) \ src_configure() { econf $(use_enable python) \ $(use_enable nls) \ $(use_with nls libiconv-prefix) \ $(use_with nls libintl-prefix) \ $(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 }