summaryrefslogtreecommitdiff
path: root/media-radio/xlog
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-09 04:26:33 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-09 04:26:33 +0100
commit6ee17dd82a3bcd0e90af4ebfbb3e411d342761be (patch)
tree5ade54018efa76614b79d832bbe15a22021b6d8c /media-radio/xlog
parent325837835fc86686829aaa6acace3d3c06c74cea (diff)
gentoo auto-resync : 09:10:2024 - 04:26:32
Diffstat (limited to 'media-radio/xlog')
-rw-r--r--media-radio/xlog/Manifest3
-rw-r--r--media-radio/xlog/files/xlog-2.0.25-desktop.patch12
-rw-r--r--media-radio/xlog/xlog-2.0.25.ebuild85
3 files changed, 100 insertions, 0 deletions
diff --git a/media-radio/xlog/Manifest b/media-radio/xlog/Manifest
index bc8b47cc2999..416335e0ac10 100644
--- a/media-radio/xlog/Manifest
+++ b/media-radio/xlog/Manifest
@@ -1,5 +1,8 @@
AUX xlog-2.0.24-musl.patch 1561 BLAKE2B fb65f5e702a8103f30b41b2248187cc8c923a9d765e618328baba893fb7004541078ded9ca3b197126f7163331061802d28fd42c177f38d543f9a6ab2c9a249f SHA512 68071bfa84d2b14738801ce0ecdd668a77373fc6d92a10d84e68768a4c8790f18ed7d4b8a4dc3abb10672cde8f1574ae97b6d4afab372e019873cb61903a41d7
+AUX xlog-2.0.25-desktop.patch 365 BLAKE2B 5fa972a9a9c9c7f31aaf3a80aa08bd665db94023a514bc6b3c519ae6e857ce7d162493a0dfb22490e59b103db5d426acaa79e05d614be19a2110d79372ab2b41 SHA512 11a94639766050369ba4a86c4e5f3f0331312bad5bbb1b9cf2b4c5f53525a688b53e4c2309d04284d1de31843168db291cb6011afe6e6ac4979bd6f6a571e47a
AUX xlog-2.0.7-desktop.patch 435 BLAKE2B 56fee116a69c99f5192f1a2e4804821d715dd15f927525694100471b296412675eb97237c7e239cc407a2ffb145dbf779e802c1a1f5914a064d70f73ad269d12 SHA512 5119356e9635ca7b6d028d4bb3be12542636ce5d2967540b20ad9c22d62792b81a1a06fcd8722c7cbe8df706d8113e60b308d1db7c6fa8f3238bea039eb4b4f6
DIST xlog-2.0.24.tar.gz 11407825 BLAKE2B 0de5203d4229005ba84940443672a9787a9ab2a87565bcbf47e0a0fcf375dcddec7636d11a359a117c42b7e07ea81fd482a2684b8a75379da1fe72cbc991643d SHA512 cc96dfabf01a6c49ed7db1257cc102a469642bdd32a158b0a026da2017181060f8aace5de22ada5df42b3bc89c14448dd372332a9ff0101121570f5b1187e5ab
+DIST xlog-2.0.25.tar.gz 11425326 BLAKE2B d0d14a79090a37c45456da7120089193c02d2fb3df30e8e5780bc40287e4f3a0e4e444613a07b5135502c771c2bd650d81966fc59658140740259fcbca509c9f SHA512 3ce5b27a0529885862a8c5256162068504e05cbbca6e0fc6cf492bfabbb2aa84b82a54502319646ee49e78aac6cd2b685877ec3687fb962c59c8648e0be4e121
EBUILD xlog-2.0.24.ebuild 1926 BLAKE2B 3eeece725336449efa7466efba83376f5581535540cc5de81b2460549caf6d69d5791e7d3c37abb3e0bebde45ffc5b0e601aa38751488ec3c7b3bd6e4442735c SHA512 7d3f5287c577c9756048865ca8e6c57bfcfd56e16baad0e1515e820b5c715dc498ad37eae48909df842439dd2f3de47e7e865216e579ca3c930485fd8cc9fff8
+EBUILD xlog-2.0.25.ebuild 1971 BLAKE2B 3030beba60c0e9c9cc47b45597a52f72c41636956c5bb64f92d7917aba34f2db2b69bbe848b0aa198f778e028f0ddbf6f6a7ef79640499e87b6b2d0676d0d5bc SHA512 78c2ab52eeaa73b7a47fe7ab513a40442f77c81c7481896e71f000a0374ee456732149c8fa25cbcbdcaa2067fd4611d4a853a8b9209d0a55f70c1c716e433a05
MISC metadata.xml 246 BLAKE2B 0e24c5acb9f25df4ce675d772f01ef4cca1df3e885dff8c64c0c6f255b9ec49c4761ee159c30a35f77bbeefa1ec62ac6e835d2facdae2b63fbf0d6b350ac23b0 SHA512 be18486abf39193c34501128c8f1bf7e1886b74a7d551735d00c3492c7bae8845ba2dbea93b2ca73d5467cb7764d90b670014143ae8a8ca0a480a02d9af60efb
diff --git a/media-radio/xlog/files/xlog-2.0.25-desktop.patch b/media-radio/xlog/files/xlog-2.0.25-desktop.patch
new file mode 100644
index 000000000000..33e64f81b7a6
--- /dev/null
+++ b/media-radio/xlog/files/xlog-2.0.25-desktop.patch
@@ -0,0 +1,12 @@
+diff --git a/data/desktop/xlog.desktop b/data/desktop/xlog.desktop
+index 5be4ce1..bee2c12 100644
+--- a/data/desktop/xlog.desktop
++++ b/data/desktop/xlog.desktop
+@@ -8,5 +8,5 @@ Exec=xlog %F
+ Icon=xlog
+ Terminal=false
+ Type=Application
+-Categories=Utility;Database;HamRadio;GTK
+-MimeType=text/x-xlog
++Categories=Utility;Database;HamRadio;GTK;
++MimeType=text/x-xlog;
diff --git a/media-radio/xlog/xlog-2.0.25.ebuild b/media-radio/xlog/xlog-2.0.25.ebuild
new file mode 100644
index 000000000000..0b5565aceed3
--- /dev/null
+++ b/media-radio/xlog/xlog-2.0.25.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools toolchain-funcs xdg-utils
+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"
+
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="media-libs/hamlib:=
+ dev-libs/glib:2
+ x11-libs/gtk+:2"
+DEPEND="${RDEPEND}
+ media-libs/libpng:0
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS data/doc/THANKS NEWS README )
+
+src_prepare() {
+ eapply_user
+ eapply "${FILESDIR}/${PN}-2.0.25-desktop.patch"
+ eapply "${FILESDIR}/${PN}-2.0.24-musl.patch"
+
+ # Drop -Werror
+ sed -i -e "s:-Werror::g" configure.ac || die
+ # fix underlinking
+ sed -i -e "s:HAMLIB_LIBS@:HAMLIB_LIBS@ -lm:g" src/Makefile.am || die
+ eautoconf
+
+ # prepare for media-radio/hamlib-4.2 change of API
+ if has_version '>=media-libs/hamlib-4.2' ; then
+ sed -i -e "s/FILPATHLEN/HAMLIB_FILPATHLEN/g" "${S}"/src/hamlib-utils.c || die
+ fi
+
+ # 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 ..."
+
+}
+
+src_configure() {
+ # mime-update causes file collisions if enabled
+ econf --disable-mime-update
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ # build system makes it complicate to inhibit updating desktop
+ # database, so just remove the offending file
+ rm "${D}"/usr/share/applications/mimeinfo.cache || die
+ docompress -x /usr/share/doc/${PF}/{KEYS,ChangeLog,TODO,BUGS}
+ einstalldocs
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ xdg_icon_cache_update
+}