Diff poke-4.2 with a poke-9999
/usr/portage/dev-util/poke/poke-9999.ebuild 2024-07-02 13:51:45.729851502 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2025 Gentoo Authors |
|
1 |
# Copyright 1999-2024 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 edo elisp-common flag-o-matic toolchain-funcs |
|
6 |
inherit 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" |
... | ... | |
25 | 25 |
REGEN_BDEPEND="" |
26 | 26 |
else |
27 | 27 |
SRC_URI="mirror://gnu/poke/${P}.tar.gz" |
28 |
KEYWORDS="amd64 ~x86" |
|
28 |
KEYWORDS="~amd64 ~x86" |
|
29 | 29 |
REGEN_BDEPEND="" |
30 | 30 |
fi |
31 | 31 | |
... | ... | |
60 | 60 | |
61 | 61 |
SITEFILE="50${PN}-gentoo.el" |
62 | 62 | |
63 |
PATCHES=( |
|
64 |
"${FILESDIR}/${P}-missing-configure-include.patch" |
|
65 |
) |
|
66 | ||
67 | 63 |
pkg_pretend() { |
68 | 64 |
if use pvm-profiling && ! tc-is-gcc; then |
69 | 65 |
die "USE=pvm-profiling requires GCC" |
... | ... | |
98 | 94 |
$(use_enable nls) |
99 | 95 |
) |
100 | 96 | |
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 | ||
108 | 97 |
econf "${myconf[@]}" |
109 | 98 |
} |
110 | 99 | |
... | ... | |
128 | 117 |
find "${ED}" -name '*.la' -delete || die |
129 | 118 |
} |
130 | 119 | |
131 |
pkg_preinst() { |
|
132 |
UPGRADING_POKE=false |
|
133 |
if has_version '<dev-util/poke-4'; then |
|
134 |
UPGRADING_POKE=true |
|
135 |
fi |
|
136 |
} |
|
137 | ||
138 | 120 |
pkg_postinst() { |
139 | 121 |
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 |
|
145 | 122 |
} |
146 | 123 | |
147 | 124 |
pkg_postrm() { |