Diff poke-3.3 with a poke-4.2

/usr/portage/dev-util/poke/poke-4.2.ebuild 2025-02-03 17:39:32.918667242 +0300
1
# Copyright 1999-2024 Gentoo Authors
1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
inherit elisp-common flag-o-matic toolchain-funcs
6
inherit edo elisp-common flag-o-matic toolchain-funcs
7 7

  
8 8
DESCRIPTION="Extensible editor for structured binary data"
9 9
HOMEPAGE="https://www.jemarch.net/poke"
......
58 58
	)
59 59
"
60 60

  
61
QA_CONFIG_IMPL_DECL_SKIP=(
62
	# FP, bug #123456
63
	MIN # gl_MINMAX
64
	static_assert # gl_ASSERT_H
65
	alignof # gl_STDALIGN_H
66
)
67

  
68 61
SITEFILE="50${PN}-gentoo.el"
69 62

  
63
PATCHES=(
64
	"${FILESDIR}/${P}-missing-configure-include.patch"
65
)
66

  
70 67
pkg_pretend() {
71 68
	if use pvm-profiling && ! tc-is-gcc; then
72 69
		die "USE=pvm-profiling requires GCC"
......
101 98
		$(use_enable nls)
102 99
	)
103 100

  
101
	# The patch we apply bumps mtimes on some files.  Fix them up after.
102
	edo touch aclocal.m4
103
	edo touch configure
104
	edo touch poke/config.h.in
105
	edo touch Makefile.in
106
	edo touch Makefile
107

  
104 108
	econf "${myconf[@]}"
105 109
}
106 110

  
......
124 128
	find "${ED}" -name '*.la' -delete || die
125 129
}
126 130

  
131
pkg_preinst() {
132
	UPGRADING_POKE=false
133
	if has_version '<dev-util/poke-4'; then
134
		UPGRADING_POKE=true
135
	fi
136
}
137

  
127 138
pkg_postinst() {
128 139
	use emacs && elisp-site-regen
140

  
141
	if "${UPGRADING_POKE}"; then
142
		ewarn "GNU poke 4.0 moves the ELF pickle to a separate package."
143
		ewarn "To install elf.pk, please install dev-util/poke-elf."
144
	fi
129 145
}
130 146

  
131 147
pkg_postrm() {
Thank you!