Github messages for voidlinux
 help / color / mirror / Atom feed
From: sgn <sgn@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: x-unikey-1.0.4
Date: Sun, 08 Aug 2021 15:41:03 +0200	[thread overview]
Message-ID: <20210808134103.UFOKaq6fG4-eOWsp6TLCjg1GqelDfM_4OpDqG-3EWCE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32405@inbox.vuxu.org>

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

There is an updated pull request by sgn against master on the void-packages repository

https://github.com/linhvng/void-packages master
https://github.com/void-linux/void-packages/pull/32405

New package: x-unikey-1.0.4
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glibc)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From cf2ef37b619554206f0563958439514fef548cdc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Linh=20Nguy=E1=BB=85n?= <linhvng.2212@gmail.com>
Date: Sun, 8 Aug 2021 03:42:29 -0400
Subject: [PATCH] New package: x-unikey-1.0.4

Close: #32405
---
 .../patch-src_ukengine_mactab.cpp.patch       | 11 +++++++
 .../patch-src_ukengine_usrkeymap.cpp.patch    | 18 ++++++++++
 .../patches/patch-src_xim_install.sh.patch    |  8 +++++
 srcpkgs/x-unikey/patches/wait-any.patch       | 15 +++++++++
 srcpkgs/x-unikey/template                     | 33 +++++++++++++++++++
 5 files changed, 85 insertions(+)
 create mode 100644 srcpkgs/x-unikey/patches/patch-src_ukengine_mactab.cpp.patch
 create mode 100644 srcpkgs/x-unikey/patches/patch-src_ukengine_usrkeymap.cpp.patch
 create mode 100644 srcpkgs/x-unikey/patches/patch-src_xim_install.sh.patch
 create mode 100644 srcpkgs/x-unikey/patches/wait-any.patch
 create mode 100644 srcpkgs/x-unikey/template

diff --git a/srcpkgs/x-unikey/patches/patch-src_ukengine_mactab.cpp.patch b/srcpkgs/x-unikey/patches/patch-src_ukengine_mactab.cpp.patch
new file mode 100644
index 000000000000..4bb7988bb542
--- /dev/null
+++ b/srcpkgs/x-unikey/patches/patch-src_ukengine_mactab.cpp.patch
@@ -0,0 +1,11 @@
+--- a/src/ukengine/mactab.cpp 2006-04-09 11:46:02 UTC
++++ b/src/ukengine/mactab.cpp
+@@ -287,7 +287,7 @@
+   char key[MAX_MACRO_KEY_LEN];
+
+   // Parse the input item
+-  char * pos = strchr(item, ':');
++  const char * pos = strchr(item, ':');
+   if (pos == NULL)
+     return -1;
+   int keyLen = (int)(pos - item);
diff --git a/srcpkgs/x-unikey/patches/patch-src_ukengine_usrkeymap.cpp.patch b/srcpkgs/x-unikey/patches/patch-src_ukengine_usrkeymap.cpp.patch
new file mode 100644
index 000000000000..88e5d81e1b8b
--- /dev/null
+++ b/srcpkgs/x-unikey/patches/patch-src_ukengine_usrkeymap.cpp.patch
@@ -0,0 +1,18 @@
+--- a/src/ukengine/usrkeymap.cpp 2006-04-08 19:31:40.000000000 -0400
++++ b/src/ukengine/usrkeymap.cpp
+@@ -25,6 +25,7 @@
+ #include <iostream>
+ using namespace std;
+
++#include <cstring>
+ #include <ctype.h>
+ #include "usrkeymap.h"
+
+@@ -262,4 +263,4 @@
+             return i;
+     }
+     return -1;
+-}
+\ No newline at end of file
++}
+
diff --git a/srcpkgs/x-unikey/patches/patch-src_xim_install.sh.patch b/srcpkgs/x-unikey/patches/patch-src_xim_install.sh.patch
new file mode 100644
index 000000000000..27c5ed4f9339
--- /dev/null
+++ b/srcpkgs/x-unikey/patches/patch-src_xim_install.sh.patch
@@ -0,0 +1,8 @@
+--- a/src/xim/install.sh 2018-08-25 14:18:57 UTC
++++ b/src/xim/install.sh
+@@ -1,4 +1,5 @@
+ #!/bin/sh
++exit 0
+ echo 
+ echo "To use UniKey, certain environment variables must be set."
+ echo "Do you want to set these variables in /etc/profile? (y/N)
diff --git a/srcpkgs/x-unikey/patches/wait-any.patch b/srcpkgs/x-unikey/patches/wait-any.patch
new file mode 100644
index 000000000000..5aa57fa5cdaf
--- /dev/null
+++ b/srcpkgs/x-unikey/patches/wait-any.patch
@@ -0,0 +1,15 @@
+Index: x-unikey-1.0.4/src/gui/gui.c
+===================================================================
+--- x-unikey-1.0.4.orig/src/gui/gui.c
++++ x-unikey-1.0.4/src/gui/gui.c
+@@ -40,6 +40,10 @@
+ #include "uksync.h"
+ #include "guiopt.h"
+ 
++#ifndef WAIT_ANY
++#define WAIT_ANY -1
++#endif
++
+ #define PROG_NAME "Unikey XIM Simple GUI"
+ 
+ /* using global variables is a very bad way of communication. Must do something better!!! */
diff --git a/srcpkgs/x-unikey/template b/srcpkgs/x-unikey/template
new file mode 100644
index 000000000000..421d38eeac84
--- /dev/null
+++ b/srcpkgs/x-unikey/template
@@ -0,0 +1,33 @@
+# Template file for 'x-unikey'
+pkgname=x-unikey
+version=1.0.4
+revision=1
+build_style=gnu-configure
+makedepends="libX11-devel"
+short_desc="Vietnamese input method for X"
+maintainer="Linh Nguyễn <linhvng.2212@gmail.com>"
+license="GPL-2.0-or-later, MIT"
+homepage="https://www.unikey.org"
+distfiles="${SOURCEFORGE_SITE}/unikey/${pkgname}-${version}.tar.bz2"
+checksum=aa7dd444853538bcba0f24c4c19692c34d4553a1df213a260c2628a7116b2dd9
+
+CFLAGS="-Wno-narrowing"
+CXXFLAGS="-Wno-narrowing"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	broken="built and run, can't type Vietnamese"
+fi
+
+post_install() {
+	head -30 src/IMdkit/i18nIMProto.c >dec-hp-sun.license
+	vlicense dec-hp-sun.license
+
+	vdoc doc/keymap-syntax
+	vdoc doc/manual
+	vdoc doc/unikey-manual-0.9.pdf
+	vsconf doc/options
+	vsconf doc/ukmacro
+	vsconf doc/unikeyrc
+	vcopy doc/im-samples usr/share/examples/$pkgname
+	rm -r $DESTDIR/usr/share/examples/$pkgname/im-samples/CVS
+}

  parent reply	other threads:[~2021-08-08 13:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-08  7:55 [PR PATCH] " linhvng
2021-08-08  7:58 ` linhvng
2021-08-08  7:59 ` linhvng
2021-08-08  8:43 ` [PR REVIEW] " sgn
2021-08-08  8:52 ` sgn
2021-08-08  9:08 ` linhvng
2021-08-08  9:28 ` [PR PATCH] [Updated] " linhvng
2021-08-08  9:30 ` linhvng
2021-08-08 13:41 ` sgn [this message]
2021-08-08 13:44 ` sgn
2021-08-08 14:54 ` linhvng
2021-08-08 16:22 ` sgn
2021-08-08 17:45 ` linhvng
2021-08-09  2:24 ` [PR PATCH] [Closed]: " sgn

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=20210808134103.UFOKaq6fG4-eOWsp6TLCjg1GqelDfM_4OpDqG-3EWCE@z \
    --to=sgn@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).