public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/eekboard/files/, dev-libs/eekboard/
@ 2017-08-23 15:27 Akinori Hattori
  0 siblings, 0 replies; 2+ messages in thread
From: Akinori Hattori @ 2017-08-23 15:27 UTC (permalink / raw
  To: gentoo-commits

commit:     85107599b7bd7a0fc6f6475aa392a3363f3001e1
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 23 15:14:24 2017 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Wed Aug 23 15:14:24 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85107599

dev-libs/eekboard: initial import

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 dev-libs/eekboard/Manifest                         |  1 +
 .../eekboard/eekboard-1.0.8_pre20121001.ebuild     | 81 ++++++++++++++++++++++
 dev-libs/eekboard/files/eekboard-vala.patch        | 33 +++++++++
 dev-libs/eekboard/metadata.xml                     | 19 +++++
 4 files changed, 134 insertions(+)

diff --git a/dev-libs/eekboard/Manifest b/dev-libs/eekboard/Manifest
new file mode 100644
index 00000000000..23054926074
--- /dev/null
+++ b/dev-libs/eekboard/Manifest
@@ -0,0 +1 @@
+DIST eekboard-1.0.8_pre20121001.tar.gz 330923 SHA256 b15c81a982bd8fbbf72946dd01ec33105b973cd8cd7b96f8a1dd0e46ed3113cd SHA512 3c6ccbaac55a4680ba4d2bd5d214b1738b7fb17f83b66b11621149b6f8a945eb6b39c47be51dfcf53f84317d860ae28b8f83e3071d5d4474fbcfbdc72f6e4c87 WHIRLPOOL 02be33b3aef4351c5794a90483123925d8a6740ff5a5fcda720a77a8179af5beaa2ad35a8a4b4d1eb899df284d607ad1d971a4dda8cfdecc268a46e123d1ad4d

diff --git a/dev-libs/eekboard/eekboard-1.0.8_pre20121001.ebuild b/dev-libs/eekboard/eekboard-1.0.8_pre20121001.ebuild
new file mode 100644
index 00000000000..ca6e8505a0a
--- /dev/null
+++ b/dev-libs/eekboard/eekboard-1.0.8_pre20121001.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python2_7 )
+VALA_USE_DEPEND="vapigen"
+
+inherit autotools gnome2-utils ltprune python-any-r1 vala vcs-snapshot virtualx xdg-utils
+
+DESCRIPTION="An easy to use virtual keyboard toolkit"
+HOMEPAGE="https://github.com/ueno/eekboard"
+SRC_URI="https://github.com/ueno/${PN}/archive/e212262f29e022bdf7047861263ceea0c373e916.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc +introspection libcanberra static-libs +vala +xtest"
+REQUIRED_USE="vala? ( introspection )"
+
+RDEPEND="app-accessibility/at-spi2-core
+	dev-libs/glib:2
+	dev-libs/libcroco
+	virtual/libintl
+	x11-libs/gtk+:3
+	x11-libs/libX11
+	x11-libs/libxklavier
+	x11-libs/pango
+	introspection? ( dev-libs/gobject-introspection )
+	libcanberra? ( media-libs/libcanberra[gtk3(+)] )
+	vala? ( $(vala_depend) )
+	xtest? ( x11-libs/libXtst )"
+DEPEND="${RDEPEND}
+	${PYTHON_DEPS}
+	dev-util/gtk-doc
+	dev-util/gtk-doc-am
+	dev-util/intltool
+	sys-devel/gettext
+	virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${PN}-vala.patch )
+
+src_prepare() {
+	use vala && vala_src_prepare
+	default
+	eautoreconf
+	xdg_environment_reset
+}
+
+src_configure() {
+	econf \
+		$(use_enable doc gtk-doc) \
+		$(use_enable introspection) \
+		$(use_enable libcanberra) \
+		$(use_enable static-libs static) \
+		$(use_enable vala) \
+		$(use_enable xtest)
+}
+
+src_install() {
+	default
+	prune_libtool_files
+}
+
+src_test() {
+	virtx default
+}
+
+pkg_preinst() {
+	gnome2_icon_savelist
+	gnome2_schemas_savelist
+}
+
+pkg_postinst() {
+	gnome2_icon_cache_update
+	gnome2_schemas_update
+}
+
+pkg_postrm() {
+	gnome2_icon_cache_update
+	gnome2_schemas_update
+}

diff --git a/dev-libs/eekboard/files/eekboard-vala.patch b/dev-libs/eekboard/files/eekboard-vala.patch
new file mode 100644
index 00000000000..0b95c784987
--- /dev/null
+++ b/dev-libs/eekboard/files/eekboard-vala.patch
@@ -0,0 +1,33 @@
+--- a/bindings/vala/Makefile.am
++++ b/bindings/vala/Makefile.am
+@@ -59,12 +59,14 @@
+ 
+ eek_gtk_vapi_deps =					\
++	eek-$(EEK_API_VERSION).vapi			\
+ 	$(srcdir)/EekGtk-$(EEK_API_VERSION).metadata	\
+ 	|						\
+ 	$(top_builddir)/eek/EekGtk-$(EEK_API_VERSION).gir	\
+ 	$(NULL)
+ 
+ eek-gtk-$(EEK_API_VERSION).vapi: $(eek_gtk_vapi_deps)
+ 	$(VAPIGEN_V)$(VAPIGEN) --vapidir=$(builddir) \
++		--girdir=$(top_builddir)/eek \
+ 		--library eek-gtk-$(EEK_API_VERSION) \
+ 		--pkg eek-$(EEK_API_VERSION) \
+ 		--pkg gio-2.0 \
+@@ -74,6 +76,7 @@
+ 
+ eek_xkl_vapi_deps =						\
++	eek-$(EEK_API_VERSION).vapi				\
+ 	$(srcdir)/EekXkl-$(EEK_API_VERSION).metadata		\
+ 	|							\
+ 	$(top_builddir)/eek/EekXkl-$(EEK_API_VERSION).gir	\
+ 	$(NULL)
+@@ -81,6 +84,7 @@
+ eek-xkl-$(EEK_API_VERSION).vapi: $(eek_xkl_vapi_deps)
+ 	$(VAPIGEN_V)$(VAPIGEN) \
+ 		--vapidir=$(builddir) \
++		--girdir=$(top_builddir)/eek \
+ 		--library eek-xkl-$(EEK_API_VERSION) \
+ 		--pkg eek-$(EEK_API_VERSION) \
+ 		--pkg gio-2.0 \

diff --git a/dev-libs/eekboard/metadata.xml b/dev-libs/eekboard/metadata.xml
new file mode 100644
index 00000000000..8b3df112eeb
--- /dev/null
+++ b/dev-libs/eekboard/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="project">
+    <email>cjk@gentoo.org</email>
+    <name>Cjk</name>
+  </maintainer>
+  <longdescription lang="en">
+    eekboard is a virtual keyboard software package, including a set of tools
+    to implement desktop virtual keyboards.
+  </longdescription>
+  <use>
+    <flag name="libcanberra">Enable support for <pkg>media-libs/libcanberra</pkg></flag>
+    <flag name="xtest">Enable support for <pkg>x11-libs/libXtst</pkg></flag>
+  </use>
+  <upstream>
+    <remote-id type="github">ueno/eekboard</remote-id>
+  </upstream>
+</pkgmetadata>


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

* [gentoo-commits] repo/gentoo:master commit in: dev-libs/eekboard/files/, dev-libs/eekboard/
@ 2020-08-10 13:30 Akinori Hattori
  0 siblings, 0 replies; 2+ messages in thread
From: Akinori Hattori @ 2020-08-10 13:30 UTC (permalink / raw
  To: gentoo-commits

commit:     e9f523470ee04ea0ed7ebadbc950b16e2afb17b5
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 10 13:27:17 2020 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Mon Aug 10 13:29:47 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9f52347

dev-libs/eekboard: add support for python3

Closes: https://bugs.gentoo.org/695018
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>

 dev-libs/eekboard/eekboard-1.0.8_p20121001.ebuild |  9 ++++--
 dev-libs/eekboard/files/eekboard-python-3.patch   | 39 +++++++++++++++++++++++
 2 files changed, 45 insertions(+), 3 deletions(-)

diff --git a/dev-libs/eekboard/eekboard-1.0.8_p20121001.ebuild b/dev-libs/eekboard/eekboard-1.0.8_p20121001.ebuild
index b534ae9a443..f9d9fbb4d40 100644
--- a/dev-libs/eekboard/eekboard-1.0.8_p20121001.ebuild
+++ b/dev-libs/eekboard/eekboard-1.0.8_p20121001.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
-PYTHON_COMPAT=( python2_7 )
+PYTHON_COMPAT=( python3_{6,7,8} )
 VALA_USE_DEPEND="vapigen"
 
 inherit autotools gnome2-utils python-any-r1 vala vcs-snapshot virtualx xdg-utils
@@ -39,7 +39,10 @@ DEPEND="${RDEPEND}
 	sys-devel/gettext
 	virtual/pkgconfig"
 
-PATCHES=( "${FILESDIR}"/${PN}-vala.patch )
+PATCHES=(
+	"${FILESDIR}"/${PN}-python-3.patch
+	"${FILESDIR}"/${PN}-vala.patch
+)
 
 src_prepare() {
 	use vala && vala_src_prepare

diff --git a/dev-libs/eekboard/files/eekboard-python-3.patch b/dev-libs/eekboard/files/eekboard-python-3.patch
new file mode 100644
index 00000000000..1bb75feb76f
--- /dev/null
+++ b/dev-libs/eekboard/files/eekboard-python-3.patch
@@ -0,0 +1,39 @@
+--- a/eek/gen-keysym-entries.py
++++ b/eek/gen-keysym-entries.py
+@@ -18,17 +18,20 @@
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ # 02110-1301 USA
+ 
++from __future__ import print_function
+ import sys
+ import re
+ 
+ if len(sys.argv) != 2:
+-    print >> sys.stderr, "Usage: %s TABLE-NAME" % sys.argv[0]
++    print("Usage: %s TABLE-NAME" % sys.argv[0], file=sys.stderr)
+     sys.exit(-1)
+ 
++py2 = sys.version_info[0] < 3
+ table = dict()
+ for line in sys.stdin:
+-    line = line.decode('UTF-8')
+-    match = re.match(r'\s*(0x[0-9A-F]+)\s+(\S*)\s+(\S*)', line, re.I)
++    if py2:
++        line = line.decode('UTF-8')
++    match = re.match(r'\s*(0x[0-9A-F]+)\s+(\w*)\s+(\w*)', line, re.I)
+     if match:
+         table[int(match.group(1), 16)] = (match.group(2), match.group(3))
+ 
+@@ -37,8 +40,10 @@
+ 
+ for index, (keysym, (l, c)) in enumerate([(keysym, table[keysym])
+                                           for keysym in sorted(table.keys())]):
+-    sys.stdout.write("    { 0x%X, %s, %s }" %
+-                     (keysym, l.encode('UTF-8'), c.encode('UTF-8')))
++    if py2:
++        l = l.encode('UTF-8')
++        c = c.encode('UTF-8')
++    sys.stdout.write("    { 0x%X, %s, %s }" % (keysym, l, c))
+     if index < len(table) - 1:
+         sys.stdout.write(",")
+     sys.stdout.write("\n")


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

end of thread, other threads:[~2020-08-10 13:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-10 13:30 [gentoo-commits] repo/gentoo:master commit in: dev-libs/eekboard/files/, dev-libs/eekboard/ Akinori Hattori
  -- strict thread matches above, loose matches on Subject: below --
2017-08-23 15:27 Akinori Hattori

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