diff options
author | Daniel Robbins <drobbins@gentoo.org> | 2001-12-21 02:53:18 +0000 |
---|---|---|
committer | Daniel Robbins <drobbins@gentoo.org> | 2001-12-21 02:53:18 +0000 |
commit | 582fee518679c6ba4dc100cfef39e0a17dd81f34 (patch) | |
tree | c17a08160f7076af89e35018dcaaf2403b15e290 /sys-devel | |
parent | Newer version along with a fix for building without X (diff) | |
download | historical-582fee518679c6ba4dc100cfef39e0a17dd81f34.tar.gz historical-582fee518679c6ba4dc100cfef39e0a17dd81f34.tar.bz2 historical-582fee518679c6ba4dc100cfef39e0a17dd81f34.zip |
binutils will now build man pages correctly out of bootstrap; lilo no longer
looks for /etc/rc.d/config/functions; sed no longer uses "try".
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/binutils/binutils-2.11.90.0.7-r1.ebuild | 84 | ||||
-rw-r--r-- | sys-devel/binutils/files/digest-binutils-2.11.90.0.7-r1 | 2 |
2 files changed, 86 insertions, 0 deletions
diff --git a/sys-devel/binutils/binutils-2.11.90.0.7-r1.ebuild b/sys-devel/binutils/binutils-2.11.90.0.7-r1.ebuild new file mode 100644 index 000000000000..1662b53d4414 --- /dev/null +++ b/sys-devel/binutils/binutils-2.11.90.0.7-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: System Team <system@gentoo.org> +# Author: Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils/binutils-2.11.90.0.7-r1.ebuild,v 1.1 2001/12/21 02:53:18 drobbins Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Tools necessary to build programs" +SRC_URI="http://ftp.kernel.org/pub/linux/devel/binutils/${P}.tar.gz http://www.ibiblio.org/${PN}-manpages-${PV}.tar.bz2" + +DEPEND="virtual/glibc" + +src_unpack() { + unpack ${P}.tar.gz + cd ${S} + #man pages are tarred up seperately because building them depends on perl, which isn't installed at + #Gentoo Linux bootstrap time. + mkdir man; cd man + tar xjf ${DISTDIR}/${PN}-manpages-${PV}.tar.bz2 +} + +src_compile() { + ./configure --prefix=/usr --mandir=/usr/share/man --host=${CHOST} --without-included-gettext || die + if [ "`use static`" ] + then + emake -e LDFLAGS=-all-static || die + else + emake || die + fi +} + +src_install() { + make prefix=${D}/usr mandir=${D}/usr/share/man install || die + #c++filt is included with gcc -- what are these GNU people thinking? + rm ${D}/usr/bin/c++filt ${D}/usr/share/man/man1/c++filt* + + #strip has a symlink going from /usr/${CHOST}/bin/strip to /usr/bin/strip; we should reverse + #it: + + rm ${D}/usr/${CHOST}/bin/strip; mv ${D}/usr/bin/strip ${D}/usr/${CHOST}/bin/strip + #the strip symlink gets created in the loop below + + #ar, as, ld, nm, ranlib and strip are in two places; create symlinks. This will reduce the + #size of the tbz2 significantly. We also move all the stuff in /usr/bin to /usr/${CHOST}/bin + #and create the appropriate symlinks. Things are cleaner that way. + cd ${D}/usr/bin + local x + for x in * strip + do + if [ ! -e ../${CHOST}/bin/${x} ] + then + mv $x ../${CHOST}/bin/${x} + else + rm -f $x + fi + ln -s ../${CHOST}/bin/${x} ${x} + done + cd ${S} + if [ -z "`use build`" ] + then + dodoc COPYING* README + docinto bfd + dodoc bfd/ChangeLog* bfd/COPYING bfd/README bfd/PORTING bfd/TODO + docinto binutils + dodoc binutils/ChangeLog binutils/NEWS binutils/README + docinto gas + dodoc gas/ChangeLog* gas/CONTRIBUTORS gas/COPYING gas/NEWS gas/README* + docinto gprof + dodoc gprof/ChangeLog* gprof/TEST gprof/TODO + docinto ld + dodoc ld/ChangeLog* ld/README ld/NEWS ld/TODO + docinto libiberty + dodoc libiberty/ChangeLog* libiberty/COPYING.LIB libiberty/README + docinto opcodes + dodoc opcodes/ChangeLog* + rm -f ${D}/usr/share/man/man1/* + doman ${S}/man/*.1 + else + rm -rf ${D}/usr/share/man + fi +} + + + diff --git a/sys-devel/binutils/files/digest-binutils-2.11.90.0.7-r1 b/sys-devel/binutils/files/digest-binutils-2.11.90.0.7-r1 new file mode 100644 index 000000000000..216a36e6b6d0 --- /dev/null +++ b/sys-devel/binutils/files/digest-binutils-2.11.90.0.7-r1 @@ -0,0 +1,2 @@ +MD5 d80bb57a83a38d77daf40d45379053ed binutils-2.11.90.0.7.tar.gz 9510912 +MD5 344b61b80b1568e73c071254d65c8e38 binutils-manpages-2.11.90.0.7.tar.bz2 49152 |