public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/lua:master commit in: dev-lua/lua-evdev/
@ 2018-04-15 23:01 Vadim A. Misbakh-Soloviov
  0 siblings, 0 replies; only message in thread
From: Vadim A. Misbakh-Soloviov @ 2018-04-15 23:01 UTC (permalink / raw
  To: gentoo-commits

commit:     eb37a05d84673c70d09a05fcaf36c4da5e1af563
Author:     Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name>
AuthorDate: Sun Apr 15 23:01:06 2018 +0000
Commit:     Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
CommitDate: Sun Apr 15 23:01:06 2018 +0000
URL:        https://gitweb.gentoo.org/proj/lua.git/commit/?id=eb37a05d

lua-evdev: added

 dev-lua/lua-evdev/lua-evdev-9999.ebuild | 54 +++++++++++++++++++++++++++++++++
 dev-lua/lua-evdev/metadata.xml          | 14 +++++++++
 2 files changed, 68 insertions(+)

diff --git a/dev-lua/lua-evdev/lua-evdev-9999.ebuild b/dev-lua/lua-evdev/lua-evdev-9999.ebuild
new file mode 100644
index 0000000..2f1392c
--- /dev/null
+++ b/dev-lua/lua-evdev/lua-evdev-9999.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+VCS="git"
+LUA_COMPAT="lua51 lua52 lua53 luajit2"
+GITHUB_A="Tangent128"
+GITHUB_A="zhangxiangxiao"
+
+inherit lua
+
+DESCRIPTION="Lua module for reading Linux input events from /dev/input/eventXX nodes"
+HOMEPAGE="https://github.com/Tangent128/lua-evdev"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS=""
+IUSE="examples"
+
+RDEPEND=""
+DEPEND="
+	${RDEPEND}
+"
+
+DOCS=(README.md)
+EXAMPLES=(example/.)
+
+all_lua_prepare() {
+	sed -r \
+		-e '1iCC ?= gcc' \
+		-e '/^CFLAGS/s@$@ -I.@' \
+		-e 's@gcc@\$\(CC\)@g' \
+		-i Makefile
+	lua_default
+}
+
+each_lua_prepare() {
+	lua_is_jit && (
+		sed -r \
+			-e '/^CFLAGS/s@\$\(COMPAT_CFLAGS\) -I.@@' \
+			-e '/^CORE_C/s@(evdev/core.c) .*@\1@' \
+			-i Makefile
+		sed -r \
+			-e '/#include "compat53\/compat-5.3.h"/d' \
+			-i evdev/core.c
+	)
+	lua_default
+}
+
+each_lua_install() {
+	rm evdev/core.c
+	dolua evdev evdev.lua
+}

diff --git a/dev-lua/lua-evdev/metadata.xml b/dev-lua/lua-evdev/metadata.xml
new file mode 100644
index 0000000..23da526
--- /dev/null
+++ b/dev-lua/lua-evdev/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>mva@mva.name</email>
+ <description>
+	If you have any issues, please contact me, or try to find me in IRC on Freenode, OFTC or RusNet.
+ </description> 
+ <name>Vadim A. Misbakh-Soloviov</name>
+</maintainer>
+<longdescription>FIXME</longdescription> 
+<use>
+</use>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-15 23:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-15 23:01 [gentoo-commits] proj/lua:master commit in: dev-lua/lua-evdev/ Vadim A. Misbakh-Soloviov

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