2012-10-08 10:47:49 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-10-08 10:47:49 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/dfu-util/dfu-util-0.5.ebuild,v 1.2 2012/10/07 03:13:24 flameeyes Exp $
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
EAPI="2"
|
|
|
|
|
|
|
|
if [[ ${PV} == "9999" ]] ; then
|
|
|
|
EGIT_REPO_URI="git://git.openezx.org/dfu-util.git"
|
|
|
|
inherit autotools git
|
|
|
|
SRC_URI=""
|
|
|
|
#KEYWORDS=""
|
|
|
|
else
|
|
|
|
SRC_URI="http://dfu-util.gnumonks.org/releases/${P}.tar.gz"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
fi
|
|
|
|
|
|
|
|
DESCRIPTION="implements the Host (PC) side of the USB DFU (Device Firmware Upgrade) protocol"
|
|
|
|
HOMEPAGE="http://wiki.openmoko.org/wiki/Dfu-util"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE=""
|
|
|
|
|
2012-10-08 10:47:49 +04:00
|
|
|
RDEPEND="virtual/libusb:1"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
virtual/pkgconfig"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
if [[ ${PV} == "9999" ]] ; then
|
|
|
|
git_src_prepare
|
|
|
|
eautoreconf
|
|
|
|
fi
|
|
|
|
sed -i '/^bin_PROGRAMS/s:dfu-util_static[^ ]*::' src/Makefile.in
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake DESTDIR="${D}" install || die
|
|
|
|
dodoc ChangeLog README TODO
|
|
|
|
}
|