commit: e2c01f8459ab6ab4b6cc1a11226417675577448b Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> AuthorDate: Fri Jan 5 15:27:36 2024 +0000 Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> CommitDate: Fri Jan 5 15:27:36 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2c01f84
media-radio/flrig: add 2.0.05 Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org> media-radio/flrig/Manifest | 1 + media-radio/flrig/files/flrig-2.0.05-musl.patch | 32 +++++++++++++++++++++ media-radio/flrig/flrig-2.0.05.ebuild | 38 +++++++++++++++++++++++++ 3 files changed, 71 insertions(+) diff --git a/media-radio/flrig/Manifest b/media-radio/flrig/Manifest index 44e4a36c65b1..e0119d3249f2 100644 --- a/media-radio/flrig/Manifest +++ b/media-radio/flrig/Manifest @@ -1 +1,2 @@ DIST flrig-2.0.04.tar.gz 1108760 BLAKE2B 9ca60d182c5b94f17e8baefebc822792111954b3c11f03e5cabd570e60769804c9ec1153afd36a074f16e9880792d6b51b5545e59b988adffee912e7b6d2a8e5 SHA512 db1a4bb148900fb9e1a6feb44fd5a017d8aac1a2f81e577e78176c241adc39cf05378057bc97ad997581ed0d3d8a79f3ec726d1d194322b46d709df6e913c84f +DIST flrig-2.0.05.tar.gz 1112204 BLAKE2B 58cda5069546aee790bb819f9ac2713896281de283345fa6a84c466c67b5cce236c63dec41ad3a226849195fba982c4b69b4d5d386ffb0f4d8b14767ca9cc6bf SHA512 a06df0f8810212a1f614899be162e1d0373f29492bca26718b4385b8fba3be4293b95e366cb391fb938d40228bb5d091049414c7ae2104dbd7a0ddd2011dc88b diff --git a/media-radio/flrig/files/flrig-2.0.05-musl.patch b/media-radio/flrig/files/flrig-2.0.05-musl.patch new file mode 100644 index 000000000000..737c893cf7a8 --- /dev/null +++ b/media-radio/flrig/files/flrig-2.0.05-musl.patch @@ -0,0 +1,32 @@ +diff --git a/src/cmedia/cmedia.cxx b/src/cmedia/cmedia.cxx +index ba01f5d..0bd3c1c 100644 +--- a/src/cmedia/cmedia.cxx ++++ b/src/cmedia/cmedia.cxx +@@ -41,11 +41,6 @@ + #ifndef __WIN32__ + #include <termios.h> + #include <glob.h> +-# ifndef __APPLE__ +-# ifndef __FreeBSD__ +-# include <error.h> +-# endif +-# endif + #endif + + #include "config.h" +diff --git a/src/cmedia/tmate2.cxx b/src/cmedia/tmate2.cxx +index 8a3e37a..cde0c76 100644 +--- a/src/cmedia/tmate2.cxx ++++ b/src/cmedia/tmate2.cxx +@@ -44,11 +44,6 @@ + #ifndef __WIN32__ + #include <termios.h> + #include <glob.h> +-# ifndef __APPLE__ +-# ifndef __FreeBSD__ +-# include <error.h> +-# endif +-# endif + #endif + + #include "config.h" diff --git a/media-radio/flrig/flrig-2.0.05.ebuild b/media-radio/flrig/flrig-2.0.05.ebuild new file mode 100644 index 000000000000..a5bc7dbf08a2 --- /dev/null +++ b/media-radio/flrig/flrig-2.0.05.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic + +DESCRIPTION="Transceiver control program for Amateur Radio use" +HOMEPAGE="http://www.w1hkj.com/flrig-help/index.html" +SRC_URI="mirror://sourceforge/fldigi/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls" + +DOCS=(AUTHORS ChangeLog README) + +RDEPEND="x11-libs/libX11 + x11-libs/fltk:1 + x11-misc/xdg-utils" + +DEPEND="${RDEPEND} + sys-devel/gettext" + +PATCHES=( "${FILESDIR}/${PN}-2.0.05-musl.patch" ) + +src_prepare() { + eapply ${PATCHES[@]} + eapply_user +} + +src_configure() { + #fails to compile with -flto (bug #860408) + filter-lto + + econf +}