Github messages for voidlinux
 help / color / mirror / Atom feed
From: astralchan <astralchan@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] [WIP] New package: kime-2.5.6
Date: Fri, 09 Sep 2022 14:41:25 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39182@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]

There is a new pull request by astralchan against master on the void-packages repository

https://github.com/astralchan/void-packages kime
https://github.com/void-linux/void-packages/pull/39182

[WIP] New package: kime-2.5.6
Closes [37070](https://github.com/void-linux/void-packages/issues/37070)

[ci skip]

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **NO**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->

Current error: `=> ERROR: kime-devel-2.5.6_1: PKGDESTDIR is empty and build_style != meta`

A patch file from https://github.com/void-linux/void-packages/pull/39182.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-kime-39182.patch --]
[-- Type: text/x-diff, Size: 2902 bytes --]

From 59415d33e6128119f9443e5884d300b179c5e733 Mon Sep 17 00:00:00 2001
From: astral <astral@astralchan.xyz>
Date: Fri, 9 Sep 2022 06:36:56 -0600
Subject: [PATCH] New package: kime-2.5.6

---
 srcpkgs/kime-devel    |  1 +
 srcpkgs/kime/template | 75 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)
 create mode 120000 srcpkgs/kime-devel
 create mode 100644 srcpkgs/kime/template

diff --git a/srcpkgs/kime-devel b/srcpkgs/kime-devel
new file mode 120000
index 000000000000..f8fe43e449f8
--- /dev/null
+++ b/srcpkgs/kime-devel
@@ -0,0 +1 @@
+kime
\ No newline at end of file
diff --git a/srcpkgs/kime/template b/srcpkgs/kime/template
new file mode 100644
index 000000000000..f0fb6573bd6d
--- /dev/null
+++ b/srcpkgs/kime/template
@@ -0,0 +1,75 @@
+# Template file for 'kime'
+pkgname=kime
+version=2.5.6
+revision=1
+hostmakedepends="cmake cargo clang pkg-config llvm"
+makedepends="
+	$(vopt_if gtk2 gtk+-devel)
+	$(vopt_if gtk3 gtk+3-devel)
+	$(vopt_if gtk4 gtk4-devel)
+	$(vopt_if qt5 qt5-devel)
+	$(vopt_if qt6 qt6-base-devel)
+	$(vopt_if xim xcb-util-devel)
+	$(vopt_if xim cairo-devel)
+	"
+depends="
+	$(vopt_if gtk2 gtk+)
+	$(vopt_if gtk3 gtk+3)
+	$(vopt_if gtk4 gtk4)
+	$(vopt_if qt5 qt5)"
+short_desc="Korean IME"
+maintainer="astralchan <astral@astralchan.xyz>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Riey/kime"
+distfiles="https://github.com/Riey/kime/archive/refs/tags/v${version}.tar.gz"
+checksum=e96ef7427b8ad64434c12e4e7c2c968e62f8efb98682a5887c72ba235ac3df3e
+
+# Set build options
+build_options="gtk2 gtk3 gtk4 qt5 qt6 xim wayland xim indicator candidate \
+kime check"
+
+# Set default options
+build_options_default="gtk3 xim wayland indicator cadidate kime check"
+
+do_build() {
+	# TODO Fix opt builds
+	KIME_CMAKE_ARGS="\
+	-DENABLE_GTK2=$(vopt_if gtk2 ON OFF)\
+	-DENABLE_GTK3=$(vopt_if gtk3 ON OFF)\
+	-DENABLE_GTK4=$(vopt_if gtk4 ON OFF)\
+	-DENABLE_QT5=$(vopt_if qt ON OFF)\
+	-DENABLE_QT6=$(vopt_if qt6 ON OFF)"\
+	KIME_CMAKE_ARGS="${KIME_CMAKE_ARGS}"\
+	KIME_MAKE_ARGS="${XBPS_MAKE_OPTS}"\
+	KIME_BUILD_XIM="$(vopt_if xim 1 0)"\
+	KIME_BUILD_WAYLAND="$(vopt_if wayland 1 0)"\
+	KIME_BUILD_INDICATOR="$(vopt_if indicator 1 0)"\
+	KIME_BUILD_KIME="$(vopt_if kime 1 0)"\
+	KIME_BUILD_CANDIDATE_WINDOW="$(vopt_if candidate 1 0)"\
+	KIME_BUILD_CHECK="$(vopt_if check 1 0)"\
+	./scripts/build.sh
+}
+
+do_install() {
+	echo "RUNNING INSTALL"
+	./scripts/install.sh "${DESTDIR}"/usr
+}
+
+post_install() {
+	if [ "${build_option_gtk2}" ]; then
+		gtk-query-immodules-2.0 --update-cache
+	fi
+	if [ "${build_option_gtk3}" ]; then
+		gtk-query-immodules-3.0 --update-cache
+	fi
+	if [ "${build_option_gtk4}" ]; then
+		gio-querymodules /usr/lib/gtk-4.0/4.0.0/immodules
+	fi
+}
+
+kime-devel_package() {
+	short_desc+=" - developement files"
+	do_install() {
+		./scripts/install.sh "${PKGDESTDIR}"/usr KIME_INSTALL_HEADER=1
+	}
+}

             reply	other threads:[~2022-09-09 12:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-09 12:41 astralchan [this message]
2022-09-09 12:44 ` [PR PATCH] [Updated] " astralchan
2022-09-09 12:45 ` astralchan
2022-09-09 12:46 ` astralchan
2022-09-09 13:03 ` astralchan
2022-09-09 13:07 ` astralchan
2022-09-09 13:09 ` astralchan
2022-09-09 13:16 ` astralchan
2022-09-09 21:30 ` astralchan
2022-09-09 21:37 ` astralchan
2022-12-09  2:32 ` github-actions
2022-12-24  1:52 ` [PR PATCH] [Closed]: " github-actions

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39182@inbox.vuxu.org \
    --to=astralchan@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).