diff options
Diffstat (limited to 'media-radio/grig')
-rw-r--r-- | media-radio/grig/Manifest | 7 | ||||
-rw-r--r-- | media-radio/grig/files/grig-0.8.1-hamlib4.patch | 79 | ||||
-rw-r--r-- | media-radio/grig/files/grig-0.8.1-hamlib42.patch | 203 | ||||
-rw-r--r-- | media-radio/grig/files/grig-0.8.1-hamlib45.patch | 17 | ||||
-rw-r--r-- | media-radio/grig/grig-0.8.1-r1.ebuild | 42 | ||||
-rw-r--r-- | media-radio/grig/grig-0.9.0.ebuild | 2 |
6 files changed, 2 insertions, 348 deletions
diff --git a/media-radio/grig/Manifest b/media-radio/grig/Manifest index 12911e4564b4..914454333c08 100644 --- a/media-radio/grig/Manifest +++ b/media-radio/grig/Manifest @@ -1,9 +1,4 @@ -AUX grig-0.8.1-hamlib4.patch 3897 BLAKE2B f855040e1860d840cc993c46a0b17a341d3820f342dc1082e2a4a9ed5f1b598f50ba61215add86f6c1b59afef04194d82a80a2de1f033328e37e0edfe51f422f SHA512 b8573228232d24fe0fd750857a5b60a358279fd5e3a07dde9eff18ed3b38c09ff4bf693f63ad9f63f691d3b8937e0a7e7dff222f9aaa74d53bd064b3adf379cf -AUX grig-0.8.1-hamlib42.patch 6661 BLAKE2B 2ba2f54d9f6d5571862ced26fdc300198c33b7430f8ea5787c02b640c80de769fcd3cecd7d44b1ec943e6a9d88d9fec322ef57c2c363d704ddefbc484bac2bc2 SHA512 c302618a824b2cb79403ca58a5506fdf0005f07ba0e0f6ef9569f0ee4043ead86589bffd9f990265253f620eddc204a4ecd9ebbf4e2cfa421d97ed7eac55e1c6 -AUX grig-0.8.1-hamlib45.patch 538 BLAKE2B b75374d210e633ce4dd02d2bf88946e54ebe444053ea3b2ad543f8ff74205d7466f378de5fc4f222f0ba8658feac4b502c1ee686eaca49cde16b62bab2c9784b SHA512 4ba44fb93c3c730c9903f51990696910f6b7959ec99312d424c78fe837cc81297a4e3e00c814ff3617186dc8b29c41d496b82517a4a4df72a5943e21ed5a3180 AUX grig-0.8.1-hamlib46.patch 1390 BLAKE2B c25f8a5c51d9f6767a53a575559df0ba7c4a5360a4e1302f2cc425f614a22e818502bd936d27752663b6b8f8c909c03f3b4ff9d28de93e1da21a2bef2327111c SHA512 4f3d7c011f974ef8daa5e9647697a769e8f085fbe30c1f6c45395d122a0a68d35d72f9b4bf3d0e0fd43aaf841dcfd8fb30cc6669a21de62091abb02adf4c4f47 -DIST grig-0.8.1.tar.gz 621728 BLAKE2B 096ac037d3e5871e32bbb80669e2bafdf061c28c420362e26aea9f01f2e399a4cb769e65aa8261b0726444d08006495de13c62ca9d9e094c44fd8cb28b36a3f1 SHA512 84eda8db5d18324f26f0775483c8272296aad05dd75f0572c01a3c7af6dbd14bff7b98cc6a61fe3c43d25193866be4b3dafdc4e68dfc37217e88b53ca53266f9 DIST grig-0.9.0.tar.gz 636750 BLAKE2B 41332da0c1a9f1f938e94ad4624e2614e84829ca36d272566eeac16935de34a0b3d19c67163bda3d7c35b78158d1adb750f247709a8fa4978a45ff1daac0f7b9 SHA512 95ec5be163aaaa405ce4712f445e327fc18a0350e8a827bbed5ef0bbe22f28643e02bf352ab67dbbc4e25a1444f6097b96f31f2aba9069b47173c7450ba5d90a -EBUILD grig-0.8.1-r1.ebuild 981 BLAKE2B cb671f59d593e34509ab7cf341cbb99075dd18c42de20f1815fda0505db9672c6b3c6fc2c6addc61f87e4d07535516ec14b28c738fbbff164290a4e376c08ddd SHA512 d564c9b1f4c59877a130292b4794999dc36ec3c7512b013c4794527b4ddf8cd9e796d6447bd846c37b02783edd2e099bde9f96fd670e922c05f79d319ecc14a4 -EBUILD grig-0.9.0.ebuild 760 BLAKE2B f35c825ff4e24409325ac52001700443a8740a2ab278a09de26f3584f4ff1d5667345b4590e4be0eb200bfafa4f6e56a67b350b31ae2e614b78f5f386a202111 SHA512 7bf8e0de3ff4f294715392de30effb074a34895364248d2fc8e25354016dcbfdcf61e4c6e6f233d05711e7a325e5592a712d1a3a12ba95d1260dec5f9964a117 +EBUILD grig-0.9.0.ebuild 758 BLAKE2B 46b763762a2ba80a107c3efd48bf3b7070b1f75d0217f8a7006e7615f6dfeb47c52c4c4da88b3091592b1bd4507e854e1b8cd7ab4cc98853f8b1cb5f20f008f9 SHA512 ee2975951352a6ed0a11931d20931f34daab226b2ec6ac6960613e8a3c89deac495c43e6e1a30f254a88e23943eb35811a74f578742d79d95987ba659e310b23 MISC metadata.xml 385 BLAKE2B e9ae522aa26c04e336171d55150b7d556f94de477f2c8a8202eb82cea28d77034781d8e0ed7d17803b498d626f3fe04e34712d4d44696993c0346718f8e7b2cf SHA512 713238d7ec0936b9d73b2ec9cfa268c2b66d487afa93b893ab8711b03fa83ceb61ec30021be02e47438bea1171edf319c5e9093989b5aad11f381ccdf0c1605d diff --git a/media-radio/grig/files/grig-0.8.1-hamlib4.patch b/media-radio/grig/files/grig-0.8.1-hamlib4.patch deleted file mode 100644 index e73a4ec4eb9a..000000000000 --- a/media-radio/grig/files/grig-0.8.1-hamlib4.patch +++ /dev/null @@ -1,79 +0,0 @@ -Picked up from Debians grig-0.8.1-3 -Description: align affected parts for Hamlib4.0 -Author: Ervin Hegedus <airween@gmail.com> ---- grig-0.8.1.orig/src/rig-daemon.c -+++ grig-0.8.1/src/rig-daemon.c -@@ -1674,12 +1674,12 @@ rig_daemon_exec_cmd (rig_cmd_t c - is the current frequency within this range? - */ - if (((mode & myrig->state.rx_range_list[i].modes) == mode) && -- (get->freq1 >= myrig->state.rx_range_list[i].start) && -- (get->freq1 <= myrig->state.rx_range_list[i].end)) { -+ (get->freq1 >= myrig->state.rx_range_list[i].startf) && -+ (get->freq1 <= myrig->state.rx_range_list[i].endf)) { - - found_mode = 1; -- get->fmin = myrig->state.rx_range_list[i].start; -- get->fmax = myrig->state.rx_range_list[i].end; -+ get->fmin = myrig->state.rx_range_list[i].startf; -+ get->fmax = myrig->state.rx_range_list[i].endf; - - grig_debug_local (RIG_DEBUG_VERBOSE, - _("%s: Found frequency range for mode %d"), -@@ -2971,7 +2971,7 @@ rig_daemon_exec_cmd (rig_cmd_t c - val.i = set->voxdel; - - /* try to execute command */ -- retcode = rig_set_level (myrig, RIG_VFO_CURR, RIG_LEVEL_VOX, val); -+ retcode = rig_set_level (myrig, RIG_VFO_CURR, RIG_LEVEL_VOXDELAY, val); - - /* raise anomaly if execution did not succeed */ - if (retcode != RIG_OK) { -@@ -2996,7 +2996,7 @@ rig_daemon_exec_cmd (rig_cmd_t c - value_t val; - - /* try to execute command */ -- retcode = rig_get_level (myrig, RIG_VFO_CURR, RIG_LEVEL_VOX, &val); -+ retcode = rig_get_level (myrig, RIG_VFO_CURR, RIG_LEVEL_VOXDELAY, &val); - - /* raise anomaly if execution did not succeed */ - if (retcode != RIG_OK) { ---- grig-0.8.1.orig/src/rig-daemon-check.c -+++ grig-0.8.1/src/rig-daemon-check.c -@@ -398,12 +398,12 @@ rig_daemon_check_mode (RIG - */ - if (!found_mode && - ((mode & myrig->state.rx_range_list[i].modes) == mode) && -- (get->freq1 >= myrig->state.rx_range_list[i].start) && -- (get->freq1 <= myrig->state.rx_range_list[i].end)) { -+ (get->freq1 >= myrig->state.rx_range_list[i].startf) && -+ (get->freq1 <= myrig->state.rx_range_list[i].endf)) { - - found_mode = 1; -- get->fmin = myrig->state.rx_range_list[i].start; -- get->fmax = myrig->state.rx_range_list[i].end; -+ get->fmin = myrig->state.rx_range_list[i].startf; -+ get->fmax = myrig->state.rx_range_list[i].endf; - - grig_debug_local (RIG_DEBUG_VERBOSE, - _("%s: Found frequency range for mode %d"), ---- grig-0.8.1.orig/src/rig-data.h -+++ grig-0.8.1/src/rig-data.h -@@ -190,7 +190,7 @@ typedef struct { - - #define GRIG_LEVEL_RD (RIG_LEVEL_RFPOWER | RIG_LEVEL_AGC | RIG_LEVEL_SWR | RIG_LEVEL_ALC | \ - RIG_LEVEL_STRENGTH | RIG_LEVEL_ATT | RIG_LEVEL_PREAMP | \ -- RIG_LEVEL_VOX | RIG_LEVEL_AF | RIG_LEVEL_RF | RIG_LEVEL_SQL | \ -+ RIG_LEVEL_VOXDELAY | RIG_LEVEL_AF | RIG_LEVEL_RF | RIG_LEVEL_SQL | \ - RIG_LEVEL_IF | RIG_LEVEL_APF | RIG_LEVEL_NR | RIG_LEVEL_PBT_IN | \ - RIG_LEVEL_PBT_OUT | RIG_LEVEL_CWPITCH | \ - RIG_LEVEL_MICGAIN | RIG_LEVEL_KEYSPD | RIG_LEVEL_NOTCHF | \ -@@ -198,7 +198,7 @@ typedef struct { - RIG_LEVEL_VOXGAIN | RIG_LEVEL_ANTIVOX) - - #define GRIG_LEVEL_WR (RIG_LEVEL_RFPOWER | RIG_LEVEL_AGC | RIG_LEVEL_ATT | RIG_LEVEL_PREAMP | \ -- RIG_LEVEL_VOX | RIG_LEVEL_AF | RIG_LEVEL_RF | RIG_LEVEL_SQL | \ -+ RIG_LEVEL_VOXDELAY | RIG_LEVEL_AF | RIG_LEVEL_RF | RIG_LEVEL_SQL | \ - RIG_LEVEL_IF | RIG_LEVEL_APF | RIG_LEVEL_NR | RIG_LEVEL_PBT_IN | \ - RIG_LEVEL_PBT_OUT | RIG_LEVEL_CWPITCH | \ - RIG_LEVEL_MICGAIN | RIG_LEVEL_KEYSPD | RIG_LEVEL_NOTCHF | \ diff --git a/media-radio/grig/files/grig-0.8.1-hamlib42.patch b/media-radio/grig/files/grig-0.8.1-hamlib42.patch deleted file mode 100644 index 16c2dc851816..000000000000 --- a/media-radio/grig/files/grig-0.8.1-hamlib42.patch +++ /dev/null @@ -1,203 +0,0 @@ -diff --git a/src/rig-daemon-check.c b/src/rig-daemon-check.c -index 932a84c..07045bd 100644 ---- a/src/rig-daemon-check.c -+++ b/src/rig-daemon-check.c -@@ -884,7 +884,7 @@ rig_daemon_check_level (RIG *myrig, - if (has_get->att || has_set->att) { - int i = 0; - -- while ((i < MAXDBLSTSIZ) && (myrig->state.attenuator[i] != 0)) { -+ while ((i < HAMLIB_MAXDBLSTSIZ) && (myrig->state.attenuator[i] != 0)) { - rig_data_set_att_data (i, myrig->state.attenuator[i]); - i++; - } -@@ -895,7 +895,7 @@ rig_daemon_check_level (RIG *myrig, - if (has_get->preamp || has_set->preamp) { - int i = 0; - -- while ((i < MAXDBLSTSIZ) && (myrig->state.preamp[i] != 0)) { -+ while ((i < HAMLIB_MAXDBLSTSIZ) && (myrig->state.preamp[i] != 0)) { - rig_data_set_preamp_data (i, myrig->state.preamp[i]); - i++; - } -diff --git a/src/rig-daemon.c b/src/rig-daemon.c -index 0070283..c8e0ee5 100644 ---- a/src/rig-daemon.c -+++ b/src/rig-daemon.c -@@ -537,7 +537,7 @@ rig_daemon_start (int rigid, - } - - /* configure and open rig device */ -- strncpy (myrig->state.rigport.pathname, rigport, FILPATHLEN); -+ strncpy (myrig->state.rigport.pathname, rigport, HAMLIB_FILPATHLEN); - g_free (rigport); - - /* set speed if any special whishes */ -diff --git a/src/rig-data.c b/src/rig-data.c -index cc76268..1858a8d 100644 ---- a/src/rig-data.c -+++ b/src/rig-data.c -@@ -64,10 +64,10 @@ grig_cmd_avail_t has_get; /*!< Flags to indicate reading capabilities. */ - - - /** \brief List of attenuator values (absolute values). */ --static int att[MAXDBLSTSIZ]; -+static int att[HAMLIB_MAXDBLSTSIZ]; - - /** \brief List of preamp values. */ --static int preamp[MAXDBLSTSIZ]; -+static int preamp[HAMLIB_MAXDBLSTSIZ]; - - /** \brief Bit field of available VFO's */ - static int vfo_list; -@@ -116,7 +116,7 @@ rig_data_set_vfos (int vfos) - void - rig_data_set_att_data (int index, int data) - { -- if ((index >= 0) && (index < MAXDBLSTSIZ)) -+ if ((index >= 0) && (index < HAMLIB_MAXDBLSTSIZ)) - att[index] = data; - } - -@@ -132,7 +132,7 @@ rig_data_set_att_data (int index, int data) - int - rig_data_get_att_data (int index) - { -- if ((index >= 0) && (index < MAXDBLSTSIZ)) { -+ if ((index >= 0) && (index < HAMLIB_MAXDBLSTSIZ)) { - return att[index]; - } - else { -@@ -158,7 +158,7 @@ rig_data_get_att_index (int data) - return -1; - - /* scan through the array */ -- while ((i < MAXDBLSTSIZ) && (att[i] != 0)) { -+ while ((i < HAMLIB_MAXDBLSTSIZ) && (att[i] != 0)) { - if (att[i] == data) { - return i; - } -@@ -182,7 +182,7 @@ rig_data_get_att_index (int data) - void - rig_data_set_preamp_data (int index, int data) - { -- if ((index >= 0) && (index < MAXDBLSTSIZ)) -+ if ((index >= 0) && (index < HAMLIB_MAXDBLSTSIZ)) - preamp[index] = data; - } - -@@ -198,7 +198,7 @@ rig_data_set_preamp_data (int index, int data) - int - rig_data_get_preamp_data (int index) - { -- if ((index >= 0) && (index < MAXDBLSTSIZ)) { -+ if ((index >= 0) && (index < HAMLIB_MAXDBLSTSIZ)) { - return preamp[index]; - } - else { -@@ -225,7 +225,7 @@ rig_data_get_preamp_index (int data) - return -1; - - /* scan through the array */ -- while ((i < MAXDBLSTSIZ) && (preamp[i] != 0)) { -+ while ((i < HAMLIB_MAXDBLSTSIZ) && (preamp[i] != 0)) { - if (preamp[i] == data) { - return i; - } -diff --git a/src/rig-gui-buttons.c b/src/rig-gui-buttons.c -index ae95f4d..6873447 100644 ---- a/src/rig-gui-buttons.c -+++ b/src/rig-gui-buttons.c -@@ -283,10 +283,10 @@ rig_gui_buttons_create_att_selector () - /* add ATT OFF ie. 0 dB */ - gtk_combo_box_append_text (GTK_COMBO_BOX (att), _("ATT OFF")); - -- /* note: MAXDBLSTSIZ is defined in hamlib; it is the max size of the -+ /* note: HAMLIB_MAXDBLSTSIZ is defined in hamlib; it is the max size of the - ATT and preamp arrays. - */ -- while ((i < MAXDBLSTSIZ) && rig_data_get_att_data (i)) { -+ while ((i < HAMLIB_MAXDBLSTSIZ) && rig_data_get_att_data (i)) { - - text = g_strdup_printf ("-%d dB", rig_data_get_att_data (i)); - gtk_combo_box_append_text (GTK_COMBO_BOX (att), text); -@@ -343,10 +343,10 @@ rig_gui_buttons_create_preamp_selector () - /* add ATT OFF ie. 0 dB */ - gtk_combo_box_append_text (GTK_COMBO_BOX (preamp), _("PREAMP OFF")); - -- /* note: MAXDBLSTSIZ is defined in hamlib; it is the max size of the -+ /* note: HAMLIB_MAXDBLSTSIZ is defined in hamlib; it is the max size of the - ATT and preamp arrays. - */ -- while ((i < MAXDBLSTSIZ) && rig_data_get_preamp_data (i)) { -+ while ((i < HAMLIB_MAXDBLSTSIZ) && rig_data_get_preamp_data (i)) { - - text = g_strdup_printf ("%d dB", rig_data_get_preamp_data (i)); - gtk_combo_box_append_text (GTK_COMBO_BOX (preamp), text); -diff --git a/src/rig-gui-info.c b/src/rig-gui-info.c -index 53733bf..d73ef2d 100644 ---- a/src/rig-gui-info.c -+++ b/src/rig-gui-info.c -@@ -714,7 +714,7 @@ rig_gui_info_create_tunstep_frame () - /* Create a table with enough rows to show the - max possible number of unique tuning steps. - */ -- table = gtk_table_new (TSLSTSIZ, 2, FALSE); -+ table = gtk_table_new (HAMLIB_TSLSTSIZ, 2, FALSE); - - label = gtk_label_new (NULL); - gtk_label_set_markup (GTK_LABEL (label), _("<b>STEP</b>")); -@@ -746,7 +746,7 @@ rig_gui_info_create_tunstep_frame () - } - */ - /* for each available tuning ste */ -- for (i = 0; i < TSLSTSIZ; i++) { -+ for (i = 0; i < HAMLIB_TSLSTSIZ; i++) { - - gboolean firsthit = TRUE; /* indicates whether found mode is the first one - for the current tuning step. */ -@@ -757,7 +757,7 @@ rig_gui_info_create_tunstep_frame () - */ - if (myrig->caps->tuning_steps[i].ts == 0) { - -- i = TSLSTSIZ; -+ i = HAMLIB_TSLSTSIZ; - } - - /* otherwise continue */ -@@ -853,7 +853,7 @@ rig_gui_info_create_frontend_frame () - text = g_strdup (""); - - /* loop over all available preamp values and concatenate them into a label */ -- for (i = 0; i < MAXDBLSTSIZ; i++) { -+ for (i = 0; i < HAMLIB_MAXDBLSTSIZ; i++) { - - data = rig_data_get_preamp_data (i); - -@@ -861,7 +861,7 @@ rig_gui_info_create_frontend_frame () - reached the terminator - */ - if (data == 0) { -- i = MAXDBLSTSIZ; -+ i = HAMLIB_MAXDBLSTSIZ; - } - else { - if (i > 0) { -@@ -900,7 +900,7 @@ rig_gui_info_create_frontend_frame () - - text = g_strdup (""); - /* loop over all available attenuator values and concatenate them into a label */ -- for (i = 0; i < MAXDBLSTSIZ; i++) { -+ for (i = 0; i < HAMLIB_MAXDBLSTSIZ; i++) { - - data = rig_data_get_att_data (i); - -@@ -908,7 +908,7 @@ rig_gui_info_create_frontend_frame () - reached the terminator - */ - if (data == 0) { -- i = MAXDBLSTSIZ; -+ i = HAMLIB_MAXDBLSTSIZ; - } - else { - if (i > 0) { diff --git a/media-radio/grig/files/grig-0.8.1-hamlib45.patch b/media-radio/grig/files/grig-0.8.1-hamlib45.patch deleted file mode 100644 index 4da0a6496978..000000000000 --- a/media-radio/grig/files/grig-0.8.1-hamlib45.patch +++ /dev/null @@ -1,17 +0,0 @@ -Hamlib 4.5 dropped rig_get_split macro -see Bug 883773 - -diff --git a/src/rig-daemon.c b/src/rig-daemon.c -index ddd922f..1a86a5e 100644 ---- a/src/rig-daemon.c -+++ b/src/rig-daemon.c -@@ -2283,7 +2283,8 @@ rig_daemon_exec_cmd (rig_cmd_t cmd, - case RIG_CMD_GET_SPLIT: - if (has_get->split) { - -- retcode = rig_get_split (myrig, RIG_VFO_RX, &get->split); -+ vfo_t tx_vfo; -+ retcode = rig_get_split_vfo (myrig, RIG_VFO_RX, &get->split, &tx_vfo); - - /* raise anomaly if execution did not succeed */ - if (retcode != RIG_OK) { diff --git a/media-radio/grig/grig-0.8.1-r1.ebuild b/media-radio/grig/grig-0.8.1-r1.ebuild deleted file mode 100644 index 592c39641f2f..000000000000 --- a/media-radio/grig/grig-0.8.1-r1.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit desktop - -DESCRIPTION="A tool for controlling amateur radios" -HOMEPAGE="http://groundstation.sourceforge.net/grig/" -SRC_URI="https://downloads.sourceforge.net/groundstation/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" - -DEPEND=" - dev-libs/glib:2 - x11-libs/gtk+:2 - >=media-libs/hamlib-4:=" -RDEPEND="${DEPEND}" - -PATCHES=( "${FILESDIR}"/grig-0.8.1-hamlib4.patch - "${FILESDIR}"/grig-0.8.1-hamlib45.patch - "${FILESDIR}"/grig-0.8.1-hamlib46.patch ) - -src_prepare() { - # prepare for media-radio/hamlib-4.2 change of API - if has_version '>=media-libs/hamlib-4.2' ; then - eapply -p1 "${FILESDIR}"/${P}-hamlib42.patch - fi - default -} - -src_configure() { - econf --enable-hardware -} - -src_install() { - default - make_desktop_entry ${PN} "GRig" "/usr/share/pixmaps/grig/grig-logo.png" "HamRadio" - rm -rf "${ED}/usr/share/grig" || die "cleanup docs failed" -} diff --git a/media-radio/grig/grig-0.9.0.ebuild b/media-radio/grig/grig-0.9.0.ebuild index 5955fb9a96b1..13181b2f0950 100644 --- a/media-radio/grig/grig-0.9.0.ebuild +++ b/media-radio/grig/grig-0.9.0.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://github.com/fillods/grig/releases/download//${MY_P}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="amd64 x86" DEPEND=" dev-libs/glib:2 |