diff options
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/Manifest.gz | bin | 68667 -> 68668 bytes | |||
-rw-r--r-- | media-libs/hamlib/Manifest | 5 | ||||
-rw-r--r-- | media-libs/hamlib/hamlib-4.5.5-r1.ebuild | 97 | ||||
-rw-r--r-- | media-libs/hamlib/hamlib-4.5.5.ebuild | 9 | ||||
-rw-r--r-- | media-libs/hamlib/metadata.xml | 1 |
5 files changed, 105 insertions, 7 deletions
diff --git a/media-libs/Manifest.gz b/media-libs/Manifest.gz Binary files differindex 835628133b6d..7b4f265dd41d 100644 --- a/media-libs/Manifest.gz +++ b/media-libs/Manifest.gz diff --git a/media-libs/hamlib/Manifest b/media-libs/hamlib/Manifest index 4fcd51ae9546..2c47244de76f 100644 --- a/media-libs/hamlib/Manifest +++ b/media-libs/hamlib/Manifest @@ -1,3 +1,4 @@ DIST hamlib-4.5.5.tar.gz 2603846 BLAKE2B ad4a286a7aa1e972707cb9ed15a4268909a7d252a64b98b01d35c9d9e42c605cd600e819e195e49d501c1e135191fda585581e27801fa217c9141236a81ad770 SHA512 2cdff2630e89fa95c7ac40e998492e8a04e000fcca18b9491ddcb967927ffaa771ed2e6ac3232a060947883533a6ae7405042a2f8fdb1de157d71f74381f5899 -EBUILD hamlib-4.5.5.ebuild 2145 BLAKE2B 5d5d3932673d5a10d002fe1c6d8b1af5aac6417eb0b71742b4e25b4685d4559150a3f628fdc6f0fa38e77dd077be523fd935a6085855cc5a8586b2dbe9ff2fd5 SHA512 6056f08cb4156e5465642f7397d1eede36ac0f8343581b5f98f598a74b0c0b4fb2b8c1ad736397425584a061015936744000d74f44b3f9859239e3f6d73ef3c4 -MISC metadata.xml 326 BLAKE2B ea402b17f863a6a0370743d2756c6c3c15a8d7bdfd0777db2cec56cc41dd93198ad36ff114f3c9bc265ea54228d87856f3edd35f9696ac5c89136fce4c5acf87 SHA512 84642d6397e97ea348a12d44a01015a51af72b40af5456416ac3477e55da9ef5ab1934f66b2fac0762c4b0483e20e92c3a49f334bf136de16b01043a15073f7f +EBUILD hamlib-4.5.5-r1.ebuild 2165 BLAKE2B 20aef44ec1565610e5b47847d01d379f42d40efbe7fc1aab555ad915ac7a966d816306abf8be03ec10510d7c6caf220673ed6c967e990c0f1b43b6b9f45de916 SHA512 023fc990fc20ad812917ce51735af851ecd92e41172ac37d3b1e2bf4e3148dbbb66c303128be701aaf6c3abe94a6e6700cc46b33839d1a4935b99658be095e35 +EBUILD hamlib-4.5.5.ebuild 2152 BLAKE2B b9eba3284b4d8ff5ebf47fe606713d1348d1cc6fbcbe640566d001b03a8eebde91700ea78603e73624a8ac74fc9744b56345558d95c5f557ae4251b087ebe86a SHA512 33cfc6ce3a0a09b75967f67bd486f33adedf637890e6d4c3e8896722e88248c2f157e49a7c4d4f10c696b829f9ff0b7b41b08e514bff9fec5659b332430bb71b +MISC metadata.xml 379 BLAKE2B 17bfaa1ae7f031e14bef4bad4d552e3d4b644b9578bd996a9e8454b6b55f4029c3395e8a1cfc5a2b27a5372cd1aea140e0aebe637f7eb7889008fb434897b681 SHA512 c8c7a37088c0da4952a557776db8b6b701df23c07c4b17c50b77a199a6e7740369e27254eabae4e504ecb07871d33aec008e54bc7a787030828616ab36dfcb93 diff --git a/media-libs/hamlib/hamlib-4.5.5-r1.ebuild b/media-libs/hamlib/hamlib-4.5.5-r1.ebuild new file mode 100644 index 000000000000..f6aa86f75387 --- /dev/null +++ b/media-libs/hamlib/hamlib-4.5.5-r1.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +MY_P=${P/_rc2/~rc2} + +inherit autotools python-single-r1 + +DESCRIPTION="Ham radio backend rig control libraries" +HOMEPAGE="https://www.hamlib.github.io" +SRC_URI="mirror://sourceforge/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 + >=sys-devel/libtool-2.2 + doc? ( app-doc/doxygen + dev-util/source-highlight )" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DOCS=(AUTHORS NEWS PLAN README README.betatester README.developer) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + + # fix hardcoded libdir paths + sed -i -e "s#fix}/lib#fix}/$(get_libdir)/hamlib#" \ + -e "s#fix}/include#fix}/include/hamlib#" \ + hamlib.pc.in || die "sed failed" + + # 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() { + 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 +} diff --git a/media-libs/hamlib/hamlib-4.5.5.ebuild b/media-libs/hamlib/hamlib-4.5.5.ebuild index 96af68a967fc..0a7003a9cb26 100644 --- a/media-libs/hamlib/hamlib-4.5.5.ebuild +++ b/media-libs/hamlib/hamlib-4.5.5.ebuild @@ -9,10 +9,11 @@ MY_P=${P/_rc2/~rc2} inherit autotools python-single-r1 DESCRIPTION="Ham radio backend rig control libraries" -HOMEPAGE="http://www.hamlib.org" +HOMEPAGE="https://www.hamlib.github.io" SRC_URI="mirror://sourceforge/hamlib/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" -LICENSE="LGPL-2 GPL-2" +LICENSE="LGPL-2+ GPL-2+" SLOT="0/4.2" KEYWORDS="amd64 ~arm ~arm64 ~riscv x86" IUSE="doc perl python tcl" @@ -27,7 +28,7 @@ RDEPEND=" python? ( ${PYTHON_DEPS} ) tcl? ( dev-lang/tcl:0= )" -DEPEND=" ${RDEPEND} +DEPEND="${RDEPEND} virtual/pkgconfig dev-lang/swig >=sys-devel/libtool-2.2 @@ -38,8 +39,6 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}" DOCS=(AUTHORS NEWS PLAN README README.betatester README.developer) -S="${WORKDIR}/${MY_P}" - pkg_setup() { use python && python-single-r1_pkg_setup } diff --git a/media-libs/hamlib/metadata.xml b/media-libs/hamlib/metadata.xml index 18a56ea21ff4..1cb8e6ea9822 100644 --- a/media-libs/hamlib/metadata.xml +++ b/media-libs/hamlib/metadata.xml @@ -7,5 +7,6 @@ </maintainer> <upstream> <remote-id type="sourceforge">hamlib</remote-id> + <remote-id type="github">Hamlib/Hamlib</remote-id> </upstream> </pkgmetadata> |