blob: b01652bbe9d129fbba0fbb1a3f4718846f69564e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/mii-diag/mii-diag-2.07.ebuild,v 1.9 2005/02/13 03:29:27 robbat2 Exp $
inherit eutils toolchain-funcs
MIIVER=${PV}
LIBVER=2.04
DESCRIPTION="MII link status report and diagnostics"
HOMEPAGE="http://www.scyld.com/diag/"
# Files below are small and unversioned so I put them in the files dir
# with version suffixes.
SRC_URI="" # ftp://ftp.scyld.com/pub/diag/mii-diag.c
# ftp://ftp.scyld.com/pub/diag/libmii.c
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 x86"
IUSE=""
DEPEND=""
S=${WORKDIR}
src_unpack() {
cp ${FILESDIR}/mii-diag.c-${MIIVER} mii-diag.c || die "mii-diag.c"
cp ${FILESDIR}/libmii.c-${LIBVER} libmii.c || die "libmii.c"
epatch ${FILESDIR}/mii-diag.c-${PV}-gcc33.patch
}
src_compile() {
# Don't change -O below, it is a requirement for building these
# programs. See http://www.scyld.com/diag/#compiling
$(tc-getCC) -O -c libmii.c || die
$(tc-getCC) -O -DLIBMII mii-diag.c libmii.o -o mii-diag || die
}
src_install() {
into /
dosbin mii-diag || die
}
|