Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 777897 | Differences between
and this patch

Collapse All | Expand All

(-)a/sys-devel/m4/m4-1.4.18-r1.ebuild (-16 / +16 lines)
Lines 1-7 Link Here
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2021 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI="6"
4
EAPI=7
5
5
6
DESCRIPTION="GNU macro processor"
6
DESCRIPTION="GNU macro processor"
7
HOMEPAGE="https://www.gnu.org/software/m4/m4.html"
7
HOMEPAGE="https://www.gnu.org/software/m4/m4.html"
Lines 13-34 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sp Link Here
13
IUSE="examples"
13
IUSE="examples"
14
14
15
# remember: cannot dep on autoconf since it needs us
15
# remember: cannot dep on autoconf since it needs us
16
DEPEND="app-arch/xz-utils"
16
BDEPEND="app-arch/xz-utils"
17
RDEPEND=""
18
17
19
src_prepare() {
18
PATCHES=(
20
	eapply "${FILESDIR}"/${P}-darwin17-printf-n.patch
19
	"${FILESDIR}"/${P}-darwin17-printf-n.patch
21
	eapply "${FILESDIR}"/${P}-glibc228.patch #663924
20
	"${FILESDIR}"/${P}-glibc228.patch #663924
22
	default
21
)
23
}
24
22
25
src_configure() {
23
src_configure() {
26
	# Disable automagic dependency over libsigsegv; see bug #278026
24
	local -a myeconfargs=(
27
	export ac_cv_libsigsegv=no
25
		--enable-changeword
26
27
		# Disable automagic dependency over libsigsegv; see bug #278026
28
		ac_cv_libsigsegv=no
29
	)
30
31
	[[ ${USERLAND} != GNU ]] && myeconfargs+=( --program-prefix=g )
28
32
29
	local myconf=""
33
	econf "${myeconfargs[@]}"
30
	[[ ${USERLAND} != "GNU" ]] && myconf="--program-prefix=g"
31
	econf --enable-changeword ${myconf}
32
}
34
}
33
35
34
src_test() {
36
src_test() {
Lines 42-49 src_install() { Link Here
42
	# gm4, it might find gm4 from outside the prefix on for instance Darwin
44
	# gm4, it might find gm4 from outside the prefix on for instance Darwin
43
	use prefix && dosym m4 /usr/bin/gm4
45
	use prefix && dosym m4 /usr/bin/gm4
44
	if use examples ; then
46
	if use examples ; then
45
		docinto examples
47
		dodoc -r examples
46
		dodoc -r examples/
47
		rm -f "${ED}"/usr/share/doc/${PF}/examples/Makefile*
48
		rm -f "${ED}"/usr/share/doc/${PF}/examples/Makefile*
48
	fi
49
	fi
49
}
50
}
50
- 

Return to bug 777897