commit:     43c1ad90cf8670eb8348773e2010e22da0604673
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  9 18:35:41 2024 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Dec  9 18:37:10 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43c1ad90

app-admin/emacs-updater: add 1.19

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

 app-admin/emacs-updater/Manifest                  |  1 +
 app-admin/emacs-updater/emacs-updater-1.19.ebuild | 37 +++++++++++++++++++++++
 2 files changed, 38 insertions(+)

diff --git a/app-admin/emacs-updater/Manifest b/app-admin/emacs-updater/Manifest
index 31a0f0155373..ce6a2577d056 100644
--- a/app-admin/emacs-updater/Manifest
+++ b/app-admin/emacs-updater/Manifest
@@ -1 +1,2 @@
 DIST emacs-updater-1.18.tar.xz 7360 BLAKE2B 
ff890584349d87a9cdcfe4576dd3bb1f8fc73b6cb086a5dd09fef3c8bf500a519f1aab810321680a5f5d4f1093455a6c54db42d900ee50fc39fcc03f0d6db69e
 SHA512 
15c3b6e5ea7d1935a7e472d75409c0cb0dc9658142c1270a4a487eba822dbcd3ac32ffe60cb501859a7ccb7441efa1c7dd5d3a6cf481f69a583c5c8d5001051a
+DIST emacs-updater-1.19.tar.xz 7384 BLAKE2B 
982c504807007bd559dd4b2198dfaf472c8ef83f3e5868b0057ea68f321899636c0be5b4ed04616ceecf0952e51314556b790d11c96c961d3c77a1fe4e9840c2
 SHA512 
7d32ea5969d044b72ec1bc6697c9ffa73b19ece0f3c3aca0e34feb7989e96cea18cc41e6e4fb53eef0d81845bc837f212718230a783b00f0319b81404adf4c07

diff --git a/app-admin/emacs-updater/emacs-updater-1.19.ebuild 
b/app-admin/emacs-updater/emacs-updater-1.19.ebuild
new file mode 100644
index 000000000000..26d8ad449623
--- /dev/null
+++ b/app-admin/emacs-updater/emacs-updater-1.19.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Rebuild Emacs packages"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs";
+SRC_URI="https://dev.gentoo.org/~ulm/emacs/${P}.tar.xz";
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+
+DEPEND="|| ( sys-apps/util-linux app-misc/getopt )"
+RDEPEND="${DEPEND}
+       >=app-editors/emacs-23.1:*
+       >=app-portage/portage-utils-0.80"
+
+src_prepare() {
+       default
+
+       if ! has_version sys-apps/util-linux; then
+               # BSD ships a dumb getopt(1), so use getopt-long instead
+               sed -i -e '/^GETOPT=/s/getopt/&-long/' emacs-updater || die
+       fi
+
+       if [[ -n ${EPREFIX} ]]; then
+               sed -i -e "1s:/:${EPREFIX}/:" \
+                       -e "s:^\([[:upper:]]*=\)/:\1${EPREFIX}/:" \
+                       emacs-updater || die
+       fi
+}
+
+src_install() {
+       dosbin emacs-updater
+       doman emacs-updater.8
+}

Reply via email to