diff options
author | Steve Arnold <stephen.arnold42@gmail.com> | 2016-03-28 23:22:48 -0700 |
---|---|---|
committer | Steve Arnold <stephen.arnold42@gmail.com> | 2016-03-28 23:22:48 -0700 |
commit | 9f987dc76c8c6840e4807079d54a2d8f56d2532d (patch) | |
tree | 4e744790f3f76e61f8a006dc1029efa064d731ce /net-misc/ethercard-diag | |
parent | sys-devel/gcc: add arm neon array size patch for 5.3.0 (diff) | |
download | arm-9f987dc76c8c6840e4807079d54a2d8f56d2532d.tar.gz arm-9f987dc76c8c6840e4807079d54a2d8f56d2532d.tar.bz2 arm-9f987dc76c8c6840e4807079d54a2d8f56d2532d.zip |
update and add gold linker workaround
Diffstat (limited to 'net-misc/ethercard-diag')
-rw-r--r-- | net-misc/ethercard-diag/ethercard-diag-20050321.1g-r1.ebuild (renamed from net-misc/ethercard-diag/ethercard-diag-20050321.1g.ebuild) | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/net-misc/ethercard-diag/ethercard-diag-20050321.1g.ebuild b/net-misc/ethercard-diag/ethercard-diag-20050321.1g-r1.ebuild index 15abffc..faa176a 100644 --- a/net-misc/ethercard-diag/ethercard-diag-20050321.1g.ebuild +++ b/net-misc/ethercard-diag/ethercard-diag-20050321.1g-r1.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ -EAPI="4" +EAPI="5" -inherit eutils toolchain-funcs +inherit eutils flag-o-matic toolchain-funcs DESCRIPTION="low level mii diagnostic tools including mii-diag and etherwake (merge of netdiag/isa-diag)" HOMEPAGE="ftp://ftp.scyld.com/pub/diag/ ftp://ftp.scyld.com/pub/isa-diag/" @@ -12,10 +12,10 @@ SRC_URI="mirror://gentoo/${P}.tar.lzma" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~arm ~ppc ~x86" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86" IUSE="+diag-only" -DEPEND="!sys-apps/nictools" +RDEPEND="!sys-apps/nictools" src_prepare() { epatch "${FILESDIR}"/${PN}-make_diag_only.patch \ @@ -24,22 +24,33 @@ src_prepare() { # triggers QA warnings, needs fixing... sed -i -e "s|pcnet-diag ||" "${S}"/pub/diag/Makefile rm -f "${S}"/pub/diag/pcnet-diag* + + # Since the binary is `ether-wake`, make sure the man page is + # `man ether-wake` and not `man etherwake`. #439504 + sed -i \ + -e 's/ETHERWAKE/ETHER-WAKE/' \ + -e 's/etherwake/ether-wake/' \ + pub/diag/{etherwake.8,Makefile} patches/* || die + mv pub/diag/ether{,-}wake.8 || die } src_compile() { tc-export CC AR + append-cflags "-DPIC -fPIC" + strip-flags "-O*" + tc-ld-disable-gold if ! use diag-only ; then - emake || die + emake else - emake diag || die + emake diag fi } src_install() { if ! use diag-only ; then - emake DESTDIR="${D}" install || die + emake DESTDIR="${D}" install else - emake DESTDIR="${D}" install-diag || die + emake DESTDIR="${D}" install-diag fi dodir /sbin |