[gentoo-commits] repo/gentoo:master commit in: x11-misc/x2x/

2022-10-11 Thread Ionen Wolkens
commit: c16c4285e4ca3f13f0840350518fcddbc31f4d66
Author: Ionen Wolkens  gentoo  org>
AuthorDate: Tue Oct 11 08:26:56 2022 +
Commit: Ionen Wolkens  gentoo  org>
CommitDate: Tue Oct 11 08:56:03 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c16c4285

x11-misc/x2x: pass -std=gnu89

Does not build with `clang -std=c2x`, early workaround for
when this will become a default.

(not actively hunting for these, merely revisiting packages
previously looked at for clang16 even if not an issue "yet").

Signed-off-by: Ionen Wolkens  gentoo.org>

 x11-misc/x2x/x2x-1.30-r1.ebuild | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/x11-misc/x2x/x2x-1.30-r1.ebuild b/x11-misc/x2x/x2x-1.30-r1.ebuild
index 505f19649f03..202c42f4bebf 100644
--- a/x11-misc/x2x/x2x-1.30-r1.ebuild
+++ b/x11-misc/x2x/x2x-1.30-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools toolchain-funcs
+inherit autotools flag-o-matic toolchain-funcs
 
 DESCRIPTION="A utility to connect the mouse and keyboard to another X"
 HOMEPAGE="https://github.com/dottedmag/x2x;
@@ -31,7 +31,10 @@ DOCS=( README AUTHORS INSTALL ChangeLog ChangeLog.old )
 
 src_prepare() {
default
+
eautoreconf
+
+   append-cflags -std=gnu89 # old codebase, incompatible with c2x
 }
 
 src_compile() {



[gentoo-commits] repo/gentoo:master commit in: x11-misc/x2x/

2022-09-30 Thread Ionen Wolkens
commit: 6cafe8b2adb5449e7a7c98b024b618939d0774b9
Author: Ionen Wolkens  gentoo  org>
AuthorDate: Fri Sep 30 08:51:31 2022 +
Commit: Ionen Wolkens  gentoo  org>
CommitDate: Fri Sep 30 10:48:11 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cafe8b2

x11-misc/x2x: fixup build deps

This doesn't use imake/rman anymore.

Small package so revbump to allow depcleaning these more easily.

Signed-off-by: Ionen Wolkens  gentoo.org>

 x11-misc/x2x/{x2x-1.30.ebuild => x2x-1.30-r1.ebuild} | 13 +
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/x11-misc/x2x/x2x-1.30.ebuild b/x11-misc/x2x/x2x-1.30-r1.ebuild
similarity index 89%
rename from x11-misc/x2x/x2x-1.30.ebuild
rename to x11-misc/x2x/x2x-1.30-r1.ebuild
index e1ea883c0b2f..505f19649f03 100644
--- a/x11-misc/x2x/x2x-1.30.ebuild
+++ b/x11-misc/x2x/x2x-1.30-r1.ebuild
@@ -8,28 +8,25 @@ inherit autotools toolchain-funcs
 DESCRIPTION="A utility to connect the mouse and keyboard to another X"
 HOMEPAGE="https://github.com/dottedmag/x2x;
 
SRC_URI="https://github.com/dottedmag/x2x/archive/refs/tags/debian/${PV}-10.tar.gz
 -> ${P}.tar.gz"
+S="${WORKDIR}"/${PN}-debian-1.30-10
 
 LICENSE="MIT BSD"
 SLOT="0"
 KEYWORDS="amd64 ~arm ~mips ppc x86"
-IUSE=""
 
 RDEPEND="x11-libs/libX11
x11-libs/libXtst
x11-libs/libXext"
-DEPEND="${RDEPEND}"
-BDEPEND="
-   app-text/rman
-   x11-base/xorg-proto
-   >=x11-misc/imake-1.0.8-r1"
-
-S="${WORKDIR}"/${PN}-debian-1.30-10
+DEPEND="${RDEPEND}
+   x11-base/xorg-proto"
+BDEPEND="virtual/pkgconfig"
 
 PATCHES=(
# Patch to fix bug #126939
# AltGr does not work in x2x with different keymaps:
"${FILESDIR}"/${PN}_1.30-10-keymap.patch
 )
+
 DOCS=( README AUTHORS INSTALL ChangeLog ChangeLog.old )
 
 src_prepare() {



[gentoo-commits] repo/gentoo:master commit in: x11-misc/x2x/

2022-09-30 Thread Ionen Wolkens
commit: ee11946e94226fc50234380a368ecd8dbb0b7520
Author: Ionen Wolkens  gentoo  org>
AuthorDate: Fri Sep 30 08:46:22 2022 +
Commit: Ionen Wolkens  gentoo  org>
CommitDate: Fri Sep 30 10:48:11 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee11946e

x11-misc/x2x: drop 1.27-r3

Came here to do some fixing of imake-using packages, but the newer
version doesn't use it (yay). Let's just get rid of this one.

Signed-off-by: Ionen Wolkens  gentoo.org>

 x11-misc/x2x/Manifest   |  4 ---
 x11-misc/x2x/x2x-1.27-r3.ebuild | 61 -
 2 files changed, 65 deletions(-)

diff --git a/x11-misc/x2x/Manifest b/x11-misc/x2x/Manifest
index afbe097daec5..1de96fbf7187 100644
--- a/x11-misc/x2x/Manifest
+++ b/x11-misc/x2x/Manifest
@@ -1,5 +1 @@
-DIST x2x-1.27-keymap.diff.gz 1145 BLAKE2B 
cca78c368a9f5a27c94121eec12ab800322d1b0549c1be940b22dd455cbd42761283d1646bba8e098b94364cd6023ef6e615df9f788cf68913af967077eb6de9
 SHA512 
46e0d9cef4b985523e4bf2d6c550d68f488c0975a007433f2a6c03d77541ce0cbdffd44ea29472fa6db4e8b804503cdaf9e8b5f9d72c56d902270cf3291ca37f
-DIST x2x-1.27.tar.gz 16776 BLAKE2B 
8f78d801c1911928b0d5bb37b406bcf5285d3a54daf5067abae40125ad4e4f7fc52b8cc74f4e1c35b99350fc794f80c26120cae48e5076326746ec87d7aee0f3
 SHA512 
c5f8b1ec49f9871bf0d8142a047a2dff9a6ee262dfafd459044c977973dd45e297186961a8793938fc8e328f2553ec4de97e06343bdf3550f3bc3f2368b23131
 DIST x2x-1.30.tar.gz 52760 BLAKE2B 
fae2eeb9aa68241c3ba9e79021aa9313a5852048f23b6be8ad5de7dd090d2cd09c006f4c1b1403ccfa8057f314657c2248463a7c53187e41291742cfaa04139a
 SHA512 
cb14b40e1511e3fe6c927443f5f411a827ebf6c313bfb46af0165eebdd534c8aa3abcc8064b89420b7f44c23c518ed4f02bab4c23bbcfaece8910a3f824c9c11
-DIST x2x_1.27-8-initvars.patch.gz 494 BLAKE2B 
97d48f4a2e7b65fd6755860c51399e5b6343bd0c7e6c79c7dd311792a899a02ed0ac6991d16495e96ca34913fbcec011b106bac6d0f9798540fb5704ca12f4cf
 SHA512 
53060affef7575106932380063616473103c738193fdeab9118e0fb9ec1d1de2fe63f4112e5af82fe38198d0b42a10effde574bb9dee95c8fefdbdf680dbdf01
-DIST x2x_1.27-8.diff.gz 13291 BLAKE2B 
4a4a0bf34a864596cff2f0722163bfe53968e30892bd0a18ed18ca6c3ef8f5bc763b215381c46792b499839397dbecab033bd9095646fad36613ad11beba1240
 SHA512 
8201ab5fd0efd93adec53cec3b48f7b4de907b2db184ffa6e85a1e16739b4d0021f4562820d0b4730a0f6a2779985b5574973c2b0ceb04b241f0d7dc15060b71

diff --git a/x11-misc/x2x/x2x-1.27-r3.ebuild b/x11-misc/x2x/x2x-1.27-r3.ebuild
deleted file mode 100644
index 3fa95a9e0e9a..
--- a/x11-misc/x2x/x2x-1.27-r3.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit toolchain-funcs
-
-DESCRIPTION="A utility to connect the Mouse and KeyBoard to another X"
-HOMEPAGE="http://www.the-labs.com/X11/#x2x;
-SRC_URI="http://ftp.digital.com/pub/Digital/SRC/x2x/${P}.tar.gz
-   mirror://debian/pool/main/x/x2x/x2x_1.27-8.diff.gz
-   mirror://gentoo/x2x_1.27-8-initvars.patch.gz
-   mirror://gentoo/${P}-keymap.diff.gz"
-
-LICENSE="x2x"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~mips ppc x86"
-IUSE=""
-
-RDEPEND="x11-libs/libX11
-   x11-libs/libXtst
-   x11-libs/libXext"
-DEPEND="${RDEPEND}"
-BDEPEND="
-   app-text/rman
-   x11-base/xorg-proto
-   >=x11-misc/imake-1.0.8-r1"
-
-PATCHES=(
-   # Patch from Debian to add -north and -south, among other fixes
-   "${WORKDIR}"/x2x_1.27-8.diff
-   # Fix variable initialization in Debian patch
-   "${WORKDIR}"/x2x_1.27-8-initvars.patch
-   # Patch to fix bug #126939
-   # AltGr does not work in x2x with different keymaps:
-   "${WORKDIR}"/${P}-keymap.diff
-)
-
-src_prepare() {
-   default
-
-   # Revert part of debian patch messing with CFLAGS
-   sed -i '/CFLAGS = -Wall/d' Imakefile || die
-   # Man-page is packaged as x2x.1 but needs to be x2x.man for building
-   mv x2x.1 x2x.man || die
-}
-
-src_configure() {
-   CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
-   IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die
-}
-
-src_compile() {
-   emake CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" \
-   EXTRA_LDOPTIONS="${LDFLAGS}"
-}
-
-src_install() {
-   default
-   newman x2x.man x2x.1
-}



[gentoo-commits] repo/gentoo:master commit in: x11-misc/x2x/

2022-03-14 Thread Agostino Sarubbo
commit: dd28782044065a9d30ccae4106c2c8a063eb1602
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon Mar 14 18:33:36 2022 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon Mar 14 18:33:36 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd287820

x11-misc/x2x: ppc stable wrt bug #835092

Package-Manager: Portage-3.0.30, Repoman-3.0.3
RepoMan-Options: --include-arches="ppc"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 x11-misc/x2x/x2x-1.30.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-misc/x2x/x2x-1.30.ebuild b/x11-misc/x2x/x2x-1.30.ebuild
index 95bc2cb3fea6..0ea2d36c6179 100644
--- a/x11-misc/x2x/x2x-1.30.ebuild
+++ b/x11-misc/x2x/x2x-1.30.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/dottedmag/x2x/archive/refs/tags/debian/${PV}-10.tar.
 
 LICENSE="MIT BSD"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~mips ~ppc ~x86"
+KEYWORDS="amd64 ~arm ~mips ppc ~x86"
 IUSE=""
 
 RDEPEND="x11-libs/libX11



[gentoo-commits] repo/gentoo:master commit in: x11-misc/x2x/

2022-03-14 Thread Agostino Sarubbo
commit: 3821a84d56866538ed9717cbc5d95d49ac66d824
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon Mar 14 18:35:31 2022 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon Mar 14 18:35:31 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3821a84d

x11-misc/x2x: x86 stable wrt bug #835092

Package-Manager: Portage-3.0.30, Repoman-3.0.3
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 x11-misc/x2x/x2x-1.30.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-misc/x2x/x2x-1.30.ebuild b/x11-misc/x2x/x2x-1.30.ebuild
index 0ea2d36c6179..e1ea883c0b2f 100644
--- a/x11-misc/x2x/x2x-1.30.ebuild
+++ b/x11-misc/x2x/x2x-1.30.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/dottedmag/x2x/archive/refs/tags/debian/${PV}-10.tar.
 
 LICENSE="MIT BSD"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~mips ppc ~x86"
+KEYWORDS="amd64 ~arm ~mips ppc x86"
 IUSE=""
 
 RDEPEND="x11-libs/libX11



[gentoo-commits] repo/gentoo:master commit in: x11-misc/x2x/

2022-03-14 Thread Agostino Sarubbo
commit: 448609f58be0d523f73810573d78849cae67549b
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon Mar 14 18:32:52 2022 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon Mar 14 18:32:52 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=448609f5

x11-misc/x2x: amd64 stable wrt bug #835092

Package-Manager: Portage-3.0.30, Repoman-3.0.3
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 x11-misc/x2x/x2x-1.30.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-misc/x2x/x2x-1.30.ebuild b/x11-misc/x2x/x2x-1.30.ebuild
index 09d330e821dd..95bc2cb3fea6 100644
--- a/x11-misc/x2x/x2x-1.30.ebuild
+++ b/x11-misc/x2x/x2x-1.30.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/dottedmag/x2x/archive/refs/tags/debian/${PV}-10.tar.
 
 LICENSE="MIT BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
+KEYWORDS="amd64 ~arm ~mips ~ppc ~x86"
 IUSE=""
 
 RDEPEND="x11-libs/libX11



[gentoo-commits] repo/gentoo:master commit in: x11-misc/x2x/files/

2022-01-15 Thread Sam James
commit: 0bf7b7a0e6a7ec274beadfea9b10a8243f942276
Author: Philipp Rösner  protonmail  com>
AuthorDate: Sat Jan 15 23:26:16 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jan 16 01:33:34 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bf7b7a0

x11-misc/x2x: added documentation for keymap option

The patch that implemented custom keysym bindings lacked documentation
in the usage output and in the man page, so we added this accordingly.

Closes: https://bugs.gentoo.org/484482
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Philipp Roesner  protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/23819
Signed-off-by: Sam James  gentoo.org>

 x11-misc/x2x/files/x2x_1.30-10-keymap.patch | 35 +
 1 file changed, 35 insertions(+)

diff --git a/x11-misc/x2x/files/x2x_1.30-10-keymap.patch 
b/x11-misc/x2x/files/x2x_1.30-10-keymap.patch
index f1d7f543fcf5..b9bb1f9b9623 100644
--- a/x11-misc/x2x/files/x2x_1.30-10-keymap.patch
+++ b/x11-misc/x2x/files/x2x_1.30-10-keymap.patch
@@ -54,6 +54,14 @@
  } else if (!strcasecmp(argv[arg], "-buttonmap")) {
if (++arg >= argc) Usage();
button = atoi(argv[arg]);
+@@ -842,6 +842,7 @@ static void Usage()
+   printf("   -completeregionup \n");
+   printf("   -completeregionlow \n");
+   printf("   -struts\n");
++  printf("   -keymap  \n");
+ #ifdef WIN_2_X
+   printf("   -offset [-]\n");
+   printf("WIN_2_X build allows Windows or X as -from display\n");
 @@ -2200,6 +2224,7 @@ XKeyEvent *pEv;
PSHADOW   pShadow;
Bool  bPress;
@@ -78,3 +86,30 @@
/* If CapsLock is on, we need to do some funny business to make sure the */
/* "to" display does the right thing */
if(doCapsLkHack && (pEv->state & 0x2))
+
+--- a./x2x.1
 b./x2x.1
+@@ -309,6 +309,12 @@ Describes uppermost coordinate of complete rectangle 
region in from-display.
+ .B \-completeregionlow
+ .IP
+ Describes lowermost coordinate of complete rectangle region in from-display.
++.TP
++.B \-keymap \fIfrom-keysym\fP \fIto-keysym\fP
++.IP
++Translates the \fIfrom-keysym\fP keysym of the first X to \fIto-keysym\fP of 
the second X.
++See X11/keysymdef.h for available keysyms.
++Alternatively you can use setxkbmap, as described in the BUGS section.
+ .SH EXAMPLES
+ Calling the system whose keyboard is to be used "primary" and the
+ other system "secondary", you need to specify either \-from
+@@ -329,6 +333,10 @@ secondary $ ssh \-X primary x2x \-from :0 \-west
+ run directly indirectly on primary:
+ .IP
+ primary $ ssh \-A secondary env DISPLAY=:0.0 ssh \-X primary x2x \-from :0 
\-east
++.TP
++set a custom keymap binding:
++.IP
++x2x -keymap ISO_Level3_Shift Mode_switch
+ 
+ .RE
+ If your primary display is configured with several monitors having different



[gentoo-commits] repo/gentoo:master commit in: x11-misc/x2x/files/, x11-misc/x2x/

2022-01-11 Thread Florian Schmaus
commit: 628935c96983361f7fbfa3adb1771ef06f8d821a
Author: Philipp Rösner  protonmail  com>
AuthorDate: Wed Jan  5 22:12:20 2022 +
Commit: Florian Schmaus  gentoo  org>
CommitDate: Tue Jan 11 16:30:32 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=628935c9

x11-misc/x2x: version bump to 1.30

We added an ebuild for x2x-1.30-10.
It uses the current upstream source, which now resides on GitHub.
Also, we removed obsolete patches and refactored the ebuild.
Furthermore, I added myself as a proxied maintainer.

Closes: https://bugs.gentoo.org/754132
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Philipp Roesner  protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/23668
Signed-off-by: Florian Schmaus  gentoo.org>
Modified-by: Florian Schmaus  gentoo.org>

 x11-misc/x2x/Manifest   |  1 +
 x11-misc/x2x/files/x2x_1.30-10-keymap.patch | 80 +
 x11-misc/x2x/metadata.xml   |  9 +++-
 x11-misc/x2x/x2x-1.30.ebuild| 48 +
 4 files changed, 137 insertions(+), 1 deletion(-)

diff --git a/x11-misc/x2x/Manifest b/x11-misc/x2x/Manifest
index b7569af88c55..afbe097daec5 100644
--- a/x11-misc/x2x/Manifest
+++ b/x11-misc/x2x/Manifest
@@ -1,4 +1,5 @@
 DIST x2x-1.27-keymap.diff.gz 1145 BLAKE2B 
cca78c368a9f5a27c94121eec12ab800322d1b0549c1be940b22dd455cbd42761283d1646bba8e098b94364cd6023ef6e615df9f788cf68913af967077eb6de9
 SHA512 
46e0d9cef4b985523e4bf2d6c550d68f488c0975a007433f2a6c03d77541ce0cbdffd44ea29472fa6db4e8b804503cdaf9e8b5f9d72c56d902270cf3291ca37f
 DIST x2x-1.27.tar.gz 16776 BLAKE2B 
8f78d801c1911928b0d5bb37b406bcf5285d3a54daf5067abae40125ad4e4f7fc52b8cc74f4e1c35b99350fc794f80c26120cae48e5076326746ec87d7aee0f3
 SHA512 
c5f8b1ec49f9871bf0d8142a047a2dff9a6ee262dfafd459044c977973dd45e297186961a8793938fc8e328f2553ec4de97e06343bdf3550f3bc3f2368b23131
+DIST x2x-1.30.tar.gz 52760 BLAKE2B 
fae2eeb9aa68241c3ba9e79021aa9313a5852048f23b6be8ad5de7dd090d2cd09c006f4c1b1403ccfa8057f314657c2248463a7c53187e41291742cfaa04139a
 SHA512 
cb14b40e1511e3fe6c927443f5f411a827ebf6c313bfb46af0165eebdd534c8aa3abcc8064b89420b7f44c23c518ed4f02bab4c23bbcfaece8910a3f824c9c11
 DIST x2x_1.27-8-initvars.patch.gz 494 BLAKE2B 
97d48f4a2e7b65fd6755860c51399e5b6343bd0c7e6c79c7dd311792a899a02ed0ac6991d16495e96ca34913fbcec011b106bac6d0f9798540fb5704ca12f4cf
 SHA512 
53060affef7575106932380063616473103c738193fdeab9118e0fb9ec1d1de2fe63f4112e5af82fe38198d0b42a10effde574bb9dee95c8fefdbdf680dbdf01
 DIST x2x_1.27-8.diff.gz 13291 BLAKE2B 
4a4a0bf34a864596cff2f0722163bfe53968e30892bd0a18ed18ca6c3ef8f5bc763b215381c46792b499839397dbecab033bd9095646fad36613ad11beba1240
 SHA512 
8201ab5fd0efd93adec53cec3b48f7b4de907b2db184ffa6e85a1e16739b4d0021f4562820d0b4730a0f6a2779985b5574973c2b0ceb04b241f0d7dc15060b71

diff --git a/x11-misc/x2x/files/x2x_1.30-10-keymap.patch 
b/x11-misc/x2x/files/x2x_1.30-10-keymap.patch
new file mode 100644
index ..f1d7f543fcf5
--- /dev/null
+++ b/x11-misc/x2x/files/x2x_1.30-10-keymap.patch
@@ -0,0 +1,80 @@
+--- a./x2x.c
 b./x2x.c
+@@ -321,6 +321,12 @@ typedef struct _sticky {
+   KeySym keysym;
+ } STICKY, *PSTICKY;
+ 
++typedef struct _keymap {
++  struct _keymap * pNext;
++  KeySym from;
++  KeySym to;
++} KEYMAP, *PKEYMAP;
++
+ typedef int  (*HANDLER)(); /* event handler function */
+ 
+ /* These prototypes need the typedefs */
+@@ -377,6 +383,7 @@ static BooldoDpmsMouse  = False;
+ static int logicalOffset= 0;
+ static int nButtons = 0;
+ static KeySym  buttonmap[N_BUTTONS + 1][MAX_BUTTONMAPEVENTS + 1];
++static PKEYMAP keymaps  = NULL;
+ static BoolnoScale  = False;
+ static int compRegLeft  = 0;
+ static int compRegRight = 0;
+@@ -571,7 +578,8 @@ char **argv;
+   PSHADOW pShadow;
+   extern  char *lawyerese;
+   PSTICKY pNewSticky;
+-  KeySym  keysym;
++  PKEYMAP pNewKeymap;
++  KeySym  keysym,keysym2;
+   int button;
+   int eventno;
+   char*keyname, *argptr;
+@@ -703,6 +711,22 @@ char **argv;
+   } else {
+ printf("x2x: warning: can't translate %s\n", argv[arg]);
+   }
++} else if (!strcasecmp(argv[arg], "-keymap")) {
++  if ((++arg+1) >= argc) Usage();
++  if (((keysym = XStringToKeysym(argv[arg])) != NoSymbol) &&
++((keysym2 = XStringToKeysym(argv[arg+1])) != NoSymbol)) {
++  pNewKeymap = (PKEYMAP)malloc(sizeof(KEYMAP));
++  pNewKeymap->pNext = keymaps;
++  pNewKeymap->from  = keysym;
++  pNewKeymap->to= keysym2;
++  keymaps = pNewKeymap;
++#ifdef DEBUG
++  printf("will translate key %s to %s\n", argv[arg],argv[arg+1]);
++#endif
++  } else {
++  printf("x2x: warning: can't translate %s or %s\n", 
argv[arg],argv[arg+1]);
++  }
++  arg++;
+ } else if (!strcasecmp(argv[arg], "-buttonmap")) {
+   if (++arg >= argc) Usage();
+   button = atoi(argv[arg]);
+@@ -2200,6 +2224,7 @@ XKeyEvent *pEv;
+   PSHADOW   pShadow;
+   Bool  

[gentoo-commits] repo/gentoo:master commit in: x11-misc/x2x/

2021-05-03 Thread Jonas Stein
commit: 78da7d88658b8ee11546835bab4191852a52126e
Author: Jonas Stein  gentoo  org>
AuthorDate: Mon May  3 16:46:59 2021 +
Commit: Jonas Stein  gentoo  org>
CommitDate: Mon May  3 16:46:59 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78da7d88

x11-misc/x2x: drop project desktop-misc

Drop project desktop-misc from the list of maintainers.

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Jonas Stein  gentoo.org>

 x11-misc/x2x/metadata.xml | 5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/x11-misc/x2x/metadata.xml b/x11-misc/x2x/metadata.xml
index 2ba8e9e851e..7a38bb90096 100644
--- a/x11-misc/x2x/metadata.xml
+++ b/x11-misc/x2x/metadata.xml
@@ -1,8 +1,5 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
 
-   
-   desktop-m...@gentoo.org
-   Gentoo Desktop Miscellaneous Project
-   
+   
 



[gentoo-commits] repo/gentoo:master commit in: x11-misc/x2x/

2021-04-15 Thread Joonas Niilola
commit: a50d9135ce439a19167f417374a6c8c86545cceb
Author: Ionen Wolkens  gmail  com>
AuthorDate: Wed Apr 14 12:17:04 2021 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Thu Apr 15 06:38:55 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a50d9135

x11-misc/x2x: fix build with -native-symlinks

Also swapped DEPEND with BDEPEND to put imake in the right block.

Closes: https://bugs.gentoo.org/726236
Signed-off-by: Ionen Wolkens  gmail.com>
Signed-off-by: Joonas Niilola  gentoo.org>

 x11-misc/x2x/x2x-1.27-r3.ebuild | 10 ++
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/x11-misc/x2x/x2x-1.27-r3.ebuild b/x11-misc/x2x/x2x-1.27-r3.ebuild
index 4c02869b428..3fa95a9e0e9 100644
--- a/x11-misc/x2x/x2x-1.27-r3.ebuild
+++ b/x11-misc/x2x/x2x-1.27-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -20,10 +20,11 @@ IUSE=""
 RDEPEND="x11-libs/libX11
x11-libs/libXtst
x11-libs/libXext"
-DEPEND="${RDEPEND}
+DEPEND="${RDEPEND}"
+BDEPEND="
app-text/rman
x11-base/xorg-proto
-   x11-misc/imake"
+   >=x11-misc/imake-1.0.8-r1"
 
 PATCHES=(
# Patch from Debian to add -north and -south, among other fixes
@@ -45,7 +46,8 @@ src_prepare() {
 }
 
 src_configure() {
-   xmkmf || die
+   CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
+   IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die
 }
 
 src_compile() {



[gentoo-commits] repo/gentoo:master commit in: x11-misc/x2x/

2019-11-10 Thread Michał Górny
commit: 841caba79792f1c0f747041c5bf6e61b63eab56e
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Nov  9 19:47:24 2019 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Nov  9 19:50:46 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=841caba7

x11-misc/x2x: Bump to EAPI 7

Closes: https://bugs.gentoo.org/697150
Signed-off-by: Michał Górny  gentoo.org>

 x11-misc/x2x/Manifest   |  1 -
 x11-misc/x2x/x2x-1.27-r3.ebuild | 47 -
 2 files changed, 23 insertions(+), 25 deletions(-)

diff --git a/x11-misc/x2x/Manifest b/x11-misc/x2x/Manifest
index 4b10d5c4033..b7569af88c5 100644
--- a/x11-misc/x2x/Manifest
+++ b/x11-misc/x2x/Manifest
@@ -1,5 +1,4 @@
 DIST x2x-1.27-keymap.diff.gz 1145 BLAKE2B 
cca78c368a9f5a27c94121eec12ab800322d1b0549c1be940b22dd455cbd42761283d1646bba8e098b94364cd6023ef6e615df9f788cf68913af967077eb6de9
 SHA512 
46e0d9cef4b985523e4bf2d6c550d68f488c0975a007433f2a6c03d77541ce0cbdffd44ea29472fa6db4e8b804503cdaf9e8b5f9d72c56d902270cf3291ca37f
-DIST x2x-1.27-license.patch.gz 1001 BLAKE2B 
c63aaa33f669a63073e5ee52c51d47a9c2ca27d222f28cefe46eb6ed092d32004b4a42ce7b9176960a75ef95443ed7fee33cb01f4e343c7c2cda2d80f516f9f5
 SHA512 
cdff296ed3ea7d3d72b7d64f4878d94b63ee459a3487668b2174f54e4d2519daa1fb80ffec2cb3ce188032bb72148629cb276eb0d0311ed1f26c3da8066caed8
 DIST x2x-1.27.tar.gz 16776 BLAKE2B 
8f78d801c1911928b0d5bb37b406bcf5285d3a54daf5067abae40125ad4e4f7fc52b8cc74f4e1c35b99350fc794f80c26120cae48e5076326746ec87d7aee0f3
 SHA512 
c5f8b1ec49f9871bf0d8142a047a2dff9a6ee262dfafd459044c977973dd45e297186961a8793938fc8e328f2553ec4de97e06343bdf3550f3bc3f2368b23131
 DIST x2x_1.27-8-initvars.patch.gz 494 BLAKE2B 
97d48f4a2e7b65fd6755860c51399e5b6343bd0c7e6c79c7dd311792a899a02ed0ac6991d16495e96ca34913fbcec011b106bac6d0f9798540fb5704ca12f4cf
 SHA512 
53060affef7575106932380063616473103c738193fdeab9118e0fb9ec1d1de2fe63f4112e5af82fe38198d0b42a10effde574bb9dee95c8fefdbdf680dbdf01
 DIST x2x_1.27-8.diff.gz 13291 BLAKE2B 
4a4a0bf34a864596cff2f0722163bfe53968e30892bd0a18ed18ca6c3ef8f5bc763b215381c46792b499839397dbecab033bd9095646fad36613ad11beba1240
 SHA512 
8201ab5fd0efd93adec53cec3b48f7b4de907b2db184ffa6e85a1e16739b4d0021f4562820d0b4730a0f6a2779985b5574973c2b0ceb04b241f0d7dc15060b71

diff --git a/x11-misc/x2x/x2x-1.27-r3.ebuild b/x11-misc/x2x/x2x-1.27-r3.ebuild
index a353108f7c6..4c02869b428 100644
--- a/x11-misc/x2x/x2x-1.27-r3.ebuild
+++ b/x11-misc/x2x/x2x-1.27-r3.ebuild
@@ -1,18 +1,18 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=0
+EAPI=7
 
-inherit eutils toolchain-funcs
+inherit toolchain-funcs
 
 DESCRIPTION="A utility to connect the Mouse and KeyBoard to another X"
 HOMEPAGE="http://www.the-labs.com/X11/#x2x;
-LICENSE="x2x"
 SRC_URI="http://ftp.digital.com/pub/Digital/SRC/x2x/${P}.tar.gz
mirror://debian/pool/main/x/x2x/x2x_1.27-8.diff.gz
mirror://gentoo/x2x_1.27-8-initvars.patch.gz
-   mirror://gentoo/${P}-license.patch.gz
mirror://gentoo/${P}-keymap.diff.gz"
+
+LICENSE="x2x"
 SLOT="0"
 KEYWORDS="amd64 ~arm ~mips ppc x86"
 IUSE=""
@@ -25,36 +25,35 @@ DEPEND="${RDEPEND}
x11-base/xorg-proto
x11-misc/imake"
 
-src_unpack() {
-   unpack ${A}
-   cd "${S}"
-
+PATCHES=(
# Patch from Debian to add -north and -south, among other fixes
-   epatch "${DISTDIR}"/x2x_1.27-8.diff.gz
-   # Revert part of debian patch messing with CFLAGS
-   sed -i '/CFLAGS = -Wall/d' Imakefile || die
-
+   "${WORKDIR}"/x2x_1.27-8.diff
# Fix variable initialization in Debian patch
-   epatch "${DISTDIR}"/x2x_1.27-8-initvars.patch.gz
-
-   # Patch to add LICENSE
-   epatch "${DISTDIR}"/${P}-license.patch.gz
-
+   "${WORKDIR}"/x2x_1.27-8-initvars.patch
# Patch to fix bug #126939
# AltGr does not work in x2x with different keymaps:
-   epatch "${DISTDIR}"/${P}-keymap.diff.gz
+   "${WORKDIR}"/${P}-keymap.diff
+)
+
+src_prepare() {
+   default
 
+   # Revert part of debian patch messing with CFLAGS
+   sed -i '/CFLAGS = -Wall/d' Imakefile || die
# Man-page is packaged as x2x.1 but needs to be x2x.man for building
mv x2x.1 x2x.man || die
 }
 
-src_compile() {
+src_configure() {
xmkmf || die
+}
+
+src_compile() {
emake CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" \
-   EXTRA_LDOPTIONS="${LDFLAGS}" || die
+   EXTRA_LDOPTIONS="${LDFLAGS}"
 }
 
-src_install () {
-   emake DESTDIR="${D}" install || die
-   newman x2x.man x2x.1 || die
+src_install() {
+   default
+   newman x2x.man x2x.1
 }