libvshadow: improve python support

This commit is contained in:
blshkv 2017-09-19 07:53:56 +08:00
parent b9ad9e9eb7
commit 032d5d7fdb
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
3 changed files with 4 additions and 65 deletions

View file

@ -1,2 +1 @@
DIST libvshadow-alpha-20170715.tar.gz 1391482 SHA256 b29dd22b6b12bcf84317e27eed0117ef3efa0549bfd7d3d67f4f44c9dd64ade2 SHA512 4fb83db529203c4023d4704201830187cf4dda57923d74a3becf3d23bbd028089de4bf1466288abcf4619baf3396d3f957a41a4dbe6c8f9fa4d35bf8129ca5e6 WHIRLPOOL 712544b451af075ad4c0e034462fa96a2175d5f8e3b030dbf731660c545ec986501bdc7390de338f894e78a8da9007bb88dece83c860c40e78fa7c9e4a3d3c81
DIST libvshadow-alpha-20170902.tar.gz 1395385 SHA256 9e23a14ee08ad4cc218c63ec8ca350b4951e347ccf3040c365860a399730f261 SHA512 9b47beea075fcc59a77fc2a958badca95bc41c5bff0c80968628e2509223e73caf5e67c3fa4ec1412001d948355bda3720838fab5d77008642cf61ac980dfb1c WHIRLPOOL 9de7bdb6bfec02d0cf2db24f45409e3031b6a1fd0084cd9ecafc27cd86220e7c6dea1fcf3380599de46dd1714fc51287c6f656654947c1b31ebc3cda465e7b8f

View file

@ -1,64 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_{6,7} )
inherit versionator python-single-r1
MY_PV="$(get_major_version)"
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-${MY_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"
S="${WORKDIR}/${PN}-${MY_PV}"
src_prepare() {
#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
}

View file

@ -3,6 +3,7 @@
EAPI=6
#FIXME: add python3 support
PYTHON_COMPAT=( python2_{6,7} )
inherit python-single-r1
@ -15,6 +16,8 @@ SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="debug python nls unicode"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
DEPEND="nls? (
virtual/libintl
virtual/libiconv
@ -37,6 +40,7 @@ DEPEND="nls? (
"
RDEPEND="${DEPEND}
python? ( ${PYTHON_DEPS} )
sys-fs/fuse"
src_prepare() {