summaryrefslogtreecommitdiff
path: root/app-accessibility
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-09-22 09:12:28 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-09-22 09:12:28 +0100
commitde90a3a66f5c3ec22c253d7ee3b6b6e1b5b0d158 (patch)
tree9f676d0e8d9baa7ec5f79cf7703de5d4d82ac565 /app-accessibility
parent477d012b6938049f90080338ace24b6d885eb1de (diff)
app-accessibility/onboard : initial ebuild
Diffstat (limited to 'app-accessibility')
-rw-r--r--app-accessibility/onboard/Manifest1
-rw-r--r--app-accessibility/onboard/files/onboard-1.4.1-remove-duplicated-docs.patch18
-rw-r--r--app-accessibility/onboard/onboard-1.4.1.ebuild76
3 files changed, 95 insertions, 0 deletions
diff --git a/app-accessibility/onboard/Manifest b/app-accessibility/onboard/Manifest
new file mode 100644
index 00000000..f8f219c1
--- /dev/null
+++ b/app-accessibility/onboard/Manifest
@@ -0,0 +1 @@
+DIST onboard-1.4.1.tar.gz 9703285 BLAKE2B 9833cda373b4df28a8e4a0c9ae81069633903ec04ad22208390f3cc21b5540ae225aae553ef1b934832b6ba7ab1ba76e6e1c2c5d10cdc16b06dc2f5ac8d152b8 SHA512 ed75c1dce893e3420ecf532faffb15efc9fba56cf6622b03fe5e1cebb88d32304636b0268e4b8b75dc0eb6d7bfc8602c4a93a90bdeb8cd960d3447d16acc7463
diff --git a/app-accessibility/onboard/files/onboard-1.4.1-remove-duplicated-docs.patch b/app-accessibility/onboard/files/onboard-1.4.1-remove-duplicated-docs.patch
new file mode 100644
index 00000000..1a1eecc8
--- /dev/null
+++ b/app-accessibility/onboard/files/onboard-1.4.1-remove-duplicated-docs.patch
@@ -0,0 +1,18 @@
+diff -ur --unidirectional-new-file -urN onboard-1.4.1.orig/setup.py onboard-1.4.1/setup.py
+--- onboard-1.4.1.orig/setup.py 2017-04-05 12:07:31.491000000 +0000
++++ onboard-1.4.1/setup.py 2017-04-05 12:10:31.453000000 +0000
+@@ -396,14 +396,6 @@
+
+ data_files = [('share/glib-2.0/schemas', glob.glob('data/*.gschema.xml')),
+ ('share/dbus-1/services', glob.glob('data/org.onboard.Onboard.service')),
+- ('share/onboard', glob.glob('AUTHORS')),
+- ('share/onboard', glob.glob('CHANGELOG')),
+- ('share/onboard', glob.glob('COPYING*')),
+- ('share/onboard', glob.glob('HACKING')),
+- ('share/onboard', glob.glob('NEWS')),
+- ('share/onboard', glob.glob('README')),
+- ('share/onboard', glob.glob('onboard-defaults.conf.example')),
+- ('share/onboard', glob.glob('onboard-default-settings.gschema.override.example')),
+ ('share/icons/hicolor/16x16/apps', glob.glob('icons/hicolor/16/*')),
+ ('share/icons/hicolor/22x22/apps', glob.glob('icons/hicolor/22/*')),
+ ('share/icons/hicolor/24x24/apps', glob.glob('icons/hicolor/24/*')),
diff --git a/app-accessibility/onboard/onboard-1.4.1.ebuild b/app-accessibility/onboard/onboard-1.4.1.ebuild
new file mode 100644
index 00000000..d86de7d6
--- /dev/null
+++ b/app-accessibility/onboard/onboard-1.4.1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+inherit distutils-r1 gnome2-utils versionator
+
+DESCRIPTION="Onscreen keyboard for everybody who can't use a hardware keyboard"
+HOMEPAGE="https://launchpad.net/onboard"
+SRC_URI="https://launchpad.net/${PN}/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz"
+
+# po/* are licensed under BSD 3-clause
+LICENSE="GPL-3+ BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+COMMON_DEPEND="app-text/hunspell:=
+ dev-libs/dbus-glib
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ dev-python/python-distutils-extra[${PYTHON_USEDEP}]
+ gnome-base/dconf
+ gnome-base/librsvg
+ media-libs/libcanberra
+ sys-apps/dbus
+ x11-libs/gdk-pixbuf
+ x11-libs/gtk+:3[introspection]
+ x11-libs/libX11
+ x11-libs/libXi
+ x11-libs/libXtst
+ x11-libs/libwnck:3
+ x11-libs/pango"
+DEPEND="${COMMON_DEPEND}
+ dev-util/intltool"
+RDEPEND="${COMMON_DEPEND}
+ app-accessibility/at-spi2-core
+ app-text/iso-codes
+ gnome-extra/mousetweaks
+ x11-libs/libxkbfile"
+
+RESTRICT="mirror"
+
+# These are using a functionality of distutils-r1.eclass
+DOCS=( AUTHORS CHANGELOG HACKING NEWS README onboard-defaults.conf.example
+ onboard-default-settings.gschema.override.example )
+PATCHES=( "${FILESDIR}/${P}-remove-duplicated-docs.patch" )
+
+src_prepare() {
+ distutils-r1_src_prepare
+ eapply_user
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ # Delete duplicated docs installed by original dustutils
+ rm "${D}"/usr/share/doc/onboard/*
+}
+
+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
+}