summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-09-14 19:18:47 +0200
committerJeroen Roovers <jer@gentoo.org>2020-09-14 19:19:45 +0200
commit5adaedfea17fc319c37699af610c9684b38ecc17 (patch)
treeb915919103413b728620d5004342f0d00a355ef6
parentdev-util/scons: stable 4.0.1 for sparc, bug #742359 (diff)
downloadgentoo-5adaedfea17fc319c37699af610c9684b38ecc17.tar.gz
gentoo-5adaedfea17fc319c37699af610c9684b38ecc17.tar.bz2
gentoo-5adaedfea17fc319c37699af610c9684b38ecc17.zip
x11-misc/svkbd: Initial commit
Package-Manager: Portage-3.0.6, Repoman-3.0.1 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
-rw-r--r--x11-misc/svkbd/Manifest1
-rw-r--r--x11-misc/svkbd/metadata.xml7
-rw-r--r--x11-misc/svkbd/svkbd-0.2.ebuild50
3 files changed, 58 insertions, 0 deletions
diff --git a/x11-misc/svkbd/Manifest b/x11-misc/svkbd/Manifest
new file mode 100644
index 00000000000..5a4afcb60d4
--- /dev/null
+++ b/x11-misc/svkbd/Manifest
@@ -0,0 +1 @@
+DIST svkbd-0.2.tar.gz 19470 BLAKE2B 3b97cfe37439474a31f382f86706b47effab82a1ef5ba0a278e0e7241b304b2cd096c01d88a60fc8ed2c25fb4c019b3fbe18645378b4508f339e69739381f22f SHA512 320f212c21163bd143e468bc541f79bc290e695704db1f7912112b07e673b6cde9766768c1e153a88962a8385ff9ac6cb78c2da5ca8ffb1b57be5eac26d46553
diff --git a/x11-misc/svkbd/metadata.xml b/x11-misc/svkbd/metadata.xml
new file mode 100644
index 00000000000..cfab5bb7c8d
--- /dev/null
+++ b/x11-misc/svkbd/metadata.xml
@@ -0,0 +1,7 @@
+<?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>
+</maintainer>
+</pkgmetadata>
diff --git a/x11-misc/svkbd/svkbd-0.2.ebuild b/x11-misc/svkbd/svkbd-0.2.ebuild
new file mode 100644
index 00000000000..a6f135c3de9
--- /dev/null
+++ b/x11-misc/svkbd/svkbd-0.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit savedconfig toolchain-funcs
+
+DESCRIPTION="Simple Virtual Keyboard"
+HOMEPAGE="https://tools.suckless.org/x/svkbd/"
+SRC_URI="https://dl.suckless.org/tools/${P}.tar.gz"
+
+LICENSE="MIT-with-advertising"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ x11-libs/libX11
+ x11-libs/libXft
+ x11-libs/libXinerama
+ x11-libs/libXtst
+"
+DEPEND="
+ ${DEPEND}
+ x11-base/xorg-proto
+"
+
+src_prepare() {
+ default
+
+ restore_config config.def.h
+
+ sed -i -e 's|pkg-config|$(PKG_CONFIG)|g' Makefile || die
+}
+
+src_compile() {
+ for i in layout*.h; do
+ i=${i/layout.}; i=${i/.h}
+ emake \
+ CC="$(tc-getCC)" \
+ PKG_CONFIG="$(tc-getPKG_CONFIG)" \
+ LAYOUT=${i}
+ done
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+
+ doman ${PN}.1
+
+ save_config config.def.h
+}