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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.296  
changed lines
  Added in v.297

  ViewVC Help
Powered by ViewVC 1.1.20