# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Apples kexttools - required for building xnu" WEBPAGE="http://darwinsource.opendarwin.org/10.3.4/" SRC_URI="http://darwinsource.opendarwin.org/tarballs/apsl/${P}.tar.gz" LICENSE="APSL-2" SLOT="0" KEYWORDS="~macos" IUSE="" DEPEND="=sys-darwin/bootstrap_cmds-44 =sys-darwin/cctools-495.8" src_compile() { cd ${S} #kextd and kextcache rely on internal apple header CoreFoundation/CFPriv.h xcodebuild -target kextsymboltool || die "make kextsymboltool failed" xcodebuild -target mkextunpack || die "make mkextunpack failed" xcodebuild -target kextunload || die "make kextunload failed" xcodebuild -target kextstat || die "make kextstat failed" xcodebuild -target kextload || die "make kextload failed" } src_install() { cd ${S}/build dobin kextsymboltool dobin mkextunpack dobin kextunload dobin kextstat dobin kextload }