diff --git a/dev-libs/libsmdev/Manifest b/dev-libs/libsmdev/Manifest new file mode 100644 index 000000000..ef44059db --- /dev/null +++ b/dev-libs/libsmdev/Manifest @@ -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 diff --git a/dev-libs/libsmdev/libsmdev-20210418.ebuild b/dev-libs/libsmdev/libsmdev-20210418.ebuild new file mode 100644 index 000000000..43a2edf34 --- /dev/null +++ b/dev-libs/libsmdev/libsmdev-20210418.ebuild @@ -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 +} diff --git a/dev-libs/libsmdev/libsmdev-20221028.ebuild b/dev-libs/libsmdev/libsmdev-20221028.ebuild new file mode 100644 index 000000000..43a2edf34 --- /dev/null +++ b/dev-libs/libsmdev/libsmdev-20221028.ebuild @@ -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 +} diff --git a/dev-libs/libsmdev/metadata.xml b/dev-libs/libsmdev/metadata.xml new file mode 100644 index 000000000..ace7c2d3a --- /dev/null +++ b/dev-libs/libsmdev/metadata.xml @@ -0,0 +1,8 @@ + + + + + unknown@pentoo.ch + Author Unknown + +