public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-misc/actkbd/files/, app-misc/actkbd/
@ 2016-04-26 17:05 Austin English
  0 siblings, 0 replies; 2+ messages in thread
From: Austin English @ 2016-04-26 17:05 UTC (permalink / raw
  To: gentoo-commits

commit:     6394191ba04bcb5dd9a704936ce659ab6d1bffbe
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 26 16:59:16 2016 +0000
Commit:     Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Tue Apr 26 17:04:55 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6394191b

app-misc/actkbd: use #!/sbin/openrc-run instead of #!/sbin/runscript

Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573846

Package-Manager: portage-2.2.26

 app-misc/actkbd/actkbd-0.2.8-r2.ebuild | 49 ++++++++++++++++++++++++++++++++++
 app-misc/actkbd/files/actkbd.initd     |  4 +--
 2 files changed, 51 insertions(+), 2 deletions(-)

diff --git a/app-misc/actkbd/actkbd-0.2.8-r2.ebuild b/app-misc/actkbd/actkbd-0.2.8-r2.ebuild
new file mode 100644
index 0000000..ec6c410
--- /dev/null
+++ b/app-misc/actkbd/actkbd-0.2.8-r2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit linux-info eutils toolchain-funcs
+
+DESCRIPTION="A keyboard shortcut daemon"
+HOMEPAGE="http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/"
+SRC_URI="http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+CONFIG_CHECK="~INPUT_EVDEV"
+
+src_prepare() {
+	epatch "${FILESDIR}"/${PN}-0.2.7-amd64.patch
+}
+
+src_compile() {
+	emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)"
+}
+
+src_install() {
+	dobin actkbd
+	dodoc AUTHORS ChangeLog FAQ README TODO
+	docinto samples
+	dodoc samples/actkbd.conf
+	newconfd "${FILESDIR}/${PN}.confd" ${PN}
+	newinitd "${FILESDIR}/${PN}.initd" ${PN}
+}
+
+pkg_postinst() {
+	elog
+	elog "System-wide configuration file is /etc/actkbd.conf."
+	elog "Use actkbd.conf from usr/share/doc/${PF}/samples as a template."
+	elog "You need to create the config and set right input device from"
+	elog "/dev/input/event* in /etc/conf.d/actkbd"
+	elog
+	elog "To obtain keycodes for pressed combinations/keys just run:"
+	elog "  # actkbd -s -d /dev/input/event<MYDEVICENUMBER>"
+}

diff --git a/app-misc/actkbd/files/actkbd.initd b/app-misc/actkbd/files/actkbd.initd
index e0fc046..b0a8b57 100644
--- a/app-misc/actkbd/files/actkbd.initd
+++ b/app-misc/actkbd/files/actkbd.initd
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-misc/actkbd/files/, app-misc/actkbd/
@ 2021-04-19  4:31 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2021-04-19  4:31 UTC (permalink / raw
  To: gentoo-commits

commit:     9bd82aa423e18186ac2431e77a31bd3598cdaf62
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 19 04:10:50 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Apr 19 04:30:55 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bd82aa4

app-misc/actkbd: port to EAPI 7

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-misc/actkbd/actkbd-0.2.8-r2.ebuild         | 20 +++++++++-----------
 app-misc/actkbd/files/actkbd-0.2.7-amd64.patch | 10 ++++------
 2 files changed, 13 insertions(+), 17 deletions(-)

diff --git a/app-misc/actkbd/actkbd-0.2.8-r2.ebuild b/app-misc/actkbd/actkbd-0.2.8-r2.ebuild
index 021c813d7d6..28ba133c9bd 100644
--- a/app-misc/actkbd/actkbd-0.2.8-r2.ebuild
+++ b/app-misc/actkbd/actkbd-0.2.8-r2.ebuild
@@ -1,9 +1,9 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-inherit linux-info epatch toolchain-funcs
+inherit linux-info toolchain-funcs
 
 DESCRIPTION="A keyboard shortcut daemon"
 HOMEPAGE="http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/"
@@ -12,16 +12,12 @@ SRC_URI="http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/${P}.tar
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 x86"
-IUSE=""
-
-DEPEND=""
-RDEPEND=""
 
 CONFIG_CHECK="~INPUT_EVDEV"
 
-src_prepare() {
-	epatch "${FILESDIR}"/${PN}-0.2.7-amd64.patch
-}
+PATCHES=(
+	"${FILESDIR}"/${PN}-0.2.7-amd64.patch
+)
 
 src_compile() {
 	emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)"
@@ -30,10 +26,12 @@ src_compile() {
 src_install() {
 	dobin actkbd
 	dodoc AUTHORS ChangeLog FAQ README TODO
+
 	docinto samples
 	dodoc samples/actkbd.conf
-	newconfd "${FILESDIR}/${PN}.confd" ${PN}
-	newinitd "${FILESDIR}/${PN}.initd" ${PN}
+
+	newconfd "${FILESDIR}"/${PN}.confd ${PN}
+	newinitd "${FILESDIR}"/${PN}.initd ${PN}
 }
 
 pkg_postinst() {

diff --git a/app-misc/actkbd/files/actkbd-0.2.7-amd64.patch b/app-misc/actkbd/files/actkbd-0.2.7-amd64.patch
index b962d7e861a..574e341b5c7 100644
--- a/app-misc/actkbd/files/actkbd-0.2.7-amd64.patch
+++ b/app-misc/actkbd/files/actkbd-0.2.7-amd64.patch
@@ -1,8 +1,7 @@
 # Try to fix pointer assigned to int and vice-versa problems.  Written by Joe Pelkey.
 
-diff -ru actkbd-0.2.7.orig/actkbd.h actkbd-0.2.7/actkbd.h
---- actkbd-0.2.7.orig/actkbd.h	2006-05-02 13:24:01.000000000 -0400
-+++ actkbd-0.2.7/actkbd.h	2006-10-27 03:37:37.000000000 -0400
+--- a/actkbd.h
++++ b/actkbd.h
 @@ -122,7 +122,7 @@
  typedef struct _attr_t attr_t;
  struct _attr_t {
@@ -12,9 +11,8 @@ diff -ru actkbd-0.2.7.orig/actkbd.h actkbd-0.2.7/actkbd.h
      attr_t *next;		/* The next node */
  };
  
-diff -ru actkbd-0.2.7.orig/config.c actkbd-0.2.7/config.c
---- actkbd-0.2.7.orig/config.c	2006-08-20 07:05:36.000000000 -0400
-+++ actkbd-0.2.7/config.c	2006-10-27 03:55:21.000000000 -0400
+--- a/config.c
++++ b/config.c
 @@ -107,7 +107,7 @@
      strtolower(attrs);
      while ((tmp = strsep(&attrs, ", \t")) != NULL) {


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-19  4:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-26 17:05 [gentoo-commits] repo/gentoo:master commit in: app-misc/actkbd/files/, app-misc/actkbd/ Austin English
  -- strict thread matches above, loose matches on Subject: below --
2021-04-19  4:31 Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox