From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B7F49158020 for ; Sat, 3 Dec 2022 11:06:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A49282BC0F9; Sat, 3 Dec 2022 11:06:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8A92E2BC0F9 for ; Sat, 3 Dec 2022 11:06:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A8022341438 for ; Sat, 3 Dec 2022 11:06:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 26781773 for ; Sat, 3 Dec 2022 11:06:25 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1670065573.653c8b24fb37c319121eb9f554e1d539a2caa052.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/poke/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/poke/poke-2.4-r1.ebuild X-VCS-Directories: dev-util/poke/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 653c8b24fb37c319121eb9f554e1d539a2caa052 X-VCS-Branch: master Date: Sat, 3 Dec 2022 11:06:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fbb743bf-a9ec-4478-80a3-c6cf2c43e5a0 X-Archives-Hash: 165767bc899a416992a4867355cca35d commit: 653c8b24fb37c319121eb9f554e1d539a2caa052 Author: Arsen Arsenović aarsen me> AuthorDate: Tue Nov 29 17:24:48 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sat Dec 3 11:06:13 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=653c8b24 dev-util/poke: add 2.4-r1 This enables the nbd feature, which was left on TODO. This also loses the ~x86 keyword, since libnbd does not have it. Signed-off-by: Arsen Arsenović aarsen.me> Closes: https://github.com/gentoo/gentoo/pull/28477 Signed-off-by: Sam James gentoo.org> dev-util/poke/poke-2.4-r1.ebuild | 123 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) diff --git a/dev-util/poke/poke-2.4-r1.ebuild b/dev-util/poke/poke-2.4-r1.ebuild new file mode 100644 index 000000000000..c903cab9b818 --- /dev/null +++ b/dev-util/poke/poke-2.4-r1.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2022 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-2.16 + sys-apps/gawk + sys-apps/help2man + sys-apps/texinfo + sys-devel/bison + sys-devel/flex + " +else + SRC_URI="mirror://gnu/poke/${P}.tar.gz" + KEYWORDS="~amd64" + 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 + + # NB --disable-{gui,mi}: + # These (AFAICT) have no consumers in Gentoo, and should not get any, + # preferably. They are slated for removal with Poke 3 (should happen + # towards the end of the year, possibly), so they should not be relied + # upon. + local myconf=( + --with-lispdir="${EPREFIX}/${SITELISP}/${PN}" + --enable-hserver + --disable-gui + --disable-mi + $(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 +}