Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-radio/xwxapt/files/, media-radio/xwxapt/
Date: Sun, 26 Jan 2020 19:26:48
Message-Id: 1580066780.a74f6487855c93ecda28722b6c9503f2dedadd83.soap@gentoo
1 commit: a74f6487855c93ecda28722b6c9503f2dedadd83
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 26 19:26:20 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 26 19:26:20 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a74f6487
7
8 media-radio/xwxapt: Version bump to 3.4.2
9
10 Bug: https://bugs.gentoo.org/688240
11 Package-Manager: Portage-2.3.85, Repoman-2.3.20
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 media-radio/xwxapt/Manifest | 1 +
15 .../xwxapt/files/xwxapt-3.4.2-fix-autotools.patch | 43 ++++++++++++++++++
16 media-radio/xwxapt/xwxapt-3.4.2.ebuild | 52 ++++++++++++++++++++++
17 3 files changed, 96 insertions(+)
18
19 diff --git a/media-radio/xwxapt/Manifest b/media-radio/xwxapt/Manifest
20 index 5ec99d04154..d6300c8805a 100644
21 --- a/media-radio/xwxapt/Manifest
22 +++ b/media-radio/xwxapt/Manifest
23 @@ -1,3 +1,4 @@
24 DIST xwxapt-3.1.tar.bz2 258794 BLAKE2B 9a78f66a03095da209575096206e440149f329cce7be0e887704da9ef95c593e07c20107703744cfeae801e1afda94e42e312f3be788af6455d44b65c15bccb5 SHA512 68e332ddd50567181d0d8e36d1466adf7baab85670d94a92cbda478c7e61bc1bac547062b8c4ec34cbf2e832919ad76002423360c7c804525a1436ce7acb7ba9
25 DIST xwxapt-3.2.tar.bz2 258901 BLAKE2B 4e82c8c21d43f9407c38699b275c690cce80555e5a738b0d22f20e32cf6586f078ba84563c4b92ebdfcc8714b24128e3f142b432e38b62cdb619976234b024fc SHA512 46adcbabaf46d0a91b5284d8171d94777846dabce62cdf36df785d9e6f94fa3df987e3b7cce636d96aed6b3cffb9b5e295dc4d46b7bc3bd209acf896c8c45858
26 DIST xwxapt-3.3.tar.bz2 260010 BLAKE2B b26c8a6a05c879f1aa6f3a844f72383fdce1ce3f6efeb36305723fb3aba7f01f05cd4fd244f574e2cd8b759b499f95a5aa54db244ebefc8fb3d91d8179ce0ea5 SHA512 ea9ecc8bc5948005a09ff15e9909387980a873e9770f28efbd828a8475a0161329bd4b00e4dde9c7c50e9e4ffbfd288e25ad09224bec66250acf8eeeba23ced6
27 +DIST xwxapt-3.4.2.tar.bz2 262059 BLAKE2B 5e5642523e434dee6d2a35dc1be5bead3449afddb285e367cd99c7d2de14f2b1d7181bd6bc7d91a652faaa38aac3ce1b7d51d80ece665b230667674d9cb52779 SHA512 15969db9869699b09e2ddd1f800bff4956dcdedf91c5070d6747d3fa7ec22f78460adc8533917523821712b4da9f75350a8780df45bfe8741ad88d694dda6210
28
29 diff --git a/media-radio/xwxapt/files/xwxapt-3.4.2-fix-autotools.patch b/media-radio/xwxapt/files/xwxapt-3.4.2-fix-autotools.patch
30 new file mode 100644
31 index 00000000000..7f1592e9825
32 --- /dev/null
33 +++ b/media-radio/xwxapt/files/xwxapt-3.4.2-fix-autotools.patch
34 @@ -0,0 +1,43 @@
35 +--- a/configure.ac
36 ++++ b/configure.ac
37 +@@ -35,17 +35,16 @@
38 + AC_CHECK_LIB([gmodule-2.0], [g_module_open])
39 +
40 + # Internationalization tools
41 ++AM_GNU_GETTEXT([external])
42 + AM_GNU_GETTEXT_VERSION([0.19.8])
43 + GETTEXT_PACKAGE=xwxapt
44 + AC_SUBST(GETTEXT_PACKAGE)
45 + AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Gettext package.])
46 +-AM_GNU_GETTEXT
47 + PROGRAMNAME_LOCALEDIR=[${datadir}/locale]
48 + AC_SUBST(PROGRAMNAME_LOCALEDIR)
49 +
50 + # Add the languages which your application supports here.
51 + ALL_LINGUAS=""
52 +-AM_GNU_GETTEXT
53 +
54 + # Checks for header files.
55 + AC_CHECK_HEADERS([libintl.h stdlib.h string.h unistd.h])
56 +--- a/Makefile.am
57 ++++ b/Makefile.am
58 +@@ -48,18 +48,5 @@
59 + if test -d files/; then \
60 + cp files/$(PACKAGE).desktop $(DESTDIR)/usr/share/applications/; \
61 + cp files/$(PACKAGE).png $(DESTDIR)/usr/share/pixmaps/; \
62 +- fi; \
63 +- if !(test -d $(DESTDIR)/usr/share/doc/$(PACKAGE)); then \
64 +- mkdir $(DESTDIR)/usr/share/doc/$(PACKAGE)/; \
65 +- fi; \
66 +- if test -d doc/; then \
67 +- cp -r doc/* $(DESTDIR)/usr/share/doc/$(PACKAGE)/; \
68 +- cp -r doc/$(PACKAGE).1.gz $(DESTDIR)/usr/share/man/man1/; \
69 +- fi; \
70 +- if !(test -d /home/`logname`/$(PACKAGE)); then \
71 +- cp -r $(PACKAGE) /home/`logname`/; \
72 +- else \
73 +- cp $(PACKAGE)/$(PACKAGE).glade /home/`logname`/$(PACKAGE); \
74 +- fi; \
75 +- chown -R `logname`:`logname` /home/`logname`/$(PACKAGE);
76 ++ fi;
77 +
78
79 diff --git a/media-radio/xwxapt/xwxapt-3.4.2.ebuild b/media-radio/xwxapt/xwxapt-3.4.2.ebuild
80 new file mode 100644
81 index 00000000000..3b6927d2f97
82 --- /dev/null
83 +++ b/media-radio/xwxapt/xwxapt-3.4.2.ebuild
84 @@ -0,0 +1,52 @@
85 +# Copyright 1999-2020 Gentoo Authors
86 +# Distributed under the terms of the GNU General Public License v2
87 +
88 +EAPI=7
89 +
90 +inherit autotools
91 +
92 +DESCRIPTION="GTK+ linux weather satellite APT image decoder software"
93 +HOMEPAGE="http://www.qsl.net/5b4az/pages/apt.html"
94 +SRC_URI="http://www.qsl.net/5b4az/pkg/apt/${PN}/${P}.tar.bz2"
95 +
96 +LICENSE="GPL-3"
97 +SLOT="0"
98 +KEYWORDS="~amd64 ~x86"
99 +
100 +RDEPEND="
101 + dev-libs/glib:2
102 + media-libs/alsa-lib
103 + net-wireless/rtl-sdr
104 + x11-libs/gtk+:3"
105 +DEPEND="${RDEPEND}"
106 +BDEPEND="
107 + sys-devel/gettext
108 + virtual/pkgconfig"
109 +
110 +PATCHES=( "${FILESDIR}"/${PN}-3.4.2-fix-autotools.patch )
111 +HTML_DOCS=( doc/xwxapt.html )
112 +
113 +src_prepare() {
114 + default
115 +
116 + # create missing mkinstalldir and prepare package
117 + eautoreconf
118 +}
119 +
120 +src_install() {
121 + default
122 +
123 + insinto /usr/share/${PN}
124 + doins xwxapt/xwxaptrc
125 + doins xwxapt/xwxapt.glade
126 + dodir /usr/share/${PN}/images /usr/share/${PN}/records
127 +}
128 +
129 +pkg_postinst() {
130 + einfo "You must copy the /usr/share/xwxapt directory into your home directory"
131 + einfo "and configure the contained xwxaptrc file before starting the program"
132 +
133 + ewarn
134 + ewarn "If you just upgraded from <=xwxapt-3 do not miss to check"
135 + ewarn "for changes there"
136 +}