Github messages for voidlinux
 help / color / mirror / Atom feed
From: leahneukirchen <leahneukirchen@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Remove enchant.
Date: Sun, 07 Nov 2021 01:57:13 +0100	[thread overview]
Message-ID: <20211107005713.dRop5-LyU9TW7MMvV2W5-yf3MCYTgJh-hOdI8wtiHCA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33931@inbox.vuxu.org>

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

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

https://github.com/leahneukirchen/void-packages rip-enchant
https://github.com/void-linux/void-packages/pull/33931

Remove enchant.
After fcitx uses enchant2-devel, enchant is unused and can be removed. Closes #27710.

cc @sgn, why doesnt fcitx have shlib depends on enchant?

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

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

From 05862e208addaeee6b3f6d71c77efe9bedc80c07 Mon Sep 17 00:00:00 2001
From: Leah Neukirchen <leah@vuxu.org>
Date: Sat, 6 Nov 2021 22:53:23 +0100
Subject: [PATCH 1/2] fcitx: use enchant2.

---
 srcpkgs/fcitx/template | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/fcitx/template b/srcpkgs/fcitx/template
index 1bcb6bee3523..590f93109621 100644
--- a/srcpkgs/fcitx/template
+++ b/srcpkgs/fcitx/template
@@ -1,14 +1,16 @@
 # Template file for 'fcitx'
 pkgname=fcitx
 version=4.2.9.8
-revision=4
+revision=5
 build_style=cmake
 build_helper=gir
 configure_args="-DSYSCONFDIR=/etc -DFORCE_OPENCC=OFF -DFORCE_PRESAGE=OFF
  -DENABLE_GTK2_IM_MODULE=ON -DENABLE_GTK3_IM_MODULE=ON -DENABLE_QT=OFF
- -DFORCE_ENCHANT=ON -DENABLE_TEST=ON -DENABLE_GIR=$(vopt_if gir ON OFF)"
+ -DFORCE_ENCHANT=ON -DENABLE_TEST=ON -DENABLE_GIR=$(vopt_if gir ON OFF)
+ -DENCHANT_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include/enchant-2/
+ -DENCHANT_LIBRARIES=${XBPS_CROSS_BASE}/usr/lib/libenchant-2.so"
 hostmakedepends="pkg-config doxygen extra-cmake-modules glib-devel"
-makedepends="iso-codes gettext-devel enchant-devel libxml2-devel
+makedepends="iso-codes gettext-devel enchant2-devel libxml2-devel
  json-c-devel opencc-devel
  libxkbfile-devel icu-devel dbus-devel gtk+-devel gtk+3-devel"
 depends="fcitx5-icons fcitx5-chinese-addons-icons"
@@ -37,6 +39,8 @@ pre_configure() {
 	vsed -i -e 's;INCLUDE(${FCITX4_PREFIX}/share/cmake/fcitx;INCLUDE(${CMAKE_CURRENT_LIST_DIR};' \
 		cmake/FcitxConfig.cmake
 
+	vsed -i -e 's;enchant/enchant.h;enchant-2/enchant.h;' cmake/FindEnchant.cmake
+
 	if [ "$CROSS_BUILD" ]; then
 		# use host binaries
 		vsed -i -e 's;${PROJECT_BINARY_DIR}/tools/dev;/usr/lib/fcitx/libexec;' \

From aa5598b125015a771a1fdb46d62e102a41cb3026 Mon Sep 17 00:00:00 2001
From: Leah Neukirchen <leah@vuxu.org>
Date: Sat, 6 Nov 2021 22:54:41 +0100
Subject: [PATCH 2/2] enchant: removed, obsoleted by enchant2.

Closes #27710.
---
 common/shlibs                                 |  1 -
 srcpkgs/enchant-devel                         |  1 -
 .../enchant/patches/hunspell14_buildfix.diff  | 14 ---------
 srcpkgs/enchant/template                      | 31 -------------------
 4 files changed, 47 deletions(-)
 delete mode 120000 srcpkgs/enchant-devel
 delete mode 100644 srcpkgs/enchant/patches/hunspell14_buildfix.diff
 delete mode 100644 srcpkgs/enchant/template

diff --git a/common/shlibs b/common/shlibs
index 1011051af4d4..9664f48a6514 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -523,7 +523,6 @@ libicuuc.so.69 icu-libs-69.1_1
 libicutest.so.69 icu-libs-69.1_1
 libaspell.so.15 libaspell-0.60.8_2
 libpspell.so.15 libaspell-0.60.8_2
-libenchant.so.1 enchant-1.4.2_1
 libenchant-2.so.2 enchant2-2.2.3_1
 libgconf-2.so.4 GConf-2.32.0_1
 libpackagekit-glib2.so.18 PackageKit-1.1.12_1
diff --git a/srcpkgs/enchant-devel b/srcpkgs/enchant-devel
deleted file mode 120000
index 58fecba7d86d..000000000000
--- a/srcpkgs/enchant-devel
+++ /dev/null
@@ -1 +0,0 @@
-enchant
\ No newline at end of file
diff --git a/srcpkgs/enchant/patches/hunspell14_buildfix.diff b/srcpkgs/enchant/patches/hunspell14_buildfix.diff
deleted file mode 100644
index 0ecdb24b30cf..000000000000
--- a/srcpkgs/enchant/patches/hunspell14_buildfix.diff
+++ /dev/null
@@ -1,14 +0,0 @@
-diff -ru enchant-1.6.0-orig/src/myspell/myspell_checker.cpp enchant-1.6.0/src/myspell/myspell_checker.cpp
---- enchant-1.6.0-orig/src/myspell/myspell_checker.cpp	2016-04-18 12:25:00.094614256 +0100
-+++ enchant-1.6.0/src/myspell/myspell_checker.cpp	2016-04-18 12:26:09.108569576 +0100
-@@ -148,6 +148,10 @@
- 		g_iconv_close(m_translate_out);
- }
- 
-+#ifndef MAXWORDLEN
-+#   define MAXWORDLEN 100
-+#endif
-+
- bool
- MySpellChecker::checkWord(const char *utf8Word, size_t len)
- {
diff --git a/srcpkgs/enchant/template b/srcpkgs/enchant/template
deleted file mode 100644
index 69458ae39180..000000000000
--- a/srcpkgs/enchant/template
+++ /dev/null
@@ -1,31 +0,0 @@
-# Template file for 'enchant'
-pkgname=enchant
-version=1.6.0
-revision=8
-build_style=gnu-configure
-configure_args="--disable-zemberek --disable-ispell --disable-aspell
- --with-myspell-dir=/usr/share/hunspell"
-hostmakedepends="automake libtool pkg-config"
-makedepends="glib-devel hunspell-devel"
-short_desc="Generic spell checking library"
-maintainer="Orphaned <orphan@voidlinux.org>"
-license="LGPL-2.1-or-later"
-homepage="http://www.abisource.com/projects/enchant/"
-distfiles="http://www.abisource.com/downloads/enchant/${version}/enchant-${version}.tar.gz"
-checksum=2fac9e7be7e9424b2c5570d8affe568db39f7572c10ed48d4e13cddf03f7097f
-
-pre_configure() {
-	autoreconf -fi
-}
-
-enchant-devel_package() {
-	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
-	short_desc+=" - development files"
-	pkg_install() {
-		vmove usr/include
-		vmove "usr/lib/*.a"
-		vmove "usr/lib/enchant/*.a"
-		vmove "usr/lib/*.so"
-		vmove usr/lib/pkgconfig
-	}
-}

  parent reply	other threads:[~2021-11-07  0:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-06 21:56 [PR PATCH] " leahneukirchen
2021-11-06 23:19 ` Chocimier
2021-11-07  0:57 ` leahneukirchen [this message]
2021-11-07  1:07 ` [PR PATCH] [Merged]: " leahneukirchen

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=20211107005713.dRop5-LyU9TW7MMvV2W5-yf3MCYTgJh-hOdI8wtiHCA@z \
    --to=leahneukirchen@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).