| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-pda/usbmuxd/usbmuxd-1.0.8-r1.ebuild,v 1.6 2012/12/31 14:17:14 ago Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
inherit cmake-utils user udev
|
| 7 |
|
| 8 |
DESCRIPTION="USB multiplex daemon for use with Apple iPhone/iPod Touch devices"
|
| 9 |
HOMEPAGE="http://www.libimobiledevice.org/"
|
| 10 |
SRC_URI="http://www.libimobiledevice.org/downloads/${P}.tar.bz2"
|
| 11 |
|
| 12 |
LICENSE="GPL-2 GPL-3 LGPL-2.1"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86"
|
| 15 |
IUSE=""
|
| 16 |
|
| 17 |
RDEPEND=">=app-pda/libplist-1.8-r1
|
| 18 |
virtual/libusb:1"
|
| 19 |
DEPEND="${RDEPEND}
|
| 20 |
virtual/os-headers
|
| 21 |
virtual/pkgconfig"
|
| 22 |
|
| 23 |
pkg_setup() {
|
| 24 |
enewgroup plugdev
|
| 25 |
enewuser usbmux -1 -1 -1 "usb,plugdev"
|
| 26 |
}
|
| 27 |
|
| 28 |
src_configure() {
|
| 29 |
if [[ $(udev_get_udevdir) != "/lib/udev" ]]; then
|
| 30 |
sed -i -e "/rules/s:/lib/udev:$(udev_get_udevdir):" udev/CMakeLists.txt || die
|
| 31 |
fi
|
| 32 |
|
| 33 |
cmake-utils_src_configure
|
| 34 |
}
|
| 35 |
|
| 36 |
DOCS="AUTHORS README README.devel"
|