blob: 6639aa7abbb9847876980051c7249ed4aa1fdd29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/openmoko-dfu-util/openmoko-dfu-util-5484.ebuild,v 1.2 2009/10/17 23:50:58 vapier Exp $
EAPI="2"
inherit autotools
if [[ ${PV} == "9999" ]] ; then
ESVN_REPO_URI="http://svn.openmoko.org/trunk/src/host/dfu-util/"
inherit subversion
SRC_URI=""
KEYWORDS=""
else
MY_P="${PN}-svn-${PV}"
SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
KEYWORDS="~amd64 ~x86"
S=${WORKDIR}/${MY_P}
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=""
DEPEND="virtual/libusb:0"
RDEPEND="${DEPEND}"
maint_pkg_create() {
cd "${T}"
svn export "${ESVN_STORE_DIR}/${PN}/dfu-util" ${PN}-svn-${ESVN_REVISION}
cd ${PN}-svn-${ESVN_REVISION}
sed -i '/^bin_PROGRAMS/s:dfu-util_static::' src/Makefile.am
eautoreconf
rm -rf autom4te.cache
cd ..
tar jcf ${PN}-svn-${ESVN_REVISION}.tar.bz2 ${PN}-svn-${ESVN_REVISION}
}
src_prepare() {
if [[ ${PV} == "9999" ]] ; then
subversion_src_prepare
sed -i '/^bin_PROGRAMS/s:dfu-util_static::' src/Makefile.am
eautoreconf
fi
}
src_install() {
emake DESTDIR="${D}" install || die "Make install failed"
doman doc/dfu-util.1
}
|