You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
919 B

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit autotools linux-info udev
DESCRIPTION="Reverse-engineered driver for WiMAX devices based on Samsung CMC-730 chip"
HOMEPAGE="https://code.google.com/p/madwimax/"
SRC_URI="https://madwimax.googlecode.com/files/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="doc"
RDEPEND="virtual/libusb:1"
DEPEND="${RDEPEND}
virtual/pkgconfig
doc? (
app-text/asciidoc
app-text/docbook2X
)"
CONFIG_CHECK="~TUN"
src_prepare() {
sed -i -e "s:\(for name in docbook2\)x-man:\1man\.pl:" configure.ac || die
eautoreconf
}
src_configure() {
local myconf
use doc || myconf="--without-man-pages"
econf ${myconf}
}
src_install() {
emake DESTDIR="${D}" udevrulesdir="$(get_udevdir)"/rules.d install
mv "${ED}/$(get_udevdir)"/rules.d/{z60_,60-}madwimax.rules || die
dodoc README
}