summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-radio/xlog/Manifest1
-rw-r--r--media-radio/xlog/xlog-2.0.17.ebuild78
2 files changed, 79 insertions, 0 deletions
diff --git a/media-radio/xlog/Manifest b/media-radio/xlog/Manifest
index 6a8b5bd7a175..5647b9721d0f 100644
--- a/media-radio/xlog/Manifest
+++ b/media-radio/xlog/Manifest
@@ -1 +1,2 @@
DIST xlog-2.0.15.tar.gz 11461174 BLAKE2B 99b1d1cdcf6bad60f283d6885eb8c9317d5d35e411d2c449732e8f8bf9ed69e552fd73f2c1fcfc56ca386df447df8e5e2bbbffa80d596d8da4c347379231890c SHA512 58403d6cd05a222900236a9b165d1b51951f2efa668aba5989970036135a91955af64a4662a5cd6f6e7c4629e3353b3c93c79c3e14d81c7ae65a82cf9ade6397
+DIST xlog-2.0.17.tar.gz 11461214 BLAKE2B d106980f221aa8864f3bdd91589c2020f7b718bb36febbcba0987a35f38e2bd38143214733b7e6b5839a5c2220a850762f629fbf6eaf1d1e9c2e37c29f25f563 SHA512 0110c7b70794aaeded939040e9baf3093d06122ec35e7bec2599a6b68f5de6f299dbd2e0c72442ee2a3a158326b23ca88e7fec402f501f9dda4ff2cc47287c2a
diff --git a/media-radio/xlog/xlog-2.0.17.ebuild b/media-radio/xlog/xlog-2.0.17.ebuild
new file mode 100644
index 000000000000..ed0596205beb
--- /dev/null
+++ b/media-radio/xlog/xlog-2.0.17.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools fdo-mime toolchain-funcs
+MY_P=${P/_}
+
+DESCRIPTION="An amateur radio logging program"
+HOMEPAGE="https://www.nongnu.org/xlog"
+SRC_URI="https://download.savannah.gnu.org/releases/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/hamlib
+ dev-libs/glib:2
+ x11-libs/gtk+:2"
+DEPEND="${RDEPEND}
+ media-libs/libpng:0
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS=( AUTHORS data/doc/THANKS NEWS README )
+
+src_prepare() {
+ eapply -p0 "${FILESDIR}/${PN}-2.0.7-desktop.patch"
+
+ # Let portage handle updating mime/desktop databases,
+ eapply -p0 "${FILESDIR}/${PN}-2.0.13-desktop-update.patch"
+ # Drop -Werror
+ sed -i -e "s:-Werror::" configure.ac || die
+ # fix underlinking
+ sed -i -e "s:HAMLIB_LIBS@:HAMLIB_LIBS@ -lm:g" src/Makefile.am || die
+ eautoreconf
+
+ # Fix broken png files<<
+ einfo "Fixing broken png files."
+ pushd "${S}"/data/doc/manual/output/html
+ for png in xlog-clock.png xlog-dropdown.png xlog-editbox.png; do
+ pngfix -q --out=out.png ${png}
+ mv -f out.png "${png}" || die
+ done
+ popd
+ einfo "done ..."
+
+ eapply_user
+}
+
+src_configure() {
+ # mime-update causes file collisions if enabled
+ econf --disable-mime-update --disable-desktop-update \
+ --docdir=/usr/share/doc/${PF}
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ docompress -x /usr/share/doc/${PF}/{KEYS,ChangeLog,TODO,BUGS}
+ einstalldocs
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}