commit:     6c53b9198753dfd894ebfb7f03bd0b2cb1b11f93
Author:     Arsen Arsenović <arsen <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 21 17:32:05 2023 +0000
Commit:     Arsen Arsenović <arsen <AT> gentoo <DOT> org>
CommitDate: Sat Jan 21 17:59:13 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c53b919

dev-util/poke: add 2.90.0

Signed-off-by: Arsen Arsenović <arsen <AT> gentoo.org>

 dev-util/poke/Manifest           |   1 +
 dev-util/poke/poke-2.90.0.ebuild | 119 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 120 insertions(+)

diff --git a/dev-util/poke/Manifest b/dev-util/poke/Manifest
index a06cf7ce9469..06df80592dde 100644
--- a/dev-util/poke/Manifest
+++ b/dev-util/poke/Manifest
@@ -1,2 +1,3 @@
 DIST poke-2.3.tar.gz 7369945 BLAKE2B 
fe9274099a9ddacf1f46b7cec1f98cc6c442b24f149efbf4320a74a270dc8bad7cf3f87df817c9968a13ece763573b36f0ec99699cb9c7742b7be9023a4fca39
 SHA512 
101ef0009676c02f72ffb4889a02c9a161f29f412685249c7166f69077b0cd1b19d940567ebb86894bacf2278a2e138354fd49456f12b05a4c1957f437ff1d86
 DIST poke-2.4.tar.gz 7372092 BLAKE2B 
64b8b22713bb581c30b624200c0a283a8de548895db2c21d83babbb18a93f3a8975dd7af752bd7ea856242f90035add249fbb62462ac632bec351598bcca0fe5
 SHA512 
6fa1097a5cbbd4171b6a390934c5648b4c382b8b8c8dd4955bba82cb57107f67e23b39f2df2081904a02f457e6c5b2d10baed710da3ed4b9b9eab3f4127e12bc
+DIST poke-2.90.0.tar.gz 7503533 BLAKE2B 
d5ceb3ae95025d34ba6efb14b437d9bb4c24c2bbdd782a551ca58ef45044c6059f073816a95a5eafe6d2e44eed5cb32b006a6bdbd74143d1b2ae0f885c131be8
 SHA512 
44e48988b20ddfebc988be9027455e9dda5a59aef09822967f275645b07155971b6de2e4554560c825df19625e01fc565469488826d6f687c92865f45ab35065

diff --git a/dev-util/poke/poke-2.90.0.ebuild b/dev-util/poke/poke-2.90.0.ebuild
new file mode 100644
index 000000000000..77f62ea257d8
--- /dev/null
+++ b/dev-util/poke/poke-2.90.0.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit elisp-common flag-o-matic
+
+DESCRIPTION="Extensible editor for structured binary data"
+HOMEPAGE="https://www.jemarch.net/poke";
+
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://git.savannah.gnu.org/git/poke.git";
+       REGEN_BDEPEND="
+               >=sys-devel/autoconf-2.62
+               >=sys-devel/automake-1.16
+               sys-apps/gawk
+               sys-apps/help2man
+               sys-apps/texinfo
+               sys-devel/bison
+               sys-devel/flex
+       "
+elif [[ $(ver_cut 2) -ge 90 || $(ver_cut 3) ]]; then
+       SRC_URI="https://alpha.gnu.org/gnu/poke/${P}.tar.gz";
+       REGEN_BDEPEND=""
+else
+       SRC_URI="mirror://gnu/poke/${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+       REGEN_BDEPEND=""
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE="emacs pvm-profiling nbd nls test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-libs/boehm-gc:=
+       dev-libs/libatomic_ops
+       sys-devel/gettext
+       sys-libs/readline:=
+       emacs? ( >=app-editors/emacs-23.1:* )
+       nbd? ( sys-libs/libnbd )
+"
+DEPEND="
+       ${RDEPEND}
+       test? ( nbd? ( sys-libs/libnbd[uri-support] ) )
+"
+BDEPEND="
+       ${REGEN_BDEPEND}
+       virtual/pkgconfig
+       emacs? ( >=app-editors/emacs-23.1:* )
+       test? (
+               dev-util/dejagnu
+               nbd? ( sys-block/nbdkit )
+       )
+"
+
+SITEFILE="50${PN}-gentoo.el"
+
+pkg_setup() {
+       use emacs && elisp-check-emacs-version
+}
+
+src_prepare() {
+       default
+
+       if [[ ${PV} == 9999 ]]; then
+               ./bootstrap || die
+       fi
+}
+
+src_configure() {
+       # See bug 858461.
+       # Upstream support might happen one day.  For context, only one file 
needs
+       # LTO to be disabled (since it's an autogenerated bytecode interpreter),
+       # others do not.  The build system will handle this at some point in the
+       # future.  Until then, just filter out LTO.
+       filter-lto
+
+       local myconf=(
+               --with-lispdir="${EPREFIX}/${SITELISP}/${PN}"
+               --enable-hserver
+               $(use_enable nbd libnbd)
+               $(use_enable pvm-profiling)
+               $(use_enable nls)
+       )
+
+       econf "${myconf[@]}"
+}
+
+src_compile() {
+       default
+
+       if use emacs; then
+               cd etc || die
+               elisp-compile *.el
+       fi
+}
+
+src_install() {
+       default
+
+       if use emacs; then
+               elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+               cd etc || die
+               elisp-install "${PN}" *.el *.elc
+       fi
+       find "${ED}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+       use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+       use emacs && elisp-site-regen
+}

Reply via email to