commit:     589d9bedff04817f4c3f0fdbbcebcc9ded593575
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 20 12:49:49 2023 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Sep 20 12:50:18 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=589d9bed

app-editors/emacs: New use flag small-ja-dic

Bug: https://bugs.gentoo.org/914368
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 app-editors/emacs/{emacs-29.1.9999.ebuild => emacs-29.1-r2.ebuild} | 6 +++++-
 app-editors/emacs/emacs-29.1.9999.ebuild                           | 3 ++-
 app-editors/emacs/emacs-30.0.9999.ebuild                           | 3 ++-
 app-editors/emacs/metadata.xml                                     | 2 ++
 4 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/app-editors/emacs/emacs-29.1.9999.ebuild 
b/app-editors/emacs/emacs-29.1-r2.ebuild
similarity index 98%
copy from app-editors/emacs/emacs-29.1.9999.ebuild
copy to app-editors/emacs/emacs-29.1-r2.ebuild
index 4119d725a7e9..8e2614e47f31 100644
--- a/app-editors/emacs/emacs-29.1.9999.ebuild
+++ b/app-editors/emacs/emacs-29.1-r2.ebuild
@@ -31,6 +31,9 @@ else
        elif [[ ${PV//[0-9]} != "." ]]; then
                
SRC_URI="https://alpha.gnu.org/gnu/emacs/pretest/${PN}-${PV/_/-}.tar.xz";
        fi
+       # Patchset from proj/emacs-patches.git
+       SRC_URI+=" https://dev.gentoo.org/~ulm/emacs/${P}-patches-3.tar.xz";
+       PATCHES=("${WORKDIR}/patch")
        SLOT="${PV%%.*}"
        [[ ${PV} == *.*.* ]] && SLOT+="-vcs"
        KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 
~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
@@ -40,7 +43,7 @@ DESCRIPTION="The extensible, customizable, self-documenting 
real-time display ed
 HOMEPAGE="https://www.gnu.org/software/emacs/";
 
 LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
-IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gfile gif +gmp gpm 
gsettings gtk gui gzip-el harfbuzz imagemagick +inotify jit jpeg json kerberos 
lcms libxml2 livecd m17n-lib mailutils motif png selinux sound source sqlite 
ssl svg systemd +threads tiff toolkit-scroll-bars tree-sitter valgrind webp 
wide-int +X Xaw3d xft +xpm xwidgets zlib"
+IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gfile gif +gmp gpm 
gsettings gtk gui gzip-el harfbuzz imagemagick +inotify jit jpeg json kerberos 
lcms libxml2 livecd m17n-lib mailutils motif png selinux small-ja-dic sound 
source sqlite ssl svg systemd +threads tiff toolkit-scroll-bars tree-sitter 
valgrind webp wide-int +X Xaw3d xft +xpm xwidgets zlib"
 
 X_DEPEND="x11-libs/libICE
        x11-libs/libSM
@@ -365,6 +368,7 @@ src_configure() {
                $(use_with libxml2 xml2) \
                $(use_with mailutils) \
                $(use_with selinux) \
+               $(use_with small-ja-dic) \
                $(use_with sqlite sqlite3) \
                $(use_with ssl gnutls) \
                $(use_with systemd libsystemd) \

diff --git a/app-editors/emacs/emacs-29.1.9999.ebuild 
b/app-editors/emacs/emacs-29.1.9999.ebuild
index 4119d725a7e9..35dc761712d0 100644
--- a/app-editors/emacs/emacs-29.1.9999.ebuild
+++ b/app-editors/emacs/emacs-29.1.9999.ebuild
@@ -40,7 +40,7 @@ DESCRIPTION="The extensible, customizable, self-documenting 
real-time display ed
 HOMEPAGE="https://www.gnu.org/software/emacs/";
 
 LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
-IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gfile gif +gmp gpm 
gsettings gtk gui gzip-el harfbuzz imagemagick +inotify jit jpeg json kerberos 
lcms libxml2 livecd m17n-lib mailutils motif png selinux sound source sqlite 
ssl svg systemd +threads tiff toolkit-scroll-bars tree-sitter valgrind webp 
wide-int +X Xaw3d xft +xpm xwidgets zlib"
+IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gfile gif +gmp gpm 
gsettings gtk gui gzip-el harfbuzz imagemagick +inotify jit jpeg json kerberos 
lcms libxml2 livecd m17n-lib mailutils motif png selinux small-ja-dic sound 
source sqlite ssl svg systemd +threads tiff toolkit-scroll-bars tree-sitter 
valgrind webp wide-int +X Xaw3d xft +xpm xwidgets zlib"
 
 X_DEPEND="x11-libs/libICE
        x11-libs/libSM
@@ -365,6 +365,7 @@ src_configure() {
                $(use_with libxml2 xml2) \
                $(use_with mailutils) \
                $(use_with selinux) \
+               $(use_with small-ja-dic) \
                $(use_with sqlite sqlite3) \
                $(use_with ssl gnutls) \
                $(use_with systemd libsystemd) \

diff --git a/app-editors/emacs/emacs-30.0.9999.ebuild 
b/app-editors/emacs/emacs-30.0.9999.ebuild
index 82070970b827..f228ae33aad9 100644
--- a/app-editors/emacs/emacs-30.0.9999.ebuild
+++ b/app-editors/emacs/emacs-30.0.9999.ebuild
@@ -40,7 +40,7 @@ DESCRIPTION="The extensible, customizable, self-documenting 
real-time display ed
 HOMEPAGE="https://www.gnu.org/software/emacs/";
 
 LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
-IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gfile gif +gmp gpm 
gsettings gtk gui gzip-el harfbuzz imagemagick +inotify jit jpeg json kerberos 
lcms libxml2 livecd m17n-lib mailutils motif png selinux sound source sqlite 
ssl svg systemd +threads tiff toolkit-scroll-bars tree-sitter valgrind webp 
wide-int +X xattr Xaw3d xft +xpm xwidgets zlib"
+IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gfile gif +gmp gpm 
gsettings gtk gui gzip-el harfbuzz imagemagick +inotify jit jpeg json kerberos 
lcms libxml2 livecd m17n-lib mailutils motif png selinux small-ja-dic sound 
source sqlite ssl svg systemd +threads tiff toolkit-scroll-bars tree-sitter 
valgrind webp wide-int +X xattr Xaw3d xft +xpm xwidgets zlib"
 
 X_DEPEND="x11-libs/libICE
        x11-libs/libSM
@@ -367,6 +367,7 @@ src_configure() {
                $(use_with libxml2 xml2) \
                $(use_with mailutils) \
                $(use_with selinux) \
+               $(use_with small-ja-dic) \
                $(use_with sqlite sqlite3) \
                $(use_with ssl gnutls) \
                $(use_with systemd libsystemd) \

diff --git a/app-editors/emacs/metadata.xml b/app-editors/emacs/metadata.xml
index 95c39fd0d0a7..2bec5f8df5a6 100644
--- a/app-editors/emacs/metadata.xml
+++ b/app-editors/emacs/metadata.xml
@@ -44,6 +44,8 @@
     of the internal Lisp implementations</flag>
     <flag name="mailutils">Retrieve e-mail using <pkg>net-mail/mailutils</pkg>
     instead of the internal movemail substitute</flag>
+    <flag name="small-ja-dic">Generate a smaller-size Japanese dictionary
+    (saves about 5 MiB in installed image)</flag>
     <flag name="source">Install C source files and make them available for
     find-function</flag>
     <flag name="threads">Add elisp threading support</flag>

Reply via email to