diff options
Diffstat (limited to 'net-wireless/b43-tools')
-rw-r--r-- | net-wireless/b43-tools/Manifest | 1 | ||||
-rw-r--r-- | net-wireless/b43-tools/b43-tools-9999.ebuild | 72 |
2 files changed, 73 insertions, 0 deletions
diff --git a/net-wireless/b43-tools/Manifest b/net-wireless/b43-tools/Manifest new file mode 100644 index 00000000..12ef12f1 --- /dev/null +++ b/net-wireless/b43-tools/Manifest @@ -0,0 +1 @@ +EBUILD b43-tools-9999.ebuild 1731 SHA256 a3432521d885c2802ca2268a95c728bd10cb1ca7bd503af6c170f3fafb6fd472 SHA512 a16f720d05f6644eaa3a8e941349f0ca73447f5527a963a70a1316abb829b285ff428225f661b37bde37999229c8c089c6fea35f76eca2f0cff99fb2cd5760d3 WHIRLPOOL 56f1957e60f0d3574a01cad2e7a403dacbe7cdc83a4192ce249e80dbabd971030fae4487cecb123bbf37d972d15f72cc080ea733182ea3e064ad1305d8ab4d82 diff --git a/net-wireless/b43-tools/b43-tools-9999.ebuild b/net-wireless/b43-tools/b43-tools-9999.ebuild new file mode 100644 index 00000000..54c3f239 --- /dev/null +++ b/net-wireless/b43-tools/b43-tools-9999.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit git-2 python + +DESCRIPTION="Tools for developers working on broadcom drivers/firmware" +HOMEPAGE="http://bu3sch.de/gitweb?p=b43-tools.git;a=summary" +SRC_URI="" +EGIT_REPO_URI="git://git.bues.ch/b43-tools.git" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+assembler debug disassembler fwcutter +ssb_sprom" + +RDEPEND="fwcutter? ( net-wireless/b43-fwcutter )" +DEPEND="${RDEPEND} + sys-devel/flex" + +src_compile() { + + if use assembler; then + cd "${S}"/assembler + emake || die "emake assembler failed" + fi + + if use disassembler; then + cd "${S}"/disassembler + emake || die "emake disassembler failed" + fi + + if use fwcutter; then + einfo "Firmware cutter from b43-tools will NOT be installed. Use net-wireless/b43-fwcutter instead." +# cd "${S}"/fwcutter +# emake || die "emake fwcutter failed" + fi + + if use ssb_sprom; then + cd "${S}"/ssb_sprom + emake || die "emake ssb_sprom failed" + fi +} + +src_install() { + if use assembler; then + dobin "${S}"/assembler/b43-asm.bin + sed -e 's/installed=0/installed=1/' -i "${S}"/assembler/b43-asm + dobin "${S}"/assembler/b43-asm + fi + +## install debug, I'm guessing this needs a few deps, and what not + if use debug; then + cd "${S}"/debug + insinto /usr/lib/python$(python_get_version)/ + doins libb43.py + dobin b43-beautifier b43-fwdump patcher-template + fi + + if use disassembler; then + dobin "${S}"/disassembler/b43-dasm + dobin "${S}"/disassembler/b43-ivaldump + fi + + if use ssb_sprom; then + dobin "${S}"/ssb_sprom/ssb-sprom + fi + + einfo "The docs are not packaged properly if you use dodoc README several times, feel free to fix it" +} |