commit:     ed160bae55046761ec385e690533d9e0d25d3adc
Author:     Sven Wegener <swegener <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 25 11:06:11 2024 +0000
Commit:     Sven Wegener <swegener <AT> gentoo <DOT> org>
CommitDate: Fri Oct 25 11:09:56 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed160bae

dev-libs/libserialport: add 0.1.2

Signed-off-by: Sven Wegener <swegener <AT> gentoo.org>

 dev-libs/libserialport/Manifest                   |  1 +
 dev-libs/libserialport/libserialport-0.1.2.ebuild | 37 +++++++++++++++++++++++
 2 files changed, 38 insertions(+)

diff --git a/dev-libs/libserialport/Manifest b/dev-libs/libserialport/Manifest
index 5e499cbfd6f5..30491a352fed 100644
--- a/dev-libs/libserialport/Manifest
+++ b/dev-libs/libserialport/Manifest
@@ -1 +1,2 @@
 DIST libserialport-0.1.1.tar.gz 405251 BLAKE2B 
bc52d7b5303c123a28becde1e77451a921c2b6d5284ccfaca298d0535a793297d30e297109382a7266263530ac9a0e0b598ce8d1602e0700b43bda227f29a6b3
 SHA512 
7d379d1099173841e6d4df04c8c12dc6a4ebdfa0323ef35da6f3dea20db55d4f6ad81c1f6679f5aac7fe83270176428a817daa8627c336505335a07e06350a85
+DIST libserialport-0.1.2.tar.gz 470818 BLAKE2B 
762f0447f397efb983489ce673f3ce885cd9ae7308fa0818fb312ffefc2b391dd3b2555b3c19a3aaf440976e26b115c149dbbda57015e13793235616069e5810
 SHA512 
960823ddb30711c39a4f001b6dd2d592a072e8d4256d3ba0a2fdb6c28172c3b6b1504b33cca80765ded5d5add34a73621b5e500ebaa6bb0520faf98b46b903aa

diff --git a/dev-libs/libserialport/libserialport-0.1.2.ebuild 
b/dev-libs/libserialport/libserialport-0.1.2.ebuild
new file mode 100644
index 000000000000..4e0b8fd2969e
--- /dev/null
+++ b/dev-libs/libserialport/libserialport-0.1.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+if [[ ${PV} == "9999" ]]; then
+       EGIT_REPO_URI="https://github.com/sigrokproject/${PN}.git";
+       inherit autotools git-r3
+else
+       SRC_URI="https://sigrok.org/download/source/${PN}/${P}.tar.gz";
+       KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+fi
+
+DESCRIPTION="Cross platform serial port access library"
+HOMEPAGE="https://sigrok.org/wiki/Libserialport";
+
+LICENSE="LGPL-3"
+SLOT="0"
+IUSE="static-libs"
+
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+       default
+
+       [[ ${PV} == "9999" ]] && eautoreconf
+}
+
+src_configure() {
+       econf $(use_enable static-libs static)
+}
+
+src_install() {
+       default
+
+       find "${ED}" -name '*.la' -type f -delete || die
+}

Reply via email to