Gentoo Archives: gentoo-commits

From: Matthew Smith <matthew@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/libjaylink/
Date: Wed, 24 Aug 2022 18:06:01
Message-Id: 1661364333.07c1d5299fa6d64c9c220a49b05bc63dc0c44a83.matthew@gentoo
1 commit: 07c1d5299fa6d64c9c220a49b05bc63dc0c44a83
2 Author: Matthew Smith <matthew <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 24 18:04:50 2022 +0000
4 Commit: Matthew Smith <matthew <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 24 18:05:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07c1d529
7
8 dev-embedded/libjaylink: add 0.3.0
9
10 Also bump to EAPI-8, drop static-libs, drop multilib, and install the
11 udev rules.
12
13 Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>
14
15 dev-embedded/libjaylink/Manifest | 1 +
16 dev-embedded/libjaylink/libjaylink-0.3.0.ebuild | 45 +++++++++++++++++++++++++
17 2 files changed, 46 insertions(+)
18
19 diff --git a/dev-embedded/libjaylink/Manifest b/dev-embedded/libjaylink/Manifest
20 index a0c87c1b1243..02afd9e8d19c 100644
21 --- a/dev-embedded/libjaylink/Manifest
22 +++ b/dev-embedded/libjaylink/Manifest
23 @@ -1 +1,2 @@
24 DIST libjaylink-0.2.0.tar.bz2 59078 BLAKE2B 7928875248972bc00ec46511861e160491f7a53f729e0fbfe3a6d08335532fffc9e285e8a354a390037bebe696b6740bdc422164238947baf5e0fcf8f55c0dd5 SHA512 5a8c458982fdea2025aa3ce774d41cc58a283824dcd90a94531ee5e6ca50d9961b0ebb40a6dd3a97fdfcb44625437d685151560185449c3161fe399e0651da44
25 +DIST libjaylink-0.3.0.tar.bz2 61075 BLAKE2B 84946fbe0a061117f92b8011c0b5eeb30f8f74817128a5fd6a6d519c7a0f07f447d87d0fe72d7a47d17ab2fa33cdc3820e0c556f75c5dedad30faf5e6cf5739d SHA512 714de9297fb59eccee7eb461f37b20459991bffd31aac8eb20014f00716bb94ff4cda96a3d1746419c7722b6b7d97e7a42df9fb3b5c4f83a3f1ac79647159426
26
27 diff --git a/dev-embedded/libjaylink/libjaylink-0.3.0.ebuild b/dev-embedded/libjaylink/libjaylink-0.3.0.ebuild
28 new file mode 100644
29 index 000000000000..8601f4cec5f0
30 --- /dev/null
31 +++ b/dev-embedded/libjaylink/libjaylink-0.3.0.ebuild
32 @@ -0,0 +1,45 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +inherit autotools udev
39 +
40 +DESCRIPTION="Library to access J-Link devices"
41 +HOMEPAGE="https://gitlab.zapb.de/libjaylink/libjaylink"
42 +SRC_URI="https://gitlab.zapb.de/libjaylink/libjaylink/-/archive/${PV}/${P}.tar.bz2"
43 +
44 +LICENSE="GPL-2+"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~riscv ~x86"
47 +
48 +DEPEND="virtual/libusb:1"
49 +RDEPEND="${DEPEND}"
50 +BDEPEND="virtual/pkgconfig"
51 +
52 +src_prepare() {
53 + default
54 +
55 + # Remove -Werror from CFLAGS.
56 + sed -i '/^JAYLINK_CFLAGS=/s/ -Werror//' configure.ac || die
57 +
58 + eautoreconf
59 +}
60 +
61 +src_configure() {
62 + econf --disable-static
63 +}
64 +
65 +src_install() {
66 + default
67 + udev_dorules contrib/99-${PN}.rules
68 + find "${D}" -type f -name '*.la' -delete || die
69 +}
70 +
71 +pkg_postinst() {
72 + udev_reload
73 +}
74 +
75 +pkg_postrm() {
76 + udev_reload
77 +}