summaryrefslogtreecommitdiff
path: root/x11-plugins/gkrellm-radio
diff options
context:
space:
mode:
Diffstat (limited to 'x11-plugins/gkrellm-radio')
-rw-r--r--x11-plugins/gkrellm-radio/Manifest4
-rw-r--r--x11-plugins/gkrellm-radio/files/gkrellm-radio-2.0.4-Use-standard-int-types.patch152
-rw-r--r--x11-plugins/gkrellm-radio/gkrellm-radio-2.0.4-r2.ebuild37
-rw-r--r--x11-plugins/gkrellm-radio/metadata.xml5
4 files changed, 196 insertions, 2 deletions
diff --git a/x11-plugins/gkrellm-radio/Manifest b/x11-plugins/gkrellm-radio/Manifest
index cc5402d8b2fa..cc4f72585809 100644
--- a/x11-plugins/gkrellm-radio/Manifest
+++ b/x11-plugins/gkrellm-radio/Manifest
@@ -1,5 +1,7 @@
+AUX gkrellm-radio-2.0.4-Use-standard-int-types.patch 4176 BLAKE2B f502c5fb0eb2a2bcc413109d5145868cc335b4cfab6a9b6c478c03498f11862a4d358a881409c2ac669f2f31188ebcecdf3437d113ce81413533d2899402279a SHA512 7ca04b3b4c5bdea6ad2865b96a75584a0629e96f324a2caee57b9b9a86d66ddb8a78c3437c0068e30c0664461a221fdd0a234fccf99d24bff26c05cd81057035
AUX gkrellm-radio-2.0.4-makefile.patch 482 BLAKE2B bc4ec0fb4ac7403ae2200808a956ce01015d713f5064eb8d25e0357606bb6ae4f01d7e12eb390e6a15423f5953547ec447b3e8592f5f8b25e42fe9d115cd1e25 SHA512 12552a5b551a5f335105d9bad9e946571250d6b0dcf868d9b39d68739112ad8ade75471c9f4bb3c18381913bd5658d7dd654aa0c721d6ae5c77e124bb277d6c5
AUX gkrellm-radio-2.0.4-r1-pkgconfig.patch 578 BLAKE2B 413c85c649fb5e6bc2de13930fdf73a122cc6edce40681d0fdaa8abb6df0038dde448a7f149936070c17ffd39ce2f4946417739b686836d15d6914e1b745b8bc SHA512 c5b31868595d8adcc8992afe439a7805557dd9e0322d653a9c2dac7b4e9134efc96e17bc802cd8c4bd0cea2f803d6d899491db0b24dffb06474b7beabbf1fad7
DIST gkrellm-radio-2.0.4.tar.gz 15685 BLAKE2B c23d9627e503f0853bfd403cbb17c5550cc572540f1e7544179a57501e5793fe19aa654d2b622d34aa68765d89cbc45810b0fececbe9e9a0cfe810795b918406 SHA512 0e5de0cc114c915dcc78f3588766a0a6d9c7bd75da5626fbf7959e539c1f505babc94a0054cceb5a67c8145174d49adb331eefae69ba1637c9121ebd630998de
EBUILD gkrellm-radio-2.0.4-r1.ebuild 770 BLAKE2B 9bc5ef68102a630488977ec8daba00922641c152a39b3c35da3adc0cebdc31d0b8885555ebd64366858fb8dadd9cd231db91dada7b079128e7ec9b74dca33097 SHA512 ccf439c6e37d029c135ec6914cb7f715d9d6ce443b71806341e1cc7eddb7b6299ed75d20a37a184c3e48d609ba36e22d31c77b47974d8c3ec535bad744e33062
-MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a
+EBUILD gkrellm-radio-2.0.4-r2.ebuild 821 BLAKE2B b7cbbc6ee0b94e0a83b98da9f1c2d114b8fafd63142289a0df8400e81a7e26dc57e976b4fdc5747b1ba365ef26ddac54cd0e805620cc79e026dce03681ea7d3b SHA512 252d190d153e5f2401d97d75469993f55761464ebda5964bba2ef132f02a5894f0935ac3e4edb6c83d11c0a1449e4d8632b44427b93a2e704103034d1e2c9558
+MISC metadata.xml 240 BLAKE2B 20c22d2d446cfcd6f2f430f2c444cd6d854d840e5161f595e4f738096d38db01c8cd305870b26623e98d8bbba239260975a53802caf4b678d1fe61a146aa660f SHA512 1af3286c63a60e89c2f87bd060eebb279858f4b21f9daedf4edcacd5906f35ddd6271397806771d6de1853cae1f3ecdd00ee6e05718fd7083ebc039e5cfa4832
diff --git a/x11-plugins/gkrellm-radio/files/gkrellm-radio-2.0.4-Use-standard-int-types.patch b/x11-plugins/gkrellm-radio/files/gkrellm-radio-2.0.4-Use-standard-int-types.patch
new file mode 100644
index 000000000000..ed29ace772fa
--- /dev/null
+++ b/x11-plugins/gkrellm-radio/files/gkrellm-radio-2.0.4-Use-standard-int-types.patch
@@ -0,0 +1,152 @@
+From 6cbfd2d76c5c48913c29bf1b27e0fdadba508a7a Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Fri, 3 Feb 2023 09:53:57 +0000
+Subject: [PATCH] Use standard int types
+
+Bug: https://bugs.gentoo.org/833164
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/videodev.h
++++ b/videodev.h
+@@ -1,6 +1,7 @@
+ #ifndef __LINUX_VIDEODEV_H
+ #define __LINUX_VIDEODEV_H
+
++#include <stdint.h>
+ #include <linux/types.h>
+
+ #ifdef __KERNEL__
+@@ -73,44 +74,44 @@ struct video_channel
+ int channel;
+ char name[32];
+ int tuners;
+- __u32 flags;
++ uint32_t flags;
+ #define VIDEO_VC_TUNER 1 /* Channel has a tuner */
+ #define VIDEO_VC_AUDIO 2 /* Channel has audio */
+- __u16 type;
++ uint16_t type;
+ #define VIDEO_TYPE_TV 1
+ #define VIDEO_TYPE_CAMERA 2
+- __u16 norm; /* Norm set by channel */
++ uint16_t norm; /* Norm set by channel */
+ };
+
+ struct video_tuner
+ {
+ int tuner;
+ char name[32];
+- ulong rangelow, rangehigh; /* Tuner range */
+- __u32 flags;
++ unsigned long rangelow, rangehigh; /* Tuner range */
++ uint32_t flags;
+ #define VIDEO_TUNER_PAL 1
+ #define VIDEO_TUNER_NTSC 2
+ #define VIDEO_TUNER_SECAM 4
+ #define VIDEO_TUNER_LOW 8 /* Uses KHz not MHz */
+ #define VIDEO_TUNER_NORM 16 /* Tuner can set norm */
+ #define VIDEO_TUNER_STEREO_ON 128 /* Tuner is seeing stereo */
+- __u16 mode; /* PAL/NTSC/SECAM/OTHER */
++ uint16_t mode; /* PAL/NTSC/SECAM/OTHER */
+ #define VIDEO_MODE_PAL 0
+ #define VIDEO_MODE_NTSC 1
+ #define VIDEO_MODE_SECAM 2
+ #define VIDEO_MODE_AUTO 3
+- __u16 signal; /* Signal strength 16bit scale */
++ uint16_t signal; /* Signal strength 16bit scale */
+ };
+
+ struct video_picture
+ {
+- __u16 brightness;
+- __u16 hue;
+- __u16 colour;
+- __u16 contrast;
+- __u16 whiteness; /* Black and white only */
+- __u16 depth; /* Capture depth */
+- __u16 palette; /* Palette in use */
++ uint16_t brightness;
++ uint16_t hue;
++ uint16_t colour;
++ uint16_t contrast;
++ uint16_t whiteness; /* Black and white only */
++ uint16_t depth; /* Capture depth */
++ uint16_t palette; /* Palette in use */
+ #define VIDEO_PALETTE_GREY 1 /* Linear greyscale */
+ #define VIDEO_PALETTE_HI240 2 /* High 240 cube (BT848) */
+ #define VIDEO_PALETTE_RGB565 3 /* 565 16 bit RGB */
+@@ -134,9 +135,9 @@ struct video_picture
+ struct video_audio
+ {
+ int audio; /* Audio channel */
+- __u16 volume; /* If settable */
+- __u16 bass, treble;
+- __u32 flags;
++ uint16_t volume; /* If settable */
++ uint16_t bass, treble;
++ uint32_t flags;
+ #define VIDEO_AUDIO_MUTE 1
+ #define VIDEO_AUDIO_MUTABLE 2
+ #define VIDEO_AUDIO_VOLUME 4
+@@ -147,24 +148,24 @@ struct video_audio
+ #define VIDEO_SOUND_STEREO 2
+ #define VIDEO_SOUND_LANG1 4
+ #define VIDEO_SOUND_LANG2 8
+- __u16 mode; /* detected audio carriers or one to set */
+- __u16 balance; /* Stereo balance */
+- __u16 step; /* Step actual volume uses */
++ uint16_t mode; /* detected audio carriers or one to set */
++ uint16_t balance; /* Stereo balance */
++ uint16_t step; /* Step actual volume uses */
+ };
+
+ struct video_clip
+ {
+- __s32 x,y;
+- __s32 width, height;
++ int32_t x,y;
++ int32_t width, height;
+ struct video_clip *next; /* For user use/driver use only */
+ };
+
+ struct video_window
+ {
+- __u32 x,y; /* Position of window */
+- __u32 width,height; /* Its size */
+- __u32 chromakey;
+- __u32 flags;
++ uint32_t x,y; /* Position of window */
++ uint32_t width,height; /* Its size */
++ uint32_t chromakey;
++ uint32_t flags;
+ struct video_clip *clips; /* Set only */
+ int clipcount;
+ #define VIDEO_WINDOW_INTERLACE 1
+@@ -175,10 +176,10 @@ struct video_window
+
+ struct video_capture
+ {
+- __u32 x,y; /* Offsets into image */
+- __u32 width, height; /* Area to capture */
+- __u16 decimation; /* Decimation divder */
+- __u16 flags; /* Flags for capture */
++ uint32_t x,y; /* Offsets into image */
++ uint32_t width, height; /* Area to capture */
++ uint16_t decimation; /* Decimation divder */
++ uint16_t flags; /* Flags for capture */
+ #define VIDEO_CAPTURE_ODD 0 /* Temporal */
+ #define VIDEO_CAPTURE_EVEN 1
+ };
+@@ -200,8 +201,8 @@ struct video_mmap
+
+ struct video_key
+ {
+- __u8 key[8];
+- __u32 flags;
++ uint8_t key[8];
++ uint32_t flags;
+ };
+
+
+--
+2.39.1
+
diff --git a/x11-plugins/gkrellm-radio/gkrellm-radio-2.0.4-r2.ebuild b/x11-plugins/gkrellm-radio/gkrellm-radio-2.0.4-r2.ebuild
new file mode 100644
index 000000000000..b2f7d13cf996
--- /dev/null
+++ b/x11-plugins/gkrellm-radio/gkrellm-radio-2.0.4-r2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit gkrellm-plugin toolchain-funcs
+
+DESCRIPTION="A minimalistic GKrellM2 plugin to control radio tuners"
+HOMEPAGE="http://gkrellm.luon.net/gkrellm-radio.php"
+SRC_URI="http://gkrellm.luon.net/files/${P}.tar.gz"
+S="${WORKDIR}/${PN}"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="lirc"
+
+RDEPEND="
+ app-admin/gkrellm:2[X]
+ lirc? ( app-misc/lirc )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-makefile.patch
+ "${FILESDIR}"/${P}-r1-pkgconfig.patch
+ "${FILESDIR}"/${P}-Use-standard-int-types.patch
+)
+
+src_configure() {
+ PLUGIN_SO=( radio$(get_modname) )
+ default
+}
+
+src_compile() {
+ use lirc && myconf="${myconf} WITH_LIRC=1"
+ emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" ${myconf}
+}
diff --git a/x11-plugins/gkrellm-radio/metadata.xml b/x11-plugins/gkrellm-radio/metadata.xml
index 85e4ed814fa2..641cbd3703e7 100644
--- a/x11-plugins/gkrellm-radio/metadata.xml
+++ b/x11-plugins/gkrellm-radio/metadata.xml
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<!-- maintainer-needed -->
+ <maintainer type="person">
+ <email>sam@gentoo.org</email>
+ <name>Sam James</name>
+ </maintainer>
</pkgmetadata>