Github messages for voidlinux
 help / color / mirror / Atom feed
From: icp1994 <icp1994@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] enchant2: update to 2.8.2.
Date: Fri, 10 Jan 2025 20:57:21 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-53920@inbox.vuxu.org> (raw)

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

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

https://github.com/icp1994/void-packages enchant2
https://github.com/void-linux/void-packages/pull/53920

enchant2: update to 2.8.2.
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### Local build testing
- I built this PR locally for my native architecture: **x86_64**

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

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

From 3565b517e82bb3d82a1df3dc4d8c5760740dd80e Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Tue, 5 Nov 2024 12:42:00 +0530
Subject: [PATCH] enchant2: update to 2.8.2.

split respective bindings into separate subpackages
---
 srcpkgs/enchant2-aspell   |  1 +
 srcpkgs/enchant2-hunspell |  1 +
 srcpkgs/enchant2-nuspell  |  1 +
 srcpkgs/enchant2-voikko   |  1 +
 srcpkgs/enchant2/template | 63 +++++++++++++++++++++++++++++----------
 srcpkgs/libenchant2       |  1 +
 6 files changed, 53 insertions(+), 15 deletions(-)
 create mode 120000 srcpkgs/enchant2-aspell
 create mode 120000 srcpkgs/enchant2-hunspell
 create mode 120000 srcpkgs/enchant2-nuspell
 create mode 120000 srcpkgs/enchant2-voikko
 create mode 120000 srcpkgs/libenchant2

diff --git a/srcpkgs/enchant2-aspell b/srcpkgs/enchant2-aspell
new file mode 120000
index 00000000000000..de6f1dfe3aebb7
--- /dev/null
+++ b/srcpkgs/enchant2-aspell
@@ -0,0 +1 @@
+enchant2
\ No newline at end of file
diff --git a/srcpkgs/enchant2-hunspell b/srcpkgs/enchant2-hunspell
new file mode 120000
index 00000000000000..de6f1dfe3aebb7
--- /dev/null
+++ b/srcpkgs/enchant2-hunspell
@@ -0,0 +1 @@
+enchant2
\ No newline at end of file
diff --git a/srcpkgs/enchant2-nuspell b/srcpkgs/enchant2-nuspell
new file mode 120000
index 00000000000000..de6f1dfe3aebb7
--- /dev/null
+++ b/srcpkgs/enchant2-nuspell
@@ -0,0 +1 @@
+enchant2
\ No newline at end of file
diff --git a/srcpkgs/enchant2-voikko b/srcpkgs/enchant2-voikko
new file mode 120000
index 00000000000000..de6f1dfe3aebb7
--- /dev/null
+++ b/srcpkgs/enchant2-voikko
@@ -0,0 +1 @@
+enchant2
\ No newline at end of file
diff --git a/srcpkgs/enchant2/template b/srcpkgs/enchant2/template
index 8055c1c7bb3954..5e584ac87c2b04 100644
--- a/srcpkgs/enchant2/template
+++ b/srcpkgs/enchant2/template
@@ -1,31 +1,64 @@
 # Template file for 'enchant2'
 pkgname=enchant2
-version=2.6.4
+version=2.8.2
 revision=1
 build_style=gnu-configure
-# tests need --enable-relocatable
-configure_args="--enable-relocatable"
+configure_args="--disable-static"
 hostmakedepends="pkg-config groff"
-makedepends="libglib-devel hunspell-devel aspell-devel libvoikko-devel
- libnuspell-devel icu-devel"
-checkdepends="unittest-cpp"
+makedepends="libglib-devel hunspell-devel aspell-devel libnuspell-devel libvoikko-devel"
 short_desc="Generic spell checking library"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="LGPL-2.1-or-later"
-homepage="https://abiword.github.io/enchant/"
-changelog="https://raw.githubusercontent.com/AbiWord/enchant/master/NEWS"
-distfiles="https://github.com/AbiWord/enchant/releases/download/v${version}/enchant-${version}.tar.gz"
-checksum=833b4d5600dbe9ac867e543aac6a7a40ad145351495ca41223d4499d3ddbbd2c
+homepage="https://rrthomas.github.io/enchant/"
+changelog="https://raw.githubusercontent.com/rrthomas/enchant/refs/heads/master/NEWS"
+distfiles="https://github.com/rrthomas/enchant/releases/download/v${version}/enchant-${version}.tar.gz"
+checksum=8f19535adb5577b83b00e02f330fe9b9eb40dd21f19e2899636fc4d3a7696375
 make_check=no # tests broken
 
-enchant2-devel_package() {
-	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
+libenchant2_package() {
+	depends="libglib-devel"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
-		vmove "usr/lib/*.a"
-		vmove "usr/lib/enchant-2/*.a"
-		vmove "usr/lib/*.so"
+		vmove "usr/lib/libenchant-2.*"
 		vmove usr/lib/pkgconfig
 	}
 }
+
+enchant2-hunspell_package() {
+	depends="libenchant2>=${version}_${revision} ${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - hunspell provider"
+	pkg_install() {
+		vmove "usr/lib/enchant-2/enchant_hunspell.so"
+	}
+}
+
+enchant2-aspell_package() {
+	depends="libenchant2>=${version}_${revision} ${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - aspell provider"
+	pkg_install() {
+		vmove "usr/lib/enchant-2/enchant_aspell.so"
+	}
+}
+
+enchant2-nuspell_package() {
+	depends="libenchant2>=${version}_${revision} ${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - nuspell provider"
+	pkg_install() {
+		vmove "usr/lib/enchant-2/enchant_nuspell.so"
+	}
+}
+
+enchant2-voikko_package() {
+	depends="libenchant2>=${version}_${revision} ${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - voikko provider"
+	pkg_install() {
+		vmove "usr/lib/enchant-2/enchant_voikko.so"
+	}
+}
+
+enchant2-devel_package() {
+	depends="libenchant2>=${version}_${revision} ${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - transitional meta package"
+	build_style=meta
+}
diff --git a/srcpkgs/libenchant2 b/srcpkgs/libenchant2
new file mode 120000
index 00000000000000..de6f1dfe3aebb7
--- /dev/null
+++ b/srcpkgs/libenchant2
@@ -0,0 +1 @@
+enchant2
\ No newline at end of file

             reply	other threads:[~2025-01-10 19:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-10 19:57 icp1994 [this message]
2025-01-10 20:15 ` icp1994
2025-01-12 18:29 ` 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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-53920@inbox.vuxu.org \
    --to=icp1994@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).