public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-alternatives/phosh-keyboard/
Date: Thu,  8 Feb 2024 09:29:12 +0000 (UTC)	[thread overview]
Message-ID: <1707376190.bdebd593450acad002baf1cdefa7d4c8fd40bf16.davidroman@gentoo> (raw)

commit:     bdebd593450acad002baf1cdefa7d4c8fd40bf16
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Tue Feb  6 17:18:20 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Feb  8 07:09:50 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bdebd593

app-alternatives/phosh-keyboard: new package, add 0

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 app-alternatives/phosh-keyboard/metadata.xml       | 16 ++++++++++++++
 .../phosh-keyboard/phosh-keyboard-0.ebuild         | 25 ++++++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/app-alternatives/phosh-keyboard/metadata.xml b/app-alternatives/phosh-keyboard/metadata.xml
new file mode 100644
index 0000000000..d0bedfc5ed
--- /dev/null
+++ b/app-alternatives/phosh-keyboard/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>cyber+gentoo@sysrq.in</email>
+		<name>Anna</name>
+	</maintainer>
+	<use>
+		<flag name="phosh-osk-stub">
+			Symlink to <pkg>phosh-base/phosh-osk-stub</pkg>
+		</flag>
+		<flag name="squeekboard">
+			Symlink to <pkg>phosh-base/squeekboard</pkg>
+		</flag>
+	</use>
+</pkgmetadata>

diff --git a/app-alternatives/phosh-keyboard/phosh-keyboard-0.ebuild b/app-alternatives/phosh-keyboard/phosh-keyboard-0.ebuild
new file mode 100644
index 0000000000..52e2d5374a
--- /dev/null
+++ b/app-alternatives/phosh-keyboard/phosh-keyboard-0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ALTERNATIVES=(
+	phosh-osk-stub:phosh-base/phosh-osk-stub
+	squeekboard:phosh-base/squeekboard
+)
+
+inherit app-alternatives
+
+DESCRIPTION="sm.puri.OSK0.desktop symlinks"
+KEYWORDS="~amd64"
+
+src_install() {
+	local target="/usr/share/applications/sm.puri.OSK0.desktop"
+
+	case $(get_alternative) in
+		phosh-osk-stub)
+			dosym sm.puri.Phosh.OskStub.desktop "${target:?}";;
+		squeekboard)
+			dosym sm.puri.Squeekboard.desktop "${target:?}";;
+	esac
+}


             reply	other threads:[~2024-02-08  9:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-08  9:29 David Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-17 13:21 [gentoo-commits] repo/proj/guru:master commit in: app-alternatives/phosh-keyboard/ Nowa Ammerlaan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1707376190.bdebd593450acad002baf1cdefa7d4c8fd40bf16.davidroman@gentoo \
    --to=davidroman96@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox