# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="5" inherit autotools eutils git-2 udev DESCRIPTION="iPhone USB Ethernet Driver for Linux pairing helper" HOMEPAGE="http://giagio.com/wiki/moin.cgi/iPhoneEthernetDriver" SRC_URI="" EGIT_REPO_URI="git://github.com/dgiagio/ipheth.git/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" IUSE="udev" RDEPEND="app-pda/libimobiledevice" DEPEND="${RDEPEND}" src_compile() { emake -C ipheth-pair || die } src_install() { exeinto /lib/udev doexe ${WORKDIR}/${P}/${PN}/${PN} udev_dorules "${WORKDIR}/${P}/${PN}"/90-iphone-tether.rules if ! use udev; then rm "${ED}"/$(get_udevdir)/rules.d/90-iphone-tether.rules rmdir -p "${ED}"/$(get_udevdir)/rules.d fi } pkg_postinst() { if use udev; then udev_reload fi }