| 1 |
aballier |
1.4 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
vapier |
1.1 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
ago |
1.6 |
# $Header: /var/cvsroot/gentoo-x86/sys-devel/m4/m4-1.4.16.ebuild,v 1.5 2012/06/25 05:48:57 jdhore Exp $
|
| 4 |
vapier |
1.1 |
|
| 5 |
|
|
EAPI="3"
|
| 6 |
|
|
|
| 7 |
|
|
inherit eutils
|
| 8 |
|
|
|
| 9 |
|
|
DESCRIPTION="GNU macro processor"
|
| 10 |
|
|
HOMEPAGE="http://www.gnu.org/software/m4/m4.html"
|
| 11 |
|
|
SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
|
| 12 |
|
|
|
| 13 |
|
|
LICENSE="GPL-3"
|
| 14 |
|
|
SLOT="0"
|
| 15 |
ago |
1.6 |
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
| 16 |
vapier |
1.1 |
IUSE="examples"
|
| 17 |
|
|
|
| 18 |
|
|
# remember: cannot dep on autoconf since it needs us
|
| 19 |
|
|
DEPEND="app-arch/xz-utils"
|
| 20 |
|
|
RDEPEND=""
|
| 21 |
|
|
|
| 22 |
mattst88 |
1.3 |
src_prepare() {
|
| 23 |
|
|
epatch "${FILESDIR}"/${P}-fix-test-readlink.patch #376639
|
| 24 |
|
|
}
|
| 25 |
|
|
|
| 26 |
vapier |
1.1 |
src_configure() {
|
| 27 |
|
|
# Disable automagic dependency over libsigsegv; see bug #278026
|
| 28 |
|
|
export ac_cv_libsigsegv=no
|
| 29 |
|
|
|
| 30 |
|
|
local myconf=""
|
| 31 |
|
|
[[ ${USERLAND} != "GNU" ]] && myconf="--program-prefix=g"
|
| 32 |
|
|
econf --enable-changeword ${myconf}
|
| 33 |
|
|
}
|
| 34 |
|
|
|
| 35 |
|
|
src_test() {
|
| 36 |
|
|
[[ -d /none ]] && die "m4 tests will fail with /none/" #244396
|
| 37 |
|
|
emake check || die
|
| 38 |
|
|
}
|
| 39 |
|
|
|
| 40 |
|
|
src_install() {
|
| 41 |
|
|
emake install DESTDIR="${D}" || die
|
| 42 |
darkside |
1.2 |
# autoconf-2.60 for instance, first checks gm4, then m4. If we don't have
|
| 43 |
|
|
# gm4, it might find gm4 from outside the prefix on for instance Darwin
|
| 44 |
|
|
use prefix && dosym /usr/bin/m4 /usr/bin/gm4
|
| 45 |
vapier |
1.1 |
dodoc BACKLOG ChangeLog NEWS README* THANKS TODO
|
| 46 |
|
|
if use examples ; then
|
| 47 |
|
|
docinto examples
|
| 48 |
|
|
dodoc examples/*
|
| 49 |
darkside |
1.2 |
rm -f "${ED}"/usr/share/doc/${PF}/examples/Makefile*
|
| 50 |
vapier |
1.1 |
fi
|
| 51 |
|
|
}
|