# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit autotools linux-info DESCRIPTION="A reverse-engineered Linux driver for mobile WiMAX devices based on Samsung CMC-730 chip." HOMEPAGE="http://code.google.com/p/madwimax/" SRC_URI="http://madwimax.googlecode.com/files/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc" RDEPEND="virtual/libusb:1" DEPEND="${RDEPEND} 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() { if ! use doc; then myconf="--without-man-pages" fi econf ${myconf} || die "econf failed" } src_install() { emake DESTDIR="${D}" install || die mv "${D}"/etc/udev/rules.d/{z,}60_madwimax.rules || die dodoc README }