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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Tue Feb 22 02:48:32 2011 UTC (3 years, 6 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +2 -1 lines
Add patch from upstream for sandbox/git misbehavior #355045 by Kyle Milz.

(Portage version: 2.2.0_alpha24/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.15.ebuild,v 1.10 2011/01/09 17:37:52 armin76 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 ~sparc-fbsd ~x86-fbsd"
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}-uclibc-sched_param-def.patch #336484
24 epatch "${FILESDIR}"/${P}-git-version-gen.patch
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 dodoc BACKLOG ChangeLog NEWS README* THANKS TODO
44 if use examples ; then
45 docinto examples
46 dodoc examples/*
47 rm -f "${D}"/usr/share/doc/${PF}/examples/Makefile*
48 fi
49 }

  ViewVC Help
Powered by ViewVC 1.1.20