dev-libs/libfwnt: fix version

old versions could not be fetched (404)
This commit is contained in:
João Lucas 2024-04-02 13:45:40 +01:00
parent 890a1418c8
commit 98d0eb29b8
No known key found for this signature in database
GPG key ID: 6404947A3E15D5AB
3 changed files with 1 additions and 76 deletions

View file

@ -1,2 +1 @@
DIST libfwnt-alpha-20210906.tar.gz 1088239 BLAKE2B 86689fd114d9f619fea023979c4dedfee9dc002723e841ed8ed389cd9571c0a638a915bba6c7ee11418658509f3b618f841c6bcd7f841bdba2db3001503be5f0 SHA512 2d9a15fbfd3dc092496fc83357c8515865997f2114dd4bdbeb1caead7ac258706b530aebb953001679c1ff8700e449d047d6b97d17305a0c4f2180e32c758ac8
DIST libfwnt-alpha-20220922.tar.gz 1153326 BLAKE2B 5ff6016e0e372f37966f5c322dd17e3ff5a932311269eec5e3d8e13a20f9ce48afcbcb1214fbd2e414399a71e2b77b1b2f67f5cf19684a412592169fa8192b42 SHA512 93ef460c771b6c5c04219f8d6765cdddc6a047e1ce45696ed7a863e36f10cc392cb1cd1338f0d4f3220f1c6d9ee25fb679f6001f090fd69d7ee269adcac064bf
DIST libfwnt-alpha-20240126.tar.gz 1128692 BLAKE2B 4cebeaf2eca19420a54c3e676ffe43db602b9c942a5fb9725f906e14d884479a515a57256cd5ca04e5c037e66c6f832133017e74497df1c2923f070263c8d5c1 SHA512 9e3f6ab14ff4a52e787c157566aaed61b4c4a7c24cbe27af42e9924d1d0668c1526de92f9e1a0b24ae3d6f7ddbd27dd6eb6f749ecce1a916cfb68861bacc0ba2

View file

@ -1,74 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
inherit python-single-r1 autotools
DESCRIPTION="Library for Windows NT data types"
HOMEPAGE="https://github.com/libyal/libfwnt"
SRC_URI="https://github.com/libyal/libfwnt/releases/download/${PV}/${PN}-alpha-${PV}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="debug nls python +threads"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
DEPEND="
dev-libs/libcdata[nls=]
dev-libs/libcerror[nls=]
dev-libs/libcnotify[nls=]
dev-libs/libcthreads[nls=]
nls? (
virtual/libiconv
virtual/libintl
)
python? ( dev-lang/python:* )
"
RDEPEND="
${DEPEND}
python? ( ${PYTHON_DEPS} )
"
CMAKE_IN_SOURCE_BUILD=1
src_prepare() {
# workaround for missing files in distribution package, see https://github.com/libyal/libfwnt/issues/12
# should not be required any more in releases after 20220922
cp "${FILESDIR}/2022-11-pyfwnt_test_access_control_entry.py" "${WORKDIR}/${P}/tests/pyfwnt_test_access_control_entry.py"
cp "${FILESDIR}/2022-11-pyfwnt_test_access_control_list.py" "${WORKDIR}/${P}/tests/pyfwnt_test_access_control_list.py"
cp "${FILESDIR}/2022-11-pyfwnt_test_lzx.py" "${WORKDIR}/${P}/tests/pyfwnt_test_lzx.py"
#makefile was created with 1.16, let's regenerate it
eautoreconf
eapply_user
}
src_configure() {
econf \
$(use_enable nls) \
$(use_with nls libiconv-prefix) \
$(use_with nls libintl-prefix) \
$(use_enable debug verbose-output) \
$(use_enable debug debug-output) \
$(use_enable threads multi-threading-support) \
$(use_enable python) \
$(use_enable python python3)
# --disable-shared-libs disable shared library support
# not supported in the ebuild at the moment - kind of defeats the entire process
# --enable-winapi enable WINAPI support for cross-compilation
# [default=auto-detect]
# not supported in the ebuild at the moment - requires windows.h, does not make much sense for us
}
src_install() {
default
# see https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0303
find "${ED}" -name '*.la' -delete || die
}