diff options
Diffstat (limited to 'media-radio')
-rw-r--r-- | media-radio/xwxapt/Manifest | 1 | ||||
-rw-r--r-- | media-radio/xwxapt/files/xwxapt-example-data.patch | 13 | ||||
-rw-r--r-- | media-radio/xwxapt/files/xwxapt-fix-autotools.patch | 22 | ||||
-rw-r--r-- | media-radio/xwxapt/xwxapt-3.4.3.ebuild | 44 |
4 files changed, 80 insertions, 0 deletions
diff --git a/media-radio/xwxapt/Manifest b/media-radio/xwxapt/Manifest index 8cb49bfd44b9..f1a7c7768769 100644 --- a/media-radio/xwxapt/Manifest +++ b/media-radio/xwxapt/Manifest @@ -1 +1,2 @@ DIST xwxapt-3.4.2.tar.bz2 262059 BLAKE2B 5e5642523e434dee6d2a35dc1be5bead3449afddb285e367cd99c7d2de14f2b1d7181bd6bc7d91a652faaa38aac3ce1b7d51d80ece665b230667674d9cb52779 SHA512 15969db9869699b09e2ddd1f800bff4956dcdedf91c5070d6747d3fa7ec22f78460adc8533917523821712b4da9f75350a8780df45bfe8741ad88d694dda6210 +DIST xwxapt-3.4.3.tar.bz2 265272 BLAKE2B 77b571df40baf7fc9caacb941b6a5f07e9183141ac5e431e9830665a4b3e08a0072eb4338b858803afe195a965ce1233263ac86f85d5aa69f9ecc05a8dee5e95 SHA512 a7729af02ac29a9e24968a5b9af51fb538cc04f20ae04c5af4c2fcdff808e1c47f2063bb6b18863441c17f79856e24a076328b4488bafb3158dcc7e6c3e3bf7f diff --git a/media-radio/xwxapt/files/xwxapt-example-data.patch b/media-radio/xwxapt/files/xwxapt-example-data.patch new file mode 100644 index 000000000000..71ed56ae54e4 --- /dev/null +++ b/media-radio/xwxapt/files/xwxapt-example-data.patch @@ -0,0 +1,13 @@ +diff --git a/src/main.c b/src/main.c +index 6cec142..7d7c1bf 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -127,7 +127,7 @@ main (int argc, char *argv[]) + /* Create file path to xwxapt examples directory */ + exe_path[bytes] = '\0'; + Strlcpy( file_path, exe_path, sizeof(file_path) ); +- Strlcat( file_path, "/share/examples/xwxapt", sizeof(file_path) ); ++ Strlcat( file_path, "/share/xwxapt", sizeof(file_path) ); + fprintf( stderr, "xwxapt: creating xwxapt config directory from: %s\n", file_path ); + + /* Create system command to copy examples/xwxapt to ~/.xwxapt */ diff --git a/media-radio/xwxapt/files/xwxapt-fix-autotools.patch b/media-radio/xwxapt/files/xwxapt-fix-autotools.patch new file mode 100644 index 000000000000..ba74a4eacf19 --- /dev/null +++ b/media-radio/xwxapt/files/xwxapt-fix-autotools.patch @@ -0,0 +1,22 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -35,17 +35,16 @@ + AC_CHECK_LIB([gmodule-2.0], [g_module_open]) + + # Internationalization tools ++AM_GNU_GETTEXT([external]) + AM_GNU_GETTEXT_VERSION([0.19.8]) + GETTEXT_PACKAGE=xwxapt + AC_SUBST(GETTEXT_PACKAGE) + AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Gettext package.]) +-AM_GNU_GETTEXT + PROGRAMNAME_LOCALEDIR=[${datadir}/locale] + AC_SUBST(PROGRAMNAME_LOCALEDIR) + + # Add the languages which your application supports here. + ALL_LINGUAS="" +-AM_GNU_GETTEXT + + # Checks for header files. + AC_CHECK_HEADERS([libintl.h stdlib.h string.h unistd.h]) + diff --git a/media-radio/xwxapt/xwxapt-3.4.3.ebuild b/media-radio/xwxapt/xwxapt-3.4.3.ebuild new file mode 100644 index 000000000000..91a98a0278fc --- /dev/null +++ b/media-radio/xwxapt/xwxapt-3.4.3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="GTK+ linux weather satellite APT image decoder software" +HOMEPAGE="https://www.qsl.net/5b4az/pages/apt.html" +SRC_URI="https://www.qsl.net/5b4az/pkg/apt/${PN}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-libs/glib:2 + media-libs/alsa-lib + net-wireless/rtl-sdr + x11-libs/gtk+:3" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-devel/gettext + virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${PN}-fix-autotools.patch + "${FILESDIR}"/${PN}-example-data.patch ) +HTML_DOCS=( doc/xwxapt.html ) + +src_prepare() { + default + + eautoreconf +} + +src_install() { + default + + docompress -x /usr/share/man/man1/xwxapt.1.gz + rm "${D}"/usr/share/doc/${P}/${PN}.1.gz || die + rm "${D}"/usr/share/doc/${P}/${PN}.html || die + mv "${D}"/usr/share/examples/xwxapt "${D}"/usr/share || die + keepdir /usr/share/${PN}/images /usr/share/${PN}/records +} |