summaryrefslogtreecommitdiff
path: root/x11-misc/accessx
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/accessx
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/accessx')
-rw-r--r--x11-misc/accessx/Manifest6
-rw-r--r--x11-misc/accessx/accessx-0951-r2.ebuild39
-rw-r--r--x11-misc/accessx/files/accessx-0951-build.patch65
-rw-r--r--x11-misc/accessx/metadata.xml8
4 files changed, 118 insertions, 0 deletions
diff --git a/x11-misc/accessx/Manifest b/x11-misc/accessx/Manifest
new file mode 100644
index 000000000000..71c1611ceef7
--- /dev/null
+++ b/x11-misc/accessx/Manifest
@@ -0,0 +1,6 @@
+AUX accessx-0951-build.patch 1666 SHA256 8f22d2effde1ff63e4201236bd2a8928db37fdf1ecafe618569e3a1ff03bcecc SHA512 9a5c35b1ddd0ec2b79c0d9c65fce108db9af47d407e8d0f9c83be70d77b52d22e277d0394378b8f3ecd1c233e9ccf8c0601b71580e96841ce7f714ed61b43b95 WHIRLPOOL 9af95199f6a471850bcde53f8928f156527e5dad4120eae855878a676fa4adbd4d93301cb4a7463756bac0f52a73982b54d51d72482e8f092d55c8293177bd36
+DIST accessx0951.tar.gz 17199 SHA256 441e9316552a88d26b265a3074656ec56a84d8ea287d7dcebdb7a2b562111863 SHA512 2e152e15f89b95c1776327161ea36b879d2060e46e4414d0dc2e877967f570c427073ec514aecc447a5a7afedf53c43c6b5dbe30164e8098528e78392b5fa9c3 WHIRLPOOL d19e8a7749f8aa3c302cc5cfb1031c5ea72d373d6138219a769ee11ae17a78e33d03068ccbe8772ac50c09add38ca4609780d4093e1a2395c109aa9d393e4b49
+EBUILD accessx-0951-r2.ebuild 905 SHA256 09fadad02e56a8cbca8a52ee9fc6f774c5128b42720cdaaa562316ffaeb7d893 SHA512 8c707ae8cad9b3e42290bf16274806a4cb56fe632952135bf1e79cd3908a390866029b198e9a411bbe698efdea527124c30ae0957b3af2a684695cc574dbe4a1 WHIRLPOOL f61cbe52f4026d0351fc9ef617fd684aa62cdcab6581b0e09f512f68f3f97429b4b07eb6d7586afcfc5f3febe0ec1f8873a735ae9b2abba7adbf784179d9c1ab
+MISC ChangeLog 2464 SHA256 d277405f5bb24bfa45f59a67ab9d0febef4e5d50d8fdb8f298cd47f5c9c07d5f SHA512 9d0b37323000462e9d61837ddc6ec077169e1bb6757052fe9ad6f93d7dc79390fe4cf1072507a9c243b09b45a49fb9066f4c87db07eb8ba0208f5fe6e6a70524 WHIRLPOOL 0b214d9a738835ba1e648703e913e5cb8ff214cd79637ee7f0332c07d9bc64fefa458b75a14118fc09659a4391d660d3279fafff6ea884059b4be29ac2cfe5d6
+MISC ChangeLog-2015 3096 SHA256 3cd3eb7c3d7576f4fd78aafc89f41adb2d1bae688be05f37d9c0d38ffc42df12 SHA512 db2c89f4a3b95c0d0aff29643749d025a4fca62011012d8e572fd2a334a763d1d0e2c2b5b2ed4c9eab5cc34f8737761a12382415eef790d76c2122aa9c8ef304 WHIRLPOOL 45584a5f0f4779d61c4c4295c0aa663ca423987a7ea12e8972b62caf407f4d39f8301ebcb898a7765f9ecff9d7edfc2329a92956fd5aad835770aefeca60b49e
+MISC metadata.xml 276 SHA256 437f3dba7deca9da3b3f8ecda9bb5e97253de0412cbb3095d876f39140f3ea98 SHA512 3497963f4fb51bb32521472b54a995091cb457d2cda65c786bd4b46e5af325caf8f6d5c969cefa0c09fe717df09fb015ec59b52f5571c3b2b9d4ea33e6c843ab WHIRLPOOL 8550fd604cf609511bf7c34245ebd6682dd6d058d8cbfa099a77c94d1afcf592909eb679a28a0806957ac0949c6cff350675e0182303ec5890a5e2c2c26d29c5
diff --git a/x11-misc/accessx/accessx-0951-r2.ebuild b/x11-misc/accessx/accessx-0951-r2.ebuild
new file mode 100644
index 000000000000..92dbd14e21e3
--- /dev/null
+++ b/x11-misc/accessx/accessx-0951-r2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="Interface to the XKEYBOARD extension in X11"
+HOMEPAGE="http://cita.disability.uiuc.edu/software/accessx/freewareaccessx.php"
+SRC_URI="http://cmos-eng.rehab.uiuc.edu/${PN}/software/${PN}${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ppc sparc x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXext
+ dev-lang/tk:0="
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${PN}
+PATCHES=( "${FILESDIR}"/${P}-build.patch )
+
+src_prepare() {
+ default
+ sed -i \
+ -e 's:$(CC) $(OPTS) ax.C:$(CC) $(LDFLAGS) $(OPTS) ax.C:' \
+ Makefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCXX)" OPTS="${CXXFLAGS}" XLIBDIR="-L/usr/$(get_libdir)" \
+ LLIBS="$($(tc-getPKG_CONFIG) --libs xext) $($(tc-getPKG_CONFIG) --libs x11)"
+}
+
+src_install() {
+ dobin accessx ax
+ einstalldocs
+}
diff --git a/x11-misc/accessx/files/accessx-0951-build.patch b/x11-misc/accessx/files/accessx-0951-build.patch
new file mode 100644
index 000000000000..6d732487214f
--- /dev/null
+++ b/x11-misc/accessx/files/accessx-0951-build.patch
@@ -0,0 +1,65 @@
+diff -ur accessx.orig/Access.C accessx/Access.C
+--- accessx.orig/Access.C 2003-09-19 19:08:01.000000000 +0300
++++ accessx/Access.C 2008-01-07 18:53:43.000000000 +0200
+@@ -22,6 +22,8 @@
+ #include <X11/XKBlib.h>
+ #include "Access.h"
+
++using namespace std;
++
+ //
+ // Access()
+ //
+@@ -153,7 +155,7 @@
+ //Get the state of the keyboard.
+
+ XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd);
+- if ((int)xkb == BadAlloc || xkb == NULL)
++ if (xkb == NULL)
+ {
+ return 5; /*AccessKeyboardQueryFailure;*/
+ }
+@@ -262,7 +264,7 @@
+ //Get the state of the keyboard.
+
+ XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd);
+- if ((int)xkb == BadAlloc || xkb == NULL)
++ if (xkb == NULL)
+ {
+ return 5; /*AccessKeyboardQueryFailure;*/
+ }
+diff -ur accessx.orig/Access.h accessx/Access.h
+--- accessx.orig/Access.h 2003-09-19 19:00:42.000000000 +0300
++++ accessx/Access.h 2008-01-07 18:53:47.000000000 +0200
+@@ -21,7 +21,7 @@
+ *
+ */
+
+-#include <iostream.h>
++#include <iostream>
+ #include <math.h>
+
+ inline char* onoroff(int val)
+diff -ur accessx.orig/ax.C accessx/ax.C
+--- accessx.orig/ax.C 2003-09-19 19:09:31.000000000 +0300
++++ accessx/ax.C 2008-01-07 18:53:49.000000000 +0200
+@@ -20,6 +20,7 @@
+
+ #include "ax.h"
+
++using namespace std;
+
+ ///////////////////////////////////////////////////////////////////////////////
+ //
+diff -ur accessx.orig/ax.h accessx/ax.h
+--- accessx.orig/ax.h 2003-09-19 19:06:56.000000000 +0300
++++ accessx/ax.h 2008-01-07 18:53:51.000000000 +0200
+@@ -24,7 +24,7 @@
+
+ // Include Files
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
diff --git a/x11-misc/accessx/metadata.xml b/x11-misc/accessx/metadata.xml
new file mode 100644
index 000000000000..2ba8e9e851e4
--- /dev/null
+++ b/x11-misc/accessx/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>desktop-misc@gentoo.org</email>
+ <name>Gentoo Desktop Miscellaneous Project</name>
+ </maintainer>
+</pkgmetadata>