/[gentoo-x86]/sys-devel/m4/m4-1.4.16.ebuild
Gentoo

Contents of /sys-devel/m4/m4-1.4.16.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sun Aug 19 18:46:56 2012 UTC (2 years, 2 months ago) by armin76
Branch: MAIN
Changes since 1.11: +2 -2 lines
alpha/ia64/m68k/s390/sh/sparc stable wrt #423239

(Portage version: 2.1.11.5/cvs/Linux ia64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-devel/m4/m4-1.4.16.ebuild,v 1.11 2012/07/19 19:38:17 maekke Exp $
4
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 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 IUSE="examples"
17
18 # remember: cannot dep on autoconf since it needs us
19 DEPEND="app-arch/xz-utils"
20 RDEPEND=""
21
22 src_prepare() {
23 epatch "${FILESDIR}"/${P}-fix-test-readlink.patch #376639
24 epatch "${FILESDIR}"/${P}-no-gets.patch #424978
25 }
26
27 src_configure() {
28 # Disable automagic dependency over libsigsegv; see bug #278026
29 export ac_cv_libsigsegv=no
30
31 local myconf=""
32 [[ ${USERLAND} != "GNU" ]] && myconf="--program-prefix=g"
33 econf --enable-changeword ${myconf}
34 }
35
36 src_test() {
37 [[ -d /none ]] && die "m4 tests will fail with /none/" #244396
38 emake check || die
39 }
40
41 src_install() {
42 emake install DESTDIR="${D}" || die
43 # autoconf-2.60 for instance, first checks gm4, then m4. If we don't have
44 # gm4, it might find gm4 from outside the prefix on for instance Darwin
45 use prefix && dosym /usr/bin/m4 /usr/bin/gm4
46 dodoc BACKLOG ChangeLog NEWS README* THANKS TODO
47 if use examples ; then
48 docinto examples
49 dodoc examples/*
50 rm -f "${ED}"/usr/share/doc/${PF}/examples/Makefile*
51 fi
52 }

  ViewVC Help
Powered by ViewVC 1.1.20