| 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/make/make-3.82-r3.ebuild,v 1.7 2012/08/11 15:05:17 maekke Exp $
|
| 4 |
|
| 5 |
EAPI="2"
|
| 6 |
|
| 7 |
inherit flag-o-matic eutils
|
| 8 |
|
| 9 |
DESCRIPTION="Standard tool to compile source trees"
|
| 10 |
HOMEPAGE="http://www.gnu.org/software/make/make.html"
|
| 11 |
SRC_URI="mirror://gnu//make/${P}.tar.bz2"
|
| 12 |
|
| 13 |
LICENSE="GPL-3"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
| 16 |
IUSE="nls static"
|
| 17 |
|
| 18 |
DEPEND="nls? ( sys-devel/gettext )"
|
| 19 |
RDEPEND="nls? ( virtual/libintl )"
|
| 20 |
|
| 21 |
src_prepare() {
|
| 22 |
epatch "${FILESDIR}"/${P}-archives-many-objs.patch #334889
|
| 23 |
epatch "${FILESDIR}"/${P}-MAKEFLAGS-reexec.patch #31975
|
| 24 |
epatch "${FILESDIR}"/${P}-memory-corruption.patch #355907
|
| 25 |
epatch "${FILESDIR}"/${P}-glob-speedup.patch #382845
|
| 26 |
}
|
| 27 |
|
| 28 |
src_configure() {
|
| 29 |
use static && append-ldflags -static
|
| 30 |
econf \
|
| 31 |
--program-prefix=g \
|
| 32 |
$(use_enable nls)
|
| 33 |
}
|
| 34 |
|
| 35 |
src_install() {
|
| 36 |
emake DESTDIR="${D}" install || die "make install failed"
|
| 37 |
dodoc AUTHORS ChangeLog NEWS README*
|
| 38 |
if [[ ${USERLAND} == "GNU" ]] ; then
|
| 39 |
# we install everywhere as 'gmake' but on GNU systems,
|
| 40 |
# symlink 'make' to 'gmake'
|
| 41 |
dosym gmake /usr/bin/make
|
| 42 |
dosym gmake.1 /usr/share/man/man1/make.1
|
| 43 |
fi
|
| 44 |
}
|