summaryrefslogtreecommitdiff
path: root/dev-util/poke
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-26 01:54:54 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-26 01:54:54 +0000
commit79de60c14eee653ca1a344ce0f850edc088f1bc8 (patch)
tree0f2b6a5f9ab9f9a7a92396e477eaa42b3bd8eacd /dev-util/poke
parent95985714240f6993f90c5096f2dac642d5d42928 (diff)
gentoo auto-resync : 26:01:2023 - 01:54:54
Diffstat (limited to 'dev-util/poke')
-rw-r--r--dev-util/poke/Manifest2
-rw-r--r--dev-util/poke/poke-3.0.ebuild126
2 files changed, 128 insertions, 0 deletions
diff --git a/dev-util/poke/Manifest b/dev-util/poke/Manifest
index ccf9053c2faa..ee6c0883259d 100644
--- a/dev-util/poke/Manifest
+++ b/dev-util/poke/Manifest
@@ -1,7 +1,9 @@
AUX 50poke-gentoo.el 334 BLAKE2B f5519ada4b710ea3c7aacdf716674b4a5d8b1af3d639b5de72f58cf974335ca49a27641c305c31fc34e07d88fedb959674d402355324b89fe955df73e418f302 SHA512 293ef7fbe66bbba71580173cebed9ba0bbe76f862e4ddc6ec78302724e7fc9eb159e40404bee46c32a30f472efeb7ed60d464b4324d0c8ca8cf147220a4d76ca
DIST poke-2.4.tar.gz 7372092 BLAKE2B 64b8b22713bb581c30b624200c0a283a8de548895db2c21d83babbb18a93f3a8975dd7af752bd7ea856242f90035add249fbb62462ac632bec351598bcca0fe5 SHA512 6fa1097a5cbbd4171b6a390934c5648b4c382b8b8c8dd4955bba82cb57107f67e23b39f2df2081904a02f457e6c5b2d10baed710da3ed4b9b9eab3f4127e12bc
DIST poke-2.90.1.tar.gz 7512925 BLAKE2B 38c9283f1c0b183b1b74c2ebd347edf6e9a9191d19070f7da32e6b0f520ec8197be3a813bc98160b47363cd11069bdaf84bb528498fe51cf2dcadf0bfa06a25e SHA512 f5823bed61ab64c2cdde83c918716fe64ad5552499023b2f5202130d6b2bab405c9d1cb1e12c7f190749689d86bf36f4edfe140ce748ac4c5f03d219197558d3
+DIST poke-3.0.tar.gz 7510801 BLAKE2B 4e80bd0603b0f690f7b6dc9b3913bb165f61160cd6e677751e6f8ea444bc395141204cc32c3ed97bad4b4044d505a800a64a4c973200e7338b50f05d9ea90c25 SHA512 5b786cdfae732a1f7196b0c4bf271c97f204f8fe9de9b34d92704f35150c8abfc2c080940d67efac63e3e82d0d4afe2fde4b75066faf9f4d1e9df6b6f62edb96
EBUILD poke-2.4-r1.ebuild 2587 BLAKE2B 51d6c8738370b2a3b79c778d3be9c3c92bb7c3926c5d94a89fb9beeb77c381785b1ac8cf5b486bb4aa61f9f85a58a82f9d643d54e0023655a04a9554abc99ed0 SHA512 d99702f55c432319ae953dcb759aa103ac67153de07a216bf77fa7ccd595179230edb724f10e649a88e3f27d6e4da77a1214c6cba65d0ed5fa9c163be5505fc6
EBUILD poke-2.90.1.ebuild 2285 BLAKE2B 01ed0496432709cece66fb8667146e65057c120120c6c4b43f674cd5aa3d765d088c2c0142cf9196a6ef901984a3637480ba2f61e4f0f36291684393d84d73e1 SHA512 0cc9cea5afea3dce7106a3a9c070befa92f9d94f94475909a3784d1c7f1bd275d8940828431c0eea6e15271e199253c610ed88ee837cbc40de47ef4cbdc45dee
+EBUILD poke-3.0.ebuild 2440 BLAKE2B a80af75903ec4038786cf9f61b61614799c9802946dc1c9e0f415e9d0e0d550fecfc1f698e3c44af86da4faa84fe16171f5cfea82a622c1ab3634fc86747dba3 SHA512 b49bb765f70e5d722ffc848168a59a7fcfe8f5097bc0e3ed85e11f444247d90525d3fe626a6e76a247d6265fcd1f7609234de4181328d94aadb14e2836990acb
EBUILD poke-9999.ebuild 2440 BLAKE2B a80af75903ec4038786cf9f61b61614799c9802946dc1c9e0f415e9d0e0d550fecfc1f698e3c44af86da4faa84fe16171f5cfea82a622c1ab3634fc86747dba3 SHA512 b49bb765f70e5d722ffc848168a59a7fcfe8f5097bc0e3ed85e11f444247d90525d3fe626a6e76a247d6265fcd1f7609234de4181328d94aadb14e2836990acb
MISC metadata.xml 514 BLAKE2B 5df1664ca8693598aba1a31675859940052e5e3aa6f5b045036e0da3a47a26ed601f6241977c8a1e611a096798f6d219e6818ce2963f88a4d5e4f6595495e877 SHA512 3e60b71e68d20a2b8c6ee0a5133b41a4beccf942a9c52739dbf7f11c998851411464d2882b0d2b2aab96ea00b9994d3dc73b2d68afcf874af1e561efaa97caf2
diff --git a/dev-util/poke/poke-3.0.ebuild b/dev-util/poke/poke-3.0.ebuild
new file mode 100644
index 000000000000..80e149428e9b
--- /dev/null
+++ b/dev-util/poke/poke-3.0.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit elisp-common flag-o-matic toolchain-funcs
+
+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) -ge 90 ]]; 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
+ pvm-profiling? ( sys-devel/gcc )
+ emacs? ( >=app-editors/emacs-23.1:* )
+ test? (
+ dev-util/dejagnu
+ nbd? ( sys-block/nbdkit )
+ )
+"
+
+SITEFILE="50${PN}-gentoo.el"
+
+pkg_pretend() {
+ if use pvm-profiling && ! tc-is-gcc; then
+ die "USE=pvm-profiling requires GCC"
+ fi
+}
+
+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
+}