Merge pull request #1323 from vwegert/add-libsmdev-2

added ebuilds for dev-libs/libsmdev from libyal
This commit is contained in:
Anton Bolshakov 2023-01-27 12:36:51 +08:00 committed by GitHub
commit 8e3623fd42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 138 additions and 0 deletions

View file

@ -0,0 +1,2 @@
DIST libsmdev-alpha-20210418.tar.gz 1229702 BLAKE2B 9c63ab1921648d4bd66821263d3a5708c9a5508536e846717ad6d27787cb2fe50c57efa734113f41034ba064eb708fc4349528044de9efccaf331e07efb3b5db SHA512 399578a212ce6b2ed493e1496a9c826858f0daf83894b5a4b89ebd7997b2fe6ea4b59304ca5287cd4c6edaf41433433acb5fd1f51a9ff63bf3c40282863d6a54
DIST libsmdev-alpha-20221028.tar.gz 1264956 BLAKE2B 0b70d467b761be5d401a9d6838927556a78e167c4e4833d254088add49909f6a687a60328ab26eb82147c6eb8331c37357cefc4ea586a6dd92f21fbe146a9821 SHA512 7d65a774969d44533ddab35b94cc827a482f325713c3d74e0b2d7405bf23ccd9bf7ac7fbb17bd7373dcc277116b5ae0592f3951143f585eec2f0d299b588da0c

View file

@ -0,0 +1,64 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..11} )
inherit autotools python-single-r1
DESCRIPTION="Library to access to storage media devices"
HOMEPAGE="https://github.com/libyal/libsmdev"
SRC_URI="https://github.com/libyal/libsmdev/releases/download/${PV}/${PN}-alpha-${PV}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="nls unicode python +threads debug"
REQUIRED_USE="
python? ( ${PYTHON_REQUIRED_USE} )
"
DEPEND="
nls? (
virtual/libiconv
virtual/libintl
)
python? ( dev-lang/python:* )
dev-libs/libcdata[nls=]
dev-libs/libcerror[nls=]
dev-libs/libcfile[nls=,unicode=]
dev-libs/libclocale[nls=,unicode=]
dev-libs/libcnotify[nls=]
dev-libs/libcthreads[nls=]
dev-libs/libuna[nls=,unicode=]
"
RDEPEND="
${DEPEND}
python? ( ${PYTHON_DEPS} )
"
src_prepare() {
eautoreconf
eapply_user
}
src_configure() {
econf \
$(use_enable nls) \
$(use_with nls libiconv-prefix) \
$(use_with nls libintl-prefix) \
$(use_enable unicode wide-character-type) \
$(use_enable debug verbose-output ) \
$(use_enable debug debug-output ) \
$(use_enable threads multi-threading-support) \
$(use_enable python) \
$(use_enable python python3) \
}
src_install() {
default
# see https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0303
find "${ED}" -name '*.la' -delete || die
}

View file

@ -0,0 +1,64 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..11} )
inherit autotools python-single-r1
DESCRIPTION="Library to access to storage media devices"
HOMEPAGE="https://github.com/libyal/libsmdev"
SRC_URI="https://github.com/libyal/libsmdev/releases/download/${PV}/${PN}-alpha-${PV}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="nls unicode python +threads debug"
REQUIRED_USE="
python? ( ${PYTHON_REQUIRED_USE} )
"
DEPEND="
nls? (
virtual/libiconv
virtual/libintl
)
python? ( dev-lang/python:* )
dev-libs/libcdata[nls=]
dev-libs/libcerror[nls=]
dev-libs/libcfile[nls=,unicode=]
dev-libs/libclocale[nls=,unicode=]
dev-libs/libcnotify[nls=]
dev-libs/libcthreads[nls=]
dev-libs/libuna[nls=,unicode=]
"
RDEPEND="
${DEPEND}
python? ( ${PYTHON_DEPS} )
"
src_prepare() {
eautoreconf
eapply_user
}
src_configure() {
econf \
$(use_enable nls) \
$(use_with nls libiconv-prefix) \
$(use_with nls libintl-prefix) \
$(use_enable unicode wide-character-type) \
$(use_enable debug verbose-output ) \
$(use_enable debug debug-output ) \
$(use_enable threads multi-threading-support) \
$(use_enable python) \
$(use_enable python python3) \
}
src_install() {
default
# see https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0303
find "${ED}" -name '*.la' -delete || die
}

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
</pkgmetadata>