blob: 5a79dd09a22a40ff4059594e7ff05911eb68250f (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/wireless-tools/wireless-tools-28.ebuild,v 1.3 2006/05/23 20:10:35 corsair Exp $
inherit toolchain-funcs multilib
# The following works with both pre-releases and releases
MY_P=${PN/-/_}.${PV/_/.}
S=${WORKDIR}/${MY_P/\.pre*/}
DESCRIPTION="A collection of tools to configure IEEE 802.11 wireless LAN cards"
HOMEPAGE="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html"
SRC_URI="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~mips ~ppc ppc64 ~sparc x86"
DEPEND="sys-apps/sed"
RDEPEND="virtual/libc"
IUSE="multicall nls"
src_unpack() {
unpack ${A}
sed -i \
-e "s:^\(CC\) = gcc:\1 = $(tc-getCC):" \
-e "s:^\(AR\) = ar:\1 = $(tc-getAR):" \
-e "s:^\(RANLIB\) = ranlib:\1 = $(tc-getRANLIB):" \
-e "s:^\(CFLAGS=-Os\):#\1:" \
-e "s:\(@\$(LDCONFIG).*\):#\1:" \
-e "s:^\(INSTALL_MAN= \$(PREFIX)\)/man/:\1/share/man:" \
-e "s:^\(INSTALL_LIB= \$(PREFIX)\)/lib/:\1/$(get_libdir)/:" \
"${S}"/Makefile || die
}
src_compile() {
emake || die "emake failed"
if use multicall; then
emake iwmulticall || die "emake iwmulticall failed"
fi
}
src_install() {
make PREFIX="${D}" INSTALL_INC="${D}"/usr/include INSTALL_MAN="${D}"/usr/share/man install \
|| die "make install failed"
if use multicall; then
# 'make install-iwmulticall' will overwrite some of the tools
# with symlinks - this is intentional (brix)
make PREFIX="${D}" INSTALL_INC="${D}"/usr/include INSTALL_MAN="${D}"/usr/share/man install-iwmulticall \
|| die "make install-iwmulticall failed"
fi
if use nls; then
for lang in fr cs; do
for man in 5 7 8; do
insinto /usr/share/man/${lang}/man${man}
doins ${lang}/*.${man}
done
[[ -f README.${lang} ]] && dodoc README.${lang}
done
fi
dodoc CHANGELOG.h DISTRIBUTIONS.txt HOTPLUG.txt IFRENAME-VS-XXX.txt PCMCIA.txt README
}
|