summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2010-05-25 16:52:06 +0000
committerThomas Beierlein <tomjbe@gentoo.org>2010-05-25 16:52:06 +0000
commit7943e80599748698abf441f99338d0187954c514 (patch)
treeacebb78435388ae9c8eba97a918e5bdd281e0df9 /media-radio/xlog
parentAdd REE18 support (diff)
downloadgentoo-2-7943e80599748698abf441f99338d0187954c514.tar.gz
gentoo-2-7943e80599748698abf441f99338d0187954c514.tar.bz2
gentoo-2-7943e80599748698abf441f99338d0187954c514.zip
Moved back from sunrise. See bug #174930
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'media-radio/xlog')
-rw-r--r--media-radio/xlog/ChangeLog11
-rw-r--r--media-radio/xlog/files/xlog-1.9-desktop-update.patch51
-rw-r--r--media-radio/xlog/files/xlog-2.0.1-adif.patch11
-rw-r--r--media-radio/xlog/files/xlog-2.0.2-qsl.patch28
-rw-r--r--media-radio/xlog/metadata.xml9
-rw-r--r--media-radio/xlog/xlog-2.0.3.ebuild53
6 files changed, 163 insertions, 0 deletions
diff --git a/media-radio/xlog/ChangeLog b/media-radio/xlog/ChangeLog
new file mode 100644
index 000000000000..af921f131346
--- /dev/null
+++ b/media-radio/xlog/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for media-radio/xlog
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-radio/xlog/ChangeLog,v 1.11 2010/05/25 16:52:06 tomjbe Exp $
+
+*xlog-2.0.3 (25 May 2010)
+
+ 25 May 2010; Thomas Beierlein <tomjbe@gentoo.org>
+ +files/xlog-1.9-desktop-update.patch, +files/xlog-2.0.1-adif.patch,
+ +files/xlog-2.0.2-qsl.patch, +xlog-2.0.3.ebuild, +metadata.xml:
+ Moved back from sunrise. See bug #174930
+
diff --git a/media-radio/xlog/files/xlog-1.9-desktop-update.patch b/media-radio/xlog/files/xlog-1.9-desktop-update.patch
new file mode 100644
index 000000000000..ccdb2ddac205
--- /dev/null
+++ b/media-radio/xlog/files/xlog-1.9-desktop-update.patch
@@ -0,0 +1,51 @@
+--- configure.in.orig 2007-11-06 15:49:25.000000000 -0800
++++ configure.in 2007-11-06 15:51:22.000000000 -0800
+@@ -48,6 +48,7 @@
+ AH_TEMPLATE([HAVE_LC_MESSAGES], [])
+ AH_TEMPLATE([HAVE_STPCPY], [])
+
++dnl MIME update
+ AC_ARG_ENABLE(mime-update,
+ [ --enable-mime-update update the mime database],
+ [case "${enableval}" in
+@@ -63,6 +64,21 @@
+ echo "disabled updating of the mime database"
+ fi
+
++dnl Desktop update
++AC_ARG_ENABLE(desktop-update,
++[ --enable-desktop-update update the desktop database],
++[case "${enableval}" in
++ yes) desk_update=true ;;
++ no) desk_update=false ;;
++ *) AC_MSG_ERROR(bad value ${enableval} for --enable-desk-update) ;;
++esac],[desk_update=false])
++AM_CONDITIONAL(DESKUPDATE, test x$desk_update = xtrue)
++
++if test "x${desk_update}" != "xfalse"; then
++ echo "enabled updating of the desktop database"
++else
++ echo "disabled updating of the desktop database"
++fi
+
+ AC_OUTPUT([po/Makefile.in
+ Makefile
+--- data/desktop/Makefile.am.orig 2007-11-06 15:47:51.000000000 -0800
++++ data/desktop/Makefile.am 2007-11-06 15:48:16.000000000 -0800
+@@ -5,12 +5,16 @@
+
+ EXTRA_DIST = $(DESKTOP_FILES)
+
++if DESKUPDATE
+ install-data-hook:
+ if HAVE_DESKTOP
+ $(UPDATE_DESKTOP_DATABASE) "$(DESTDIR)$(datadir)/applications"
+ endif
++endif
+
++if DESKUPDATE
+ uninstall-hook:
+ if HAVE_DESKTOP
+ $(UPDATE_DESKTOP_DATABASE) "$(DESTDIR)$(datadir)/applications"
+ endif
++endif
diff --git a/media-radio/xlog/files/xlog-2.0.1-adif.patch b/media-radio/xlog/files/xlog-2.0.1-adif.patch
new file mode 100644
index 000000000000..fe1769c0ada9
--- /dev/null
+++ b/media-radio/xlog/files/xlog-2.0.1-adif.patch
@@ -0,0 +1,11 @@
+--- src/logfile/adif.c.orig 2009-04-12 16:09:51.000000000 +0200
++++ src/logfile/adif.c 2009-04-12 16:10:05.000000000 +0200
+@@ -383,7 +383,7 @@
+ return "BAND";
+ }
+ case MODE: return "MODE";
+- case POWER: return "TX_POWER";
++ case POWER: return "TX_PWR";
+ case RST: return "RST_SENT";
+ case MYRST: return "RST_RCVD";
+ case QSLOUT: return "QSL_SENT";
diff --git a/media-radio/xlog/files/xlog-2.0.2-qsl.patch b/media-radio/xlog/files/xlog-2.0.2-qsl.patch
new file mode 100644
index 000000000000..f0410184f9fe
--- /dev/null
+++ b/media-radio/xlog/files/xlog-2.0.2-qsl.patch
@@ -0,0 +1,28 @@
+--- src/logfile/adif.c.orig 2009-05-17 13:09:29.000000000 +0200
++++ src/logfile/adif.c 2009-05-17 15:28:32.000000000 +0200
+@@ -449,6 +449,25 @@
+ }
+ }
+
++ /* export all QSL-info's as 'Y' for 'y', 'Y' or 'x',
++ * drop entry for 'n' or 'N' and
++ * as 'V' (invalid) for all other values of nonzero length
++ */
++ else if (fld == QSLOUT || fld == QSLIN)
++ {
++ qfield = q[fld];
++ if (qfield_len == 1 && (qfield[0] == 'Y' || qfield[0] == 'y' || qfield[0] == 'X' || qfield[0] == 'x'))
++ qfield[0] = 'Y';
++ else if (qfield_len == 1 && (qfield[0] == 'N' || qfield[0] == 'n'))
++ continue;
++ else
++ {
++ qfield[0] = 'I';
++ qfield[1] = '\0';
++ qfield_len = 1;
++ }
++ }
++
+ else if (fld == RST || fld == MYRST)
+ {
+ if (mode == MODE_SSB || mode == MODE_AM || mode == MODE_FM)
diff --git a/media-radio/xlog/metadata.xml b/media-radio/xlog/metadata.xml
new file mode 100644
index 000000000000..9ec9a43db5da
--- /dev/null
+++ b/media-radio/xlog/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>tomjbe@gentoo.org</email>
+ <name>Thomas Beierlein</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-radio/xlog/xlog-2.0.3.ebuild b/media-radio/xlog/xlog-2.0.3.ebuild
new file mode 100644
index 000000000000..032787716be1
--- /dev/null
+++ b/media-radio/xlog/xlog-2.0.3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-radio/xlog/xlog-2.0.3.ebuild,v 1.1 2010/05/25 16:52:06 tomjbe Exp $
+
+EAPI=2
+
+inherit autotools eutils fdo-mime
+
+DESCRIPTION="An amateur radio logging program"
+HOMEPAGE="http://www.nongnu.org/xlog"
+SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/hamlib
+ =dev-libs/glib-2*
+ >=x11-libs/gtk+-2.12"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ dev-util/pkgconfig"
+
+src_prepare() {
+ # Let portage handle updating mime/desktop databases,
+ epatch "${FILESDIR}/${PN}-1.9-desktop-update.patch"
+ # and patch wrong ADIF export
+ epatch "${FILESDIR}/${PN}-2.0.1-adif.patch" \
+ "${FILESDIR}/${PN}-2.0.2-qsl.patch"
+ eautoreconf
+}
+
+src_configure() {
+ # mime-update causes file collisions if enabled
+ econf --disable-mime-update --disable-desktop-update \
+ --docdir=/usr/share/doc/${PF}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS data/doc/THANKS NEWS README || die "dodoc failed"
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}