summaryrefslogtreecommitdiff
path: root/media-libs/hamlib
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/hamlib')
-rw-r--r--media-libs/hamlib/Manifest1
-rw-r--r--media-libs/hamlib/hamlib-4.6.2-r1.ebuild100
2 files changed, 101 insertions, 0 deletions
diff --git a/media-libs/hamlib/Manifest b/media-libs/hamlib/Manifest
index 7299b522934f..66f999b1eda7 100644
--- a/media-libs/hamlib/Manifest
+++ b/media-libs/hamlib/Manifest
@@ -1,4 +1,5 @@
AUX hamlib-drop-lua.patch 2552 BLAKE2B 85ce143502baf4fb6ff4b58708e31308ef57d92bb51ce658f22bd50a27c9edb9213d16690afda2be701d204723ba6b4fe64b189b3db61734e7427e681dc4b4eb SHA512 bc607cb1b82c4a2ffcd1eb244a99d6a70c4768a674343b604e64413d13b397e6f0cdd8dc684079941e30decffd16c3b625814d6c01a643e27030d254308ec2c0
DIST hamlib-4.6.2.tar.gz 2909790 BLAKE2B 8bba73b446be13f4be592333b51b863f7299d189c640e2d1bfb6dd82f8f5e19ed6a1f39be09811d2061bb416696dd24907a9248b7bc96360e7a0fec8783701b1 SHA512 8b8b7e4c95e4331f1ace1d724924e30c66a88d04d5354fd28d28090b751184300196e4512504136ece98cef374e69dd58cc597819f8802ddadb978c7a0bf731d
+EBUILD hamlib-4.6.2-r1.ebuild 2228 BLAKE2B 5272c20c3136239117261ac87b8e55c6ff166d6d943b0fbbdde56955d68c3a4ce81f3116de5407c50b1e15c0407bb2cddb4b0033d85a2e5e32ffa70f7c2ee0c5 SHA512 ed36938580663bc23a3789fb8cb715b236bb119568dcedb5c898307c948a3a2b2fdf24fbfca95efd0aa51ec75eb5daf07adc3f334a261e57c3865e70fab20ae6
EBUILD hamlib-4.6.2.ebuild 2228 BLAKE2B 73c9a7843868574b03cca2d4544fd52afa7868cc0b2ae68e6bfd8305e658fd16cc28d1579c42883b8002c5cb99fbc68db9ae52d28a4d94cd0a5813c44c1f2042 SHA512 6c7c14441ce8b8febd467a45c55901b1c540f7f22be4bc5a4cd0f1e4641c2a733a9e30eb5894af6994204e45d500f2d531b5d67cf265ca3f239449f3d5114f1c
MISC metadata.xml 379 BLAKE2B 17bfaa1ae7f031e14bef4bad4d552e3d4b644b9578bd996a9e8454b6b55f4029c3395e8a1cfc5a2b27a5372cd1aea140e0aebe637f7eb7889008fb434897b681 SHA512 c8c7a37088c0da4952a557776db8b6b701df23c07c4b17c50b77a199a6e7740369e27254eabae4e504ecb07871d33aec008e54bc7a787030828616ab36dfcb93
diff --git a/media-libs/hamlib/hamlib-4.6.2-r1.ebuild b/media-libs/hamlib/hamlib-4.6.2-r1.ebuild
new file mode 100644
index 000000000000..ec506e9338f2
--- /dev/null
+++ b/media-libs/hamlib/hamlib-4.6.2-r1.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+MY_P=${P/_rc2/~rc2}
+
+inherit autotools flag-o-matic python-single-r1
+
+DESCRIPTION="Ham radio backend rig control libraries"
+HOMEPAGE="https://www.hamlib.github.io"
+SRC_URI="https://downloads.sourceforge.net/hamlib/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="LGPL-2+ GPL-2+"
+SLOT="0/4.2"
+KEYWORDS="amd64 ~arm ~arm64 ~riscv x86"
+IUSE="doc perl python tcl"
+
+RESTRICT="test"
+
+RDEPEND="
+ =virtual/libusb-0*
+ dev-libs/libxml2
+ sys-libs/readline:0=
+ perl? ( dev-lang/perl )
+ python? ( ${PYTHON_DEPS} )
+ tcl? ( dev-lang/tcl:0= )"
+
+DEPEND="${RDEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ dev-lang/swig
+ dev-build/autoconf-archive
+ >=dev-build/libtool-2.2
+ doc? ( app-text/doxygen
+ dev-util/source-highlight )"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DOCS=(AUTHORS NEWS PLAN README README.betatester README.developer)
+
+PATCHES=( "${FILESDIR}/hamlib-drop-lua.patch" )
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # Correct install target to whatever INSTALLDIRS says and use vendor
+ # installdirs everywhere (bug #611550)
+ sed -i -e "s#install_site#install#" \
+ -e 's#MAKEFILE="Hamlib-pl.mk"#MAKEFILE="Hamlib-pl.mk" INSTALLDIRS=vendor#' \
+ bindings/Makefile.am || die "sed failed patching for perl"
+
+ # make building of documentation compatible with autotools-utils
+ sed -i -e "s/doc:/html:/g" doc/Makefile.am || die "sed failed"
+
+ eautoreconf
+}
+
+src_configure() {
+ # -Werror=lto-type-mismatch
+ # https://bugs.gentoo.org/926839
+ # https://github.com/Hamlib/Hamlib/issues/1524
+ filter-lto
+
+ econf \
+ --libdir=/usr/$(get_libdir)/hamlib \
+ --disable-static \
+ --with-xml-support \
+ $(use_with perl perl-binding) \
+ $(use_with python python-binding) \
+ $(use_with tcl tcl-binding)
+}
+
+src_compile() {
+ emake
+ use doc && emake html
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ use python && python_optimize
+
+ use doc && HTML_DOCS=( doc/html/ )
+ einstalldocs
+
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins hamlib.pc
+
+ echo "LDPATH=/usr/$(get_libdir)/hamlib" > "${T}"/73hamlib
+ doenvd "${T}"/73hamlib
+
+ find "${ED}" -name '*.la' -delete || die
+}