summaryrefslogtreecommitdiff
path: root/app-dicts/gwaei
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-17 00:09:46 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-17 00:09:46 +0100
commit74e526c590f52d24a213e25f77858ae0b34ec2c8 (patch)
tree0f6f22133ae9cc04958f6df6d39a02d90ffb1aaf /app-dicts/gwaei
parent0a3feeaba4dbc58966dccdbbfcd7fb14deef0831 (diff)
gentoo auto-resync : 17:06:2024 - 00:09:46
Diffstat (limited to 'app-dicts/gwaei')
-rw-r--r--app-dicts/gwaei/Manifest2
-rw-r--r--app-dicts/gwaei/files/gwaei-3.6.2-yelp.patch53
-rw-r--r--app-dicts/gwaei/gwaei-3.6.2-r1.ebuild86
3 files changed, 141 insertions, 0 deletions
diff --git a/app-dicts/gwaei/Manifest b/app-dicts/gwaei/Manifest
index 50062d02b4ee..93854b79f7db 100644
--- a/app-dicts/gwaei/Manifest
+++ b/app-dicts/gwaei/Manifest
@@ -1,3 +1,5 @@
+AUX gwaei-3.6.2-yelp.patch 1571 BLAKE2B 07a97fe4abb7a26225ff811cd17404790fdd1523be2a61a181bed1a4ad0bdf0be050136ca024981a7575446418878edceebe44b3e01411e824a4083b7254dedc SHA512 8db288c06c2067516f7c33480c9b72ff416bbcb8493d9d1fe78c4c4b2147769812b1fc322bb330977cc4412658f97a6a2d9812ebb00acb25f41ebf061ed3d735
DIST gwaei-3.6.2.tar.xz 547592 BLAKE2B 0a0f90639b81158ef6bfc69f0f74ad70af65ae9462c93f6e507d6a1087c424da9689f2308300c5d4b8090143d8d9e2f7fe183719e37fa463ffe2b937714b7463 SHA512 96876f7e15ff5e166dcd116e2286294b7b375e55723684e4e3dec31aba46d1c89ccd70007fc01cab97a5fd5e671ec073c3f69525ff7e68126851e587d4f20c3b
+EBUILD gwaei-3.6.2-r1.ebuild 1487 BLAKE2B a9f179663970aee6888e3970553e58d12f98793d408ef8e4891a05b9f9e3cfd3477fbdd5f8e236a02997d382c97879a3b33427f9049e642148e480b35bf2f4ab SHA512 c56269ed2628c33ce387e0cda29328baa29f2b5467abcd8f160dbb2efafadca123164186a2f25ae4b644ea1a6dbac4b798992c3d40c2b5199ad4f2f01e039ea8
EBUILD gwaei-3.6.2.ebuild 1295 BLAKE2B 6013b6f81449012cff8903fe303ae7c0b1ee8313ba9ee857627ce3708bb6311eb29dbe41f597a7d4092b2e74a160c0021ce1947d45470074fce9ac1a2642a1a3 SHA512 70918530044a1517f201c7227b047594fde8c23f877ff63121dc7d53db1eb569a39c4e6204dfae2bbf63c1c17d774add744d8a067f2ed7dd0be968902c39d56c
MISC metadata.xml 763 BLAKE2B f54abd6930bf966738e2b45ef6812ae3d1deaa30393e6383c1c9da8e8358c9ca387cb064731479640420905b2891e87ebcdfe91ba0f563f93bdd03f8f4bb361e SHA512 7f1a0c3a295a0505463fce3a9b352152dc00f358ecdb90a48fb02b0307adcaa1100f0c34840f39d3b2caed2d93bcd1ed4a4df37b8c6fc38f4e5c4ee37f61cecd
diff --git a/app-dicts/gwaei/files/gwaei-3.6.2-yelp.patch b/app-dicts/gwaei/files/gwaei-3.6.2-yelp.patch
new file mode 100644
index 000000000000..a5515561fd59
--- /dev/null
+++ b/app-dicts/gwaei/files/gwaei-3.6.2-yelp.patch
@@ -0,0 +1,53 @@
+---
+ autogen.sh | 1 -
+ configure.ac | 4 +---
+ src/gwaei/help/Makefile.am | 5 +++--
+ 3 files changed, 4 insertions(+), 6 deletions(-)
+
+--- gwaei.git.orig/configure.ac
++++ gwaei.git/configure.ac
+@@ -73,8 +73,6 @@ AM_CONDITIONAL([WITH_MECAB], [test x$mec
+
+ AC_CHECK_LIB(m, sqrt)
+
+-GNOME_DOC_INIT(,,[:])
+-
+ PKG_CHECK_MODULES(LIBWAEI, glib-2.0 >= $GLIB_REQUIRED_VERSION
+ gobject-2.0 >= $GLIB_REQUIRED_VERSION
+ gio-2.0 >= $GIO_REQUIRED_VERSION
+@@ -103,7 +101,7 @@ if test x$gnome = xtrue; then
+ libcurl >= $LIBCURL_REQUIRED_VERSION )
+ AC_SUBST(GWAEI_CFLAGS)
+ AC_SUBST(GWAEI_LIBS)
+- GNOME_DOC_INIT
++ YELP_HELP_INIT
+ fi
+
+ if test x$hunspell = xtrue; then
+--- gwaei.git.orig/src/gwaei/help/Makefile.am
++++ gwaei.git/src/gwaei/help/Makefile.am
+@@ -2,10 +2,12 @@ PACKAGE = @PACKAGE@
+ VERSION = @VERSION@
+ datadir = @datadir@
+
+-include $(top_srcdir)/gnome-doc-utils.make
++@YELP_HELP_RULES@
+ dist-hook: doc-dist-hook
+-DOC_MODULE = gwaei
++HELP_MODULE = gwaei
++HELP_ID = gwaei
+
++HELP_FILES=glossary.xml gwaei.xml
+ cglossarydir = $(datadir)/gnome/help/$(PACKAGE)/C
+ cglossary_DATA = C/glossary.xml
+ EXTRA_DIST = C/glossary.xml
+--- gwaei.git.orig/autogen.sh
++++ gwaei.git/autogen.sh
+@@ -6,7 +6,6 @@ touch ChangeLog
+ libtoolize --force
+ glib-gettextize --copy --force
+ intltoolize --copy --force --automake
+-gnome-doc-prepare --copy --force
+ aclocal -I m4 --force
+ autoheader -f
+ automake --copy --force --add-missing
diff --git a/app-dicts/gwaei/gwaei-3.6.2-r1.ebuild b/app-dicts/gwaei/gwaei-3.6.2-r1.ebuild
new file mode 100644
index 000000000000..0939ac61c424
--- /dev/null
+++ b/app-dicts/gwaei/gwaei-3.6.2-r1.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools gnome2-utils xdg
+
+DESCRIPTION="Japanese-English Dictionary for GNOME"
+HOMEPAGE="https://github.com/zakkudo/gwaei"
+SRC_URI="https://downloads.sourceforge.net/gwaei/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv ~x86"
+IUSE="gtk hunspell nls mecab test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=net-misc/curl-7.20.0
+ >=dev-libs/glib-2.31
+ gtk? (
+ x11-libs/gtk+:3
+ app-text/yelp-tools
+ )
+ hunspell? ( app-text/hunspell )
+ nls? ( virtual/libintl )
+ mecab? ( app-text/mecab )"
+DEPEND="${RDEPEND}
+ gtk? (
+ x11-themes/gnome-icon-theme-symbolic
+ app-text/yelp-tools
+ )"
+BDEPEND="
+ app-text/rarian
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.17 )
+ test? (
+ app-text/docbook-xml-dtd:4.1.2
+ app-text/scrollkeeper-dtd
+ )"
+
+PATCHES=(
+ # Migrate away from gnome-doc-utils (from Debian)
+ "${FILESDIR}/${P}-yelp.patch"
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-static \
+ $(use_with gtk gnome) \
+ $(use_enable nls) \
+ $(use_with hunspell) \
+ $(use_with mecab)
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+}
+
+pkg_preinst() {
+ if use gtk; then
+ gnome2_schemas_savelist
+ xdg_pkg_preinst
+ fi
+}
+
+pkg_postinst() {
+ if use gtk; then
+ gnome2_schemas_update
+ xdg_pkg_postinst
+ fi
+}
+
+pkg_postrm() {
+ if use gtk; then
+ gnome2_schemas_update
+ xdg_pkg_postrm
+ fi
+}