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