1 |
commit: 45580f26d7825cdbcd371739a32cb2b7279a48d7 |
2 |
Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 1 12:20:50 2022 +0000 |
4 |
Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 1 12:23:24 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45580f26 |
7 |
|
8 |
media-radio/xwxapt: add 3.4.3 |
9 |
|
10 |
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org> |
11 |
|
12 |
media-radio/xwxapt/Manifest | 1 + |
13 |
media-radio/xwxapt/files/xwxapt-example-data.patch | 13 +++++++ |
14 |
.../xwxapt/files/xwxapt-fix-autotools.patch | 22 +++++++++++ |
15 |
media-radio/xwxapt/xwxapt-3.4.3.ebuild | 44 ++++++++++++++++++++++ |
16 |
4 files changed, 80 insertions(+) |
17 |
|
18 |
diff --git a/media-radio/xwxapt/Manifest b/media-radio/xwxapt/Manifest |
19 |
index 8cb49bfd44b9..f1a7c7768769 100644 |
20 |
--- a/media-radio/xwxapt/Manifest |
21 |
+++ b/media-radio/xwxapt/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST xwxapt-3.4.2.tar.bz2 262059 BLAKE2B 5e5642523e434dee6d2a35dc1be5bead3449afddb285e367cd99c7d2de14f2b1d7181bd6bc7d91a652faaa38aac3ce1b7d51d80ece665b230667674d9cb52779 SHA512 15969db9869699b09e2ddd1f800bff4956dcdedf91c5070d6747d3fa7ec22f78460adc8533917523821712b4da9f75350a8780df45bfe8741ad88d694dda6210 |
24 |
+DIST xwxapt-3.4.3.tar.bz2 265272 BLAKE2B 77b571df40baf7fc9caacb941b6a5f07e9183141ac5e431e9830665a4b3e08a0072eb4338b858803afe195a965ce1233263ac86f85d5aa69f9ecc05a8dee5e95 SHA512 a7729af02ac29a9e24968a5b9af51fb538cc04f20ae04c5af4c2fcdff808e1c47f2063bb6b18863441c17f79856e24a076328b4488bafb3158dcc7e6c3e3bf7f |
25 |
|
26 |
diff --git a/media-radio/xwxapt/files/xwxapt-example-data.patch b/media-radio/xwxapt/files/xwxapt-example-data.patch |
27 |
new file mode 100644 |
28 |
index 000000000000..71ed56ae54e4 |
29 |
--- /dev/null |
30 |
+++ b/media-radio/xwxapt/files/xwxapt-example-data.patch |
31 |
@@ -0,0 +1,13 @@ |
32 |
+diff --git a/src/main.c b/src/main.c |
33 |
+index 6cec142..7d7c1bf 100644 |
34 |
+--- a/src/main.c |
35 |
++++ b/src/main.c |
36 |
+@@ -127,7 +127,7 @@ main (int argc, char *argv[]) |
37 |
+ /* Create file path to xwxapt examples directory */ |
38 |
+ exe_path[bytes] = '\0'; |
39 |
+ Strlcpy( file_path, exe_path, sizeof(file_path) ); |
40 |
+- Strlcat( file_path, "/share/examples/xwxapt", sizeof(file_path) ); |
41 |
++ Strlcat( file_path, "/share/xwxapt", sizeof(file_path) ); |
42 |
+ fprintf( stderr, "xwxapt: creating xwxapt config directory from: %s\n", file_path ); |
43 |
+ |
44 |
+ /* Create system command to copy examples/xwxapt to ~/.xwxapt */ |
45 |
|
46 |
diff --git a/media-radio/xwxapt/files/xwxapt-fix-autotools.patch b/media-radio/xwxapt/files/xwxapt-fix-autotools.patch |
47 |
new file mode 100644 |
48 |
index 000000000000..ba74a4eacf19 |
49 |
--- /dev/null |
50 |
+++ b/media-radio/xwxapt/files/xwxapt-fix-autotools.patch |
51 |
@@ -0,0 +1,22 @@ |
52 |
+--- a/configure.ac |
53 |
++++ b/configure.ac |
54 |
+@@ -35,17 +35,16 @@ |
55 |
+ AC_CHECK_LIB([gmodule-2.0], [g_module_open]) |
56 |
+ |
57 |
+ # Internationalization tools |
58 |
++AM_GNU_GETTEXT([external]) |
59 |
+ AM_GNU_GETTEXT_VERSION([0.19.8]) |
60 |
+ GETTEXT_PACKAGE=xwxapt |
61 |
+ AC_SUBST(GETTEXT_PACKAGE) |
62 |
+ AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Gettext package.]) |
63 |
+-AM_GNU_GETTEXT |
64 |
+ PROGRAMNAME_LOCALEDIR=[${datadir}/locale] |
65 |
+ AC_SUBST(PROGRAMNAME_LOCALEDIR) |
66 |
+ |
67 |
+ # Add the languages which your application supports here. |
68 |
+ ALL_LINGUAS="" |
69 |
+-AM_GNU_GETTEXT |
70 |
+ |
71 |
+ # Checks for header files. |
72 |
+ AC_CHECK_HEADERS([libintl.h stdlib.h string.h unistd.h]) |
73 |
+ |
74 |
|
75 |
diff --git a/media-radio/xwxapt/xwxapt-3.4.3.ebuild b/media-radio/xwxapt/xwxapt-3.4.3.ebuild |
76 |
new file mode 100644 |
77 |
index 000000000000..91a98a0278fc |
78 |
--- /dev/null |
79 |
+++ b/media-radio/xwxapt/xwxapt-3.4.3.ebuild |
80 |
@@ -0,0 +1,44 @@ |
81 |
+# Copyright 1999-2022 Gentoo Authors |
82 |
+# Distributed under the terms of the GNU General Public License v2 |
83 |
+ |
84 |
+EAPI=8 |
85 |
+ |
86 |
+inherit autotools |
87 |
+ |
88 |
+DESCRIPTION="GTK+ linux weather satellite APT image decoder software" |
89 |
+HOMEPAGE="https://www.qsl.net/5b4az/pages/apt.html" |
90 |
+SRC_URI="https://www.qsl.net/5b4az/pkg/apt/${PN}/${P}.tar.bz2" |
91 |
+ |
92 |
+LICENSE="GPL-3" |
93 |
+SLOT="0" |
94 |
+KEYWORDS="~amd64 ~x86" |
95 |
+ |
96 |
+RDEPEND=" |
97 |
+ dev-libs/glib:2 |
98 |
+ media-libs/alsa-lib |
99 |
+ net-wireless/rtl-sdr |
100 |
+ x11-libs/gtk+:3" |
101 |
+DEPEND="${RDEPEND}" |
102 |
+BDEPEND=" |
103 |
+ sys-devel/gettext |
104 |
+ virtual/pkgconfig" |
105 |
+ |
106 |
+PATCHES=( "${FILESDIR}"/${PN}-fix-autotools.patch |
107 |
+ "${FILESDIR}"/${PN}-example-data.patch ) |
108 |
+HTML_DOCS=( doc/xwxapt.html ) |
109 |
+ |
110 |
+src_prepare() { |
111 |
+ default |
112 |
+ |
113 |
+ eautoreconf |
114 |
+} |
115 |
+ |
116 |
+src_install() { |
117 |
+ default |
118 |
+ |
119 |
+ docompress -x /usr/share/man/man1/xwxapt.1.gz |
120 |
+ rm "${D}"/usr/share/doc/${P}/${PN}.1.gz || die |
121 |
+ rm "${D}"/usr/share/doc/${P}/${PN}.html || die |
122 |
+ mv "${D}"/usr/share/examples/xwxapt "${D}"/usr/share || die |
123 |
+ keepdir /usr/share/${PN}/images /usr/share/${PN}/records |
124 |
+} |