From b493dc4c0369bb93f4f94ddfb3fbeb72f1d9cede Mon Sep 17 00:00:00 2001 From: Pawel Pekala Date: Sun, 3 Jul 2016 18:05:08 +0000 Subject: [PATCH] Small program that allows to query and change the XKB layout state from command line. WWW: https://github.com/ierton/xkb-switch PR: 210501 Submitted by: Dmitri Goutnik --- x11/Makefile | 1 + x11/xkb-switch/Makefile | 32 +++++++++++++++++++++++ x11/xkb-switch/distinfo | 3 +++ x11/xkb-switch/files/patch-CMakeLists.txt | 14 ++++++++++ x11/xkb-switch/pkg-descr | 4 +++ 5 files changed, 54 insertions(+) create mode 100644 x11/xkb-switch/Makefile create mode 100644 x11/xkb-switch/distinfo create mode 100644 x11/xkb-switch/files/patch-CMakeLists.txt create mode 100644 x11/xkb-switch/pkg-descr diff --git a/x11/Makefile b/x11/Makefile index b8f8093aad40..ec3d02434b01 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -395,6 +395,7 @@ SUBDIR += xineramaproto SUBDIR += xinit SUBDIR += xinput + SUBDIR += xkb-switch SUBDIR += xkbcomp SUBDIR += xkbctrl SUBDIR += xkbevd diff --git a/x11/xkb-switch/Makefile b/x11/xkb-switch/Makefile new file mode 100644 index 000000000000..37e3ebe13d53 --- /dev/null +++ b/x11/xkb-switch/Makefile @@ -0,0 +1,32 @@ +# Created by: Dmitri Goutnik +# $FreeBSD$ + +PORTNAME= xkb-switch +PORTVERSION= 0.0.20160417 +CATEGORIES= x11 + +MAINTAINER= dg@syrec.org +COMMENT= Switch your X keyboard layouts from the command line + +LICENSE= GPLv3 + +USE_GITHUB= yes +GH_ACCOUNT= ierton +GH_TAGNAME= e6266a1 + +USES= cmake +USE_XORG= x11 xkbfile +USE_LDCONFIG= yes + +OPTIONS_DEFINE= DOCS + +PLIST_FILES= bin/xkb-switch \ + lib/libxkbswitch.so + +PORTDOCS= README.md + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + +.include diff --git a/x11/xkb-switch/distinfo b/x11/xkb-switch/distinfo new file mode 100644 index 000000000000..93dd72153f1b --- /dev/null +++ b/x11/xkb-switch/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1467568131 +SHA256 (ierton-xkb-switch-0.0.20160417-e6266a1_GH0.tar.gz) = 5dd873c6a89a07fe18261a01eb168a2d23da47603ca0f2bd531afd68f0a90da7 +SIZE (ierton-xkb-switch-0.0.20160417-e6266a1_GH0.tar.gz) = 18840 diff --git a/x11/xkb-switch/files/patch-CMakeLists.txt b/x11/xkb-switch/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..c019ac3bcd95 --- /dev/null +++ b/x11/xkb-switch/files/patch-CMakeLists.txt @@ -0,0 +1,14 @@ +--- CMakeLists.txt.orig 2016-04-17 08:55:32 UTC ++++ CMakeLists.txt +@@ -4,6 +4,11 @@ PROJECT( XKB-SWITCH ) + + FIND_PROGRAM(CTAGS ctags) + ++FIND_PACKAGE(X11 REQUIRED) ++ ++INCLUDE_DIRECTORIES(${X11_INCLUDE_DIR}) ++LINK_DIRECTORIES(${X11_LIBRARY_DIR}) ++ + ADD_EXECUTABLE(xkb-switch XKbSwitch.cpp XKeyboard.cpp) + + TARGET_LINK_LIBRARIES(xkb-switch X11 xkbfile) diff --git a/x11/xkb-switch/pkg-descr b/x11/xkb-switch/pkg-descr new file mode 100644 index 000000000000..ed1594500897 --- /dev/null +++ b/x11/xkb-switch/pkg-descr @@ -0,0 +1,4 @@ +Small program that allows to query and change the XKB layout state from +command line. + +WWW: https://github.com/ierton/xkb-switch