Gentoo Archives: gentoo-commits

From: Thomas Beierlein <tomjbe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/hamlib/
Date: Mon, 02 Jan 2023 16:37:21
Message-Id: 1672677424.91e905cd85af3d6c8195e817320eae31f2f1dd40.tomjbe@gentoo
1 commit: 91e905cd85af3d6c8195e817320eae31f2f1dd40
2 Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 2 16:36:13 2023 +0000
4 Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 16:37:04 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91e905cd
7
8 media-libs/hamlib: add 4.5.3
9
10 Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>
11
12 media-libs/hamlib/Manifest | 1 +
13 media-libs/hamlib/hamlib-4.5.3.ebuild | 97 +++++++++++++++++++++++++++++++++++
14 2 files changed, 98 insertions(+)
15
16 diff --git a/media-libs/hamlib/Manifest b/media-libs/hamlib/Manifest
17 index 5d5553ba9f2c..7a18497ef0b7 100644
18 --- a/media-libs/hamlib/Manifest
19 +++ b/media-libs/hamlib/Manifest
20 @@ -1,3 +1,4 @@
21 DIST hamlib-4.4.tar.gz 2401399 BLAKE2B 4256b5b4374c62ef4fb957d29deda95aa9d15a8b52b81c5db1c07f3ebbf4c8e48c6c082769cef82c8457b3f813ac00ef7a37136615747f2c93e5275a112891e7 SHA512 37366ba180031de34da447c3d4e0086f156b893f57b5ab9bbc38b8e1f4bf9310fa1a9eb2a6d7884f1f11900dbdb811b4071e023aba571ea0ac5d07ddb122bf7b
22 DIST hamlib-4.5.1.tar.gz 2588713 BLAKE2B 11b45fe82adc0bedfabed1847589ee67fe3612c8b2c34e0c91bbf33b237f2992c97ab266687f7173767bf01db81747ea1b710af0bd3fdb3aa5c4035190d35ceb SHA512 3fbfa18f3f04890eb0bb2ffef5347ffc3759fa276d613785a0e585dd3613837db4461eb79bf7e3794f6ce33dcae8a4357b3f27c8be44a9d838fcb82cb0a60753
23 +DIST hamlib-4.5.3.tar.gz 2590200 BLAKE2B 7c06a20a1185a2e413fee56231f3e0f6aa77a7585b9853896b00abb773e2e23fc5e97a8a3fbb873528282756ee674b1ca5b2b14f0fe8e6b9b8e8f7e8ffa223f2 SHA512 be3b58c7276c1289d85b4dc9054016757200fde06d66116f7a1687442e53bf322f0a3ae974c9b784cbd0bff0c64b901b97fac74184f4b4a0fdf1f5079d0ea509
24 DIST hamlib-4.5.tar.gz 2568061 BLAKE2B 6ccb0c1faf8f64453c3696e75ced413048e7705184c7755fdde200be1d9b17f5495427ba492317cf7e75b5f373b859840d1d364db1f057c28f7779f8284fd96a SHA512 671da06aed54951ca810b4de7291a16de3a2f6ed54b8d024d4d9bfed9dfc6a21336c3cadd6f5b128c3ab54f1edd2b22db491b074b7759b9dfd9e71e1ce4055f3
25
26 diff --git a/media-libs/hamlib/hamlib-4.5.3.ebuild b/media-libs/hamlib/hamlib-4.5.3.ebuild
27 new file mode 100644
28 index 000000000000..1b172b2c2880
29 --- /dev/null
30 +++ b/media-libs/hamlib/hamlib-4.5.3.ebuild
31 @@ -0,0 +1,97 @@
32 +# Copyright 1999-2023 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +MY_P=${P/_rc2/~rc2}
39 +
40 +inherit autotools python-single-r1
41 +
42 +DESCRIPTION="Ham radio backend rig control libraries"
43 +HOMEPAGE="http://www.hamlib.org"
44 +SRC_URI="mirror://sourceforge/hamlib/${MY_P}.tar.gz"
45 +
46 +LICENSE="LGPL-2 GPL-2"
47 +SLOT="0/4.2"
48 +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
49 +IUSE="doc perl python tcl"
50 +
51 +RESTRICT="test"
52 +
53 +RDEPEND="
54 + =virtual/libusb-0*
55 + dev-libs/libxml2
56 + sys-libs/readline:0=
57 + perl? ( dev-lang/perl )
58 + python? ( ${PYTHON_DEPS} )
59 + tcl? ( dev-lang/tcl:0= )"
60 +
61 +DEPEND=" ${RDEPEND}
62 + virtual/pkgconfig
63 + dev-lang/swig
64 + >=sys-devel/libtool-2.2
65 + doc? ( app-doc/doxygen
66 + dev-util/source-highlight )"
67 +
68 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
69 +
70 +DOCS=(AUTHORS NEWS PLAN README README.betatester README.developer)
71 +
72 +S="${WORKDIR}/${MY_P}"
73 +
74 +pkg_setup() {
75 + use python && python-single-r1_pkg_setup
76 +}
77 +
78 +src_prepare() {
79 + default
80 +
81 + # fix hardcoded libdir paths
82 + sed -i -e "s#fix}/lib#fix}/$(get_libdir)/hamlib#" \
83 + -e "s#fix}/include#fix}/include/hamlib#" \
84 + hamlib.pc.in || die "sed failed"
85 +
86 + # Correct install target to whatever INSTALLDIRS says and use vendor
87 + # installdirs everywhere (bug #611550)
88 + sed -i -e "s#install_site#install#" \
89 + -e 's#MAKEFILE="Hamlib-pl.mk"#MAKEFILE="Hamlib-pl.mk" INSTALLDIRS=vendor#' \
90 + bindings/Makefile.am || die "sed failed patching for perl"
91 +
92 + # make building of documentation compatible with autotools-utils
93 + sed -i -e "s/doc:/html:/g" doc/Makefile.am || die "sed failed"
94 +
95 + eautoreconf
96 +}
97 +
98 +src_configure() {
99 + econf \
100 + --libdir=/usr/$(get_libdir)/hamlib \
101 + --disable-static \
102 + --with-xml-support \
103 + $(use_with perl perl-binding) \
104 + $(use_with python python-binding) \
105 + $(use_with tcl tcl-binding)
106 +}
107 +
108 +src_compile() {
109 + emake
110 + use doc && emake html
111 +}
112 +
113 +src_install() {
114 + emake DESTDIR="${D}" install
115 +
116 + use python && python_optimize
117 +
118 + use doc && HTML_DOCS=( doc/html/ )
119 + einstalldocs
120 +
121 + insinto /usr/$(get_libdir)/pkgconfig
122 + doins hamlib.pc
123 +
124 + echo "LDPATH=/usr/$(get_libdir)/hamlib" > "${T}"/73hamlib
125 + doenvd "${T}"/73hamlib
126 +
127 + find "${ED}" -name '*.la' -delete || die
128 +}