* [gentoo-commits] repo/gentoo:master commit in: media-sound/rcenter/files/, media-sound/rcenter/
@ 2019-10-17 10:11 David Seifert
0 siblings, 0 replies; 3+ messages in thread
From: David Seifert @ 2019-10-17 10:11 UTC (permalink / raw
To: gentoo-commits
commit: e45fb07f462fbf8336483ccfa9d675ea0cfdb8f7
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 17 10:11:17 2019 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Oct 17 10:11:17 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e45fb07f
media-sound/rcenter: Port to EAPI 7
Bug: https://bugs.gentoo.org/697272
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: David Seifert <soap <AT> gentoo.org>
...nter-0.6.2-Wimplicit-function-declaration.patch | 11 ++++++++
.../rcenter/files/rcenter-0.6.2-makefile.patch | 15 +++++++----
media-sound/rcenter/rcenter-0.6.2.ebuild | 31 +++++++++++-----------
3 files changed, 36 insertions(+), 21 deletions(-)
diff --git a/media-sound/rcenter/files/rcenter-0.6.2-Wimplicit-function-declaration.patch b/media-sound/rcenter/files/rcenter-0.6.2-Wimplicit-function-declaration.patch
new file mode 100644
index 00000000000..00de497890f
--- /dev/null
+++ b/media-sound/rcenter/files/rcenter-0.6.2-Wimplicit-function-declaration.patch
@@ -0,0 +1,11 @@
+--- a/main.c
++++ b/main.c
+@@ -28,6 +28,8 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
++#include <stdio.h>
++#include <stdlib.h>
+
+ // use the first one of these that exists
+ static char *default_device[] = {"/dev/midi00", "/dev/midi", NULL};
diff --git a/media-sound/rcenter/files/rcenter-0.6.2-makefile.patch b/media-sound/rcenter/files/rcenter-0.6.2-makefile.patch
index 2c5fbd761a8..aa579b0d925 100644
--- a/media-sound/rcenter/files/rcenter-0.6.2-makefile.patch
+++ b/media-sound/rcenter/files/rcenter-0.6.2-makefile.patch
@@ -1,8 +1,13 @@
-Index: rcenter-0.6.2/Makefile
-===================================================================
---- rcenter-0.6.2.orig/Makefile
-+++ rcenter-0.6.2/Makefile
-@@ -19,9 +19,9 @@ button.o : button.c
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,4 @@
+ ALLFILES = *.c *.h Makefile LICENSE HISTORY README config
+-CC = gcc
+-CFLAGS = -O2
+ BINARIES = rcenter
+ PREFIX= /usr/local
+
+@@ -19,9 +17,9 @@
main.o : main.c
rcenter : main.o lowlevel.o handler.o button.o
diff --git a/media-sound/rcenter/rcenter-0.6.2.ebuild b/media-sound/rcenter/rcenter-0.6.2.ebuild
index d071eadc0d7..295c65fb14a 100644
--- a/media-sound/rcenter/rcenter-0.6.2.ebuild
+++ b/media-sound/rcenter/rcenter-0.6.2.ebuild
@@ -1,11 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=0
+EAPI=7
-inherit eutils toolchain-funcs
-
-IUSE=""
+inherit toolchain-funcs
DESCRIPTION="Rcenter - A program to control the EMU10K Remote Control"
HOMEPAGE="http://rooster.stanford.edu/~ben/projects/rcenter.php"
@@ -16,21 +14,22 @@ SLOT="0"
#-sparc: emu10k1 doesn't get recognized on sparc hardware
KEYWORDS="amd64 -sparc x86"
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}/${P}-makefile.patch"
-}
+PATCHES=(
+ "${FILESDIR}"/${P}-makefile.patch
+ "${FILESDIR}"/${P}-Wimplicit-function-declaration.patch
+)
-src_compile() {
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die
+src_configure() {
+ tc-export CC
}
src_install() {
- chmod 755 rcenter
dobin rcenter
- dodir /usr/share/rcenter
- cp -R config "${D}"/usr/share/rcenter/
+ fperms 755 /usr/bin/rcenter
+
+ insinto /usr/share/rcenter
+ doins -r config
+
dodoc HISTORY README
}
@@ -38,7 +37,7 @@ pkg_postinst() {
elog "Rcenter Installed - However You need to setup the scripts"
elog "for making remote control commands actually work"
elog
- elog "The Skel scripts can be copied from /usr/share/rcenter/config to <user>/.rcenter"
+ elog "The Skel scripts can be copied from ${EROOT}/usr/share/rcenter/config to <user>/.rcenter"
elog "Where <user> is a person who will use rcenter"
elog "Remeber to use emu-config -i to turn on the remote"
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/rcenter/files/, media-sound/rcenter/
@ 2020-08-08 16:55 David Seifert
0 siblings, 0 replies; 3+ messages in thread
From: David Seifert @ 2020-08-08 16:55 UTC (permalink / raw
To: gentoo-commits
commit: 05773148d8b7921a9b51f7ad64ed63b0d7ac2ee7
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 8 16:54:00 2020 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Aug 8 16:54:00 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05773148
media-sound/rcenter: Fix building under -fno-common
Closes: https://bugs.gentoo.org/707648
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: David Seifert <soap <AT> gentoo.org>
.../rcenter/files/rcenter-0.6.2-fno-common.patch | 29 ++++++++++++++++++++++
media-sound/rcenter/rcenter-0.6.2.ebuild | 3 ++-
2 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/media-sound/rcenter/files/rcenter-0.6.2-fno-common.patch b/media-sound/rcenter/files/rcenter-0.6.2-fno-common.patch
new file mode 100644
index 00000000000..11f3efdd38b
--- /dev/null
+++ b/media-sound/rcenter/files/rcenter-0.6.2-fno-common.patch
@@ -0,0 +1,29 @@
+--- a/button.h
++++ b/button.h
+@@ -60,8 +60,8 @@
+ button_max = 34
+ };
+
+-char *button_name[button_max];
+-int button_code[button_max];
++extern char *button_name[button_max];
++extern int button_code[button_max];
+
+ unsigned int speaker_code(unsigned int code);
+
+--- a/main.h
++++ b/main.h
+@@ -18,9 +18,9 @@
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+-char *midi_device;
++extern char *midi_device;
+
+-int delay_sec;
+-int delay_usec;
++extern int delay_sec;
++extern int delay_usec;
+
+-int string_digit_limit;
++extern int string_digit_limit;
diff --git a/media-sound/rcenter/rcenter-0.6.2.ebuild b/media-sound/rcenter/rcenter-0.6.2.ebuild
index 295c65fb14a..a32acc38076 100644
--- a/media-sound/rcenter/rcenter-0.6.2.ebuild
+++ b/media-sound/rcenter/rcenter-0.6.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -17,6 +17,7 @@ KEYWORDS="amd64 -sparc x86"
PATCHES=(
"${FILESDIR}"/${P}-makefile.patch
"${FILESDIR}"/${P}-Wimplicit-function-declaration.patch
+ "${FILESDIR}"/${P}-fno-common.patch
)
src_configure() {
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/rcenter/files/, media-sound/rcenter/
@ 2025-03-14 21:00 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2025-03-14 21:00 UTC (permalink / raw
To: gentoo-commits
commit: 1c1eef61fdb54fa19f25a7fda138bb16d02468f1
Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Sat Mar 1 15:38:39 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 14 20:59:55 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c1eef61
media-sound/rcenter: update EAPI 7 -> 8, port to C23, add rudimentary test
Closes: https://bugs.gentoo.org/944365
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40830
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../files/rcenter-0.6.2-pthread-pointer-type.patch | 15 +++++++
media-sound/rcenter/rcenter-0.6.2-r1.ebuild | 49 ++++++++++++++++++++++
2 files changed, 64 insertions(+)
diff --git a/media-sound/rcenter/files/rcenter-0.6.2-pthread-pointer-type.patch b/media-sound/rcenter/files/rcenter-0.6.2-pthread-pointer-type.patch
new file mode 100644
index 000000000000..6d506b1c0780
--- /dev/null
+++ b/media-sound/rcenter/files/rcenter-0.6.2-pthread-pointer-type.patch
@@ -0,0 +1,15 @@
+Give a type and a name to a function parameter that will continue to be ignored
+As NULL is passed as an argument to pthread_create's callback in only place where timerloop
+is used, this invention of a name due to C23 does nothing and argument is never used.
+https://bugs.gentoo.org/944365
+--- a/lowlevel.c
++++ b/lowlevel.c
+@@ -44,7 +44,7 @@
+ static int timerpipe[2];
+ static int quitpipe[2];
+
+-static void *timerloop()
++static void *timerloop(void * nothing)
+ {
+ int n;
+ int status;
diff --git a/media-sound/rcenter/rcenter-0.6.2-r1.ebuild b/media-sound/rcenter/rcenter-0.6.2-r1.ebuild
new file mode 100644
index 000000000000..4a523ad92e54
--- /dev/null
+++ b/media-sound/rcenter/rcenter-0.6.2-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Rcenter - A program to control the EMU10K Remote Control"
+HOMEPAGE="http://rooster.stanford.edu/~ben/projects/rcenter.php"
+SRC_URI="http://rooster.stanford.edu/~ben/projects/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+#-sparc: emu10k1 doesn't get recognized on sparc hardware
+KEYWORDS="~amd64 -sparc ~x86"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-makefile.patch
+ "${FILESDIR}"/${P}-Wimplicit-function-declaration.patch
+ "${FILESDIR}"/${P}-fno-common.patch
+ "${FILESDIR}"/${P}-pthread-pointer-type.patch
+)
+
+src_configure() {
+ tc-export CC
+}
+
+src_test() {
+ "${S}"/rcenter -h || die
+}
+
+src_install() {
+ dobin rcenter
+ fperms 755 /usr/bin/rcenter
+
+ insinto /usr/share/rcenter
+ doins -r config
+
+ dodoc HISTORY README
+}
+
+pkg_postinst() {
+ elog "Rcenter Installed - However You need to setup the scripts"
+ elog "for making remote control commands actually work"
+ elog
+ elog "The Skel scripts can be copied from ${EROOT}/usr/share/rcenter/config to <user>/.rcenter"
+ elog "Where <user> is a person who will use rcenter"
+ elog "Remeber to use emu-config -i to turn on the remote"
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-14 21:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-17 10:11 [gentoo-commits] repo/gentoo:master commit in: media-sound/rcenter/files/, media-sound/rcenter/ David Seifert
-- strict thread matches above, loose matches on Subject: below --
2020-08-08 16:55 David Seifert
2025-03-14 21:00 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox