diff options
Diffstat (limited to 'app-mobilephone/openmoko-dfu-util/openmoko-dfu-util-5484.ebuild')
-rw-r--r-- | app-mobilephone/openmoko-dfu-util/openmoko-dfu-util-5484.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/app-mobilephone/openmoko-dfu-util/openmoko-dfu-util-5484.ebuild b/app-mobilephone/openmoko-dfu-util/openmoko-dfu-util-5484.ebuild new file mode 100644 index 000000000000..279147868184 --- /dev/null +++ b/app-mobilephone/openmoko-dfu-util/openmoko-dfu-util-5484.ebuild @@ -0,0 +1,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.1 2009/08/19 07:41:54 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="dev-libs/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 +} |