/[gentoo-alt]/trunk/sys-devel/make/make-3.80-r2.ebuild
Gentoo

Contents of /trunk/sys-devel/make/make-3.80-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 297 - (show annotations) (download)
Fri Apr 29 13:17:21 2005 UTC (9 years, 4 months ago) by flameeyes
File size: 1309 byte(s)
Using the make ebuild in bug #90849 which is (hopefully) going to be on main portage.

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit gnuconfig eutils flag-o-matic
6
7 DESCRIPTION="Standard tool to compile source trees"
8 HOMEPAGE="http://www.gnu.org/software/make/make.html"
9 SRC_URI="ftp://ftp.gnu.org/gnu/make/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86"
14 IUSE="nls static build uclibc hardened"
15
16 DEPEND="virtual/libc
17 nls? ( sys-devel/gettext )"
18 RDEPEND="virtual/libc"
19
20 src_unpack() {
21 unpack ${A}
22 cd ${S}
23 epatch ${FILESDIR}/${PV}-memory.patch
24 if use ppc64 && use hardened; then
25 epatch ${FILESDIR}/make-3.80-ppc64-hardened-clock_gettime.patch
26 fi
27 # Detect mips and uclibc systems properly
28 gnuconfig_update
29 }
30
31 src_compile() {
32 use static && append-ldflags -static
33
34 [[ "${USERLAND}" != "GNU" ]] && \
35 myconf="${myconf} --program-prefix=g"
36
37 econf $(use_enable nls) ${myconf} || die
38 emake || die
39 }
40
41 src_install() {
42 if [[ "${USERLAND}" == "GNU" ]]; then
43 makebin="make"
44 else
45 makebin="gmake"
46 fi
47
48 if use build; then
49 dobin ${makebin}
50 else
51 make DESTDIR="${D}" install || die "make install failed"
52
53 fperms 0755 /usr/bin/${makebin}
54 [[ "${USERLAND}" == "GNU" ]] && dosym make /usr/bin/gmake
55
56 dodoc AUTHORS ChangeLog NEWS README*
57 fi
58 }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20