From 0ca2d2f5a2f501209ccdf34f54403681182af183 Mon Sep 17 00:00:00 2001 From: Volker Wegert Date: Mon, 7 Nov 2022 21:14:42 +0100 Subject: [PATCH] updated version of app-forensics/libvshadow --- app-forensics/libvshadow/Manifest | 1 + .../libvshadow/libvshadow-20221030.ebuild | 72 +++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 app-forensics/libvshadow/libvshadow-20221030.ebuild diff --git a/app-forensics/libvshadow/Manifest b/app-forensics/libvshadow/Manifest index 133c96bbd..1629ed898 100644 --- a/app-forensics/libvshadow/Manifest +++ b/app-forensics/libvshadow/Manifest @@ -1,3 +1,4 @@ DIST libvshadow-alpha-20191221.tar.gz 1445958 BLAKE2B a5dec2e41edb893d5cc7510a021db34f267b725c90993b7f867e58a0a630dbf61566e2bd248b463ccd68a1c402b20a69e6ea1d2441d95f2534578e22f6b32ffb SHA512 745d8916bb5d935207f2dd77a5fbd73ea4527ab16f75a44a17d8a2014a0d942fdf6f9937d7de752d78c598a419d5a05580afba1701ef836691e565510d32b62e DIST libvshadow-alpha-20201222.tar.gz 1502469 BLAKE2B 039ab2c22b82125749d26b3b09fc819ccf4718634d4559c67c61fa11dce60f62f7e7be5a97a5545e575baa1e0a6972fa0d9b6fd776449a5a54c151eb3fbabec0 SHA512 7f7f6282704f87277ddb4168cea4fe95ab856f53a0652d3c80fab1e3cc8c98846f5403c1d9a1b74529a15e71544ad3be538c766ddea8e42f30253032acaf3251 DIST libvshadow-alpha-20210425.tar.gz 1502225 BLAKE2B 3d8879561885b241a8b8b1553de2b091b4ab1d56134549da1e23b0ab476abcd24c37d5c359127d4a5296c848c9baa28202d52cd18d21236c2fb0e238553ed453 SHA512 0d44929da5f795d461632b6177ba754a5968c1e351216c36c82bac71704f4a02d8513ced7aa34b9f051e844466816e38bd5c02e59977922dfd299a7996e793b8 +DIST libvshadow-alpha-20221030.tar.gz 1542648 BLAKE2B e242dcc13db103ed9c18d8b9f659a55130aeb216e481d738a288c71a29a3168fedc5004cbedccde34260bced98d8a4eefd2dbb996d9fe8045cff31915650e168 SHA512 8a548786dd27b4ec860f729ada558218d9c1db7811c385a708841451bceacd2c2731eec29bb6c50f671e4db731a14c9545c19ab86a3b711f44673e8c873ea2d8 diff --git a/app-forensics/libvshadow/libvshadow-20221030.ebuild b/app-forensics/libvshadow/libvshadow-20221030.ebuild new file mode 100644 index 000000000..1677160d1 --- /dev/null +++ b/app-forensics/libvshadow/libvshadow-20221030.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{9..10} ) +inherit python-single-r1 eutils autotools + +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/${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 unicode" + +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-20190112 + 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" + +src_prepare() { + #upstream does not support its own shared libraries, let's fix that + eapply "${FILESDIR}/${PN}"_2019_autoconfig.patch + + #workaround, see https://github.com/libyal/libvshadow/issues/10 +# echo "#define HAVE_ERRNO_H 1" >> common/config.h.in + + #makefile was created with 1.16, let's regenerate it + eautoreconf + eapply_user +} + +src_configure() { + econf $(use_enable python) \ + $(use_enable python python3) \ + $(use_enable unicode wide-character-type) \ + $(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 +}