From 9f6090f2038c53d524ec9e8509b5e60aff457b8a Mon Sep 17 00:00:00 2001 From: Volker Wegert Date: Sun, 20 Nov 2022 23:08:58 +0100 Subject: [PATCH 1/2] re-applied changes to dev-libs/libsmdev --- dev-libs/libsmdev/Manifest | 2 + dev-libs/libsmdev/libsmdev-20210418.ebuild | 58 ++++++++++++++++++++++ dev-libs/libsmdev/libsmdev-20221028.ebuild | 58 ++++++++++++++++++++++ dev-libs/libsmdev/metadata.xml | 8 +++ 4 files changed, 126 insertions(+) create mode 100644 dev-libs/libsmdev/Manifest create mode 100644 dev-libs/libsmdev/libsmdev-20210418.ebuild create mode 100644 dev-libs/libsmdev/libsmdev-20221028.ebuild create mode 100644 dev-libs/libsmdev/metadata.xml 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..c092ec0c2 --- /dev/null +++ b/dev-libs/libsmdev/libsmdev-20210418.ebuild @@ -0,0 +1,58 @@ +# 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) \ + +} diff --git a/dev-libs/libsmdev/libsmdev-20221028.ebuild b/dev-libs/libsmdev/libsmdev-20221028.ebuild new file mode 100644 index 000000000..c092ec0c2 --- /dev/null +++ b/dev-libs/libsmdev/libsmdev-20221028.ebuild @@ -0,0 +1,58 @@ +# 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) \ + +} 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 + + From c92620e9a0c163350768fc06e7fe5d580962392d Mon Sep 17 00:00:00 2001 From: Volker Wegert Date: Fri, 2 Dec 2022 21:07:07 +0100 Subject: [PATCH 2/2] remove .la files before installing --- dev-libs/libsmdev/libsmdev-20210418.ebuild | 6 ++++++ dev-libs/libsmdev/libsmdev-20221028.ebuild | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/dev-libs/libsmdev/libsmdev-20210418.ebuild b/dev-libs/libsmdev/libsmdev-20210418.ebuild index c092ec0c2..43a2edf34 100644 --- a/dev-libs/libsmdev/libsmdev-20210418.ebuild +++ b/dev-libs/libsmdev/libsmdev-20210418.ebuild @@ -56,3 +56,9 @@ src_configure() { $(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 index c092ec0c2..43a2edf34 100644 --- a/dev-libs/libsmdev/libsmdev-20221028.ebuild +++ b/dev-libs/libsmdev/libsmdev-20221028.ebuild @@ -56,3 +56,9 @@ src_configure() { $(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 +}