# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools DESCRIPTION="Support library to communicate with Apple iPhone/iPod Touch devices" HOMEPAGE="http://libimobiledevice.org/" SRC_URI="http://cloud.github.com/downloads/MattColyer/libiphone/${P}.tar.bz2" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~x86" IUSE="tools debug" DEPEND=">=app-pda/libplist-1.2 >=app-pda/usbmuxd-1.0" RDEPEND="${DEPEND}" src_compile() { # use_with doesn't seem to work property here OPTS= if use tools; then OPTS="${OPTS} --enable-dev-tools" fi if use debug; then OPTS="${OPTS} --enable-debug-code" fi econf ${OPTS} emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" }