# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils subversion ESVN_REPO_URI="http://svn.berlios.de/svnroot/repos/openocd/trunk/" ESVN_PROJECT="openocd" ESVN_BOOTSTRAP="./bootstrap" DESCRIPTION="The Open On-Chip Debugger" HOMEPAGE="http://openfacts.berlios.de/index-en.phtml?title=Open_On-Chip_Debugger" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="ftdi" RDEPEND="ftdi? ( >=dev-embedded/libftdi-0.8 )" DEPEND="${RDEPEND} >=sys-devel/automake-1.9 >=sys-devel/autoconf-2.13" src_unpack() { subversion_src_unpack } src_compile() { local myconf # There are more flags to enable, but they are too complicated for me. if use ftdi ; then myconf="${myconf} --enable-ft2232_libftdi" fi econf \ --enable-parport \ --enable-parport_ppdev \ $(myconf) \ || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} docdir=/usr/share/doc/${PF} \ install || die "make install failed" dodoc AUTHORS ChangeLog README TODO NEWS || die "dodoc failed" }