diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-04-20 01:33:54 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-04-20 01:33:54 +0000 |
commit | 838a4787ed8cc71991ffa9de3ab84ea02a1aa4b2 (patch) | |
tree | d38339e89e62a5341abb4435f9ca627024046fdc /dev-embedded/openocd | |
parent | +dev-embedded/openocd:{ft2232,parport,presto} (diff) | |
download | gentoo-2-838a4787ed8cc71991ffa9de3ab84ea02a1aa4b2.tar.gz gentoo-2-838a4787ed8cc71991ffa9de3ab84ea02a1aa4b2.tar.bz2 gentoo-2-838a4787ed8cc71991ffa9de3ab84ea02a1aa4b2.zip |
Initial ebuild by Claes Mogren and Kliakhandler Kosta and me #200689.
(Portage version: 2.2_pre5)
Diffstat (limited to 'dev-embedded/openocd')
-rw-r--r-- | dev-embedded/openocd/ChangeLog | 8 | ||||
-rw-r--r-- | dev-embedded/openocd/Manifest | 3 | ||||
-rw-r--r-- | dev-embedded/openocd/metadata.xml | 5 | ||||
-rw-r--r-- | dev-embedded/openocd/openocd-9999.ebuild | 57 |
4 files changed, 73 insertions, 0 deletions
diff --git a/dev-embedded/openocd/ChangeLog b/dev-embedded/openocd/ChangeLog new file mode 100644 index 000000000000..1a160ccf5f7a --- /dev/null +++ b/dev-embedded/openocd/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for dev-embedded/openocd +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/openocd/ChangeLog,v 1.1 2008/04/20 01:33:54 vapier Exp $ + +*openocd-9999 (19 Apr 2008) + + 19 Apr 2008; Mike Frysinger <vapier@gentoo.org> +openocd-9999.ebuild: + Initial ebuild by Claes Mogren and Kliakhandler Kosta and me #200689. diff --git a/dev-embedded/openocd/Manifest b/dev-embedded/openocd/Manifest new file mode 100644 index 000000000000..879ccca5ce96 --- /dev/null +++ b/dev-embedded/openocd/Manifest @@ -0,0 +1,3 @@ +EBUILD openocd-9999.ebuild 1458 RMD160 cab322239eada8724cb7272e2eeb321a0a35624a SHA1 df167728f34f577ec429aaf376aac2c02d39c96d SHA256 9060a9adbb5aad83f94a19cab9b2d8d1fe3427295b666809c6b04c89c37b6b04 +MISC ChangeLog 294 RMD160 a8510161f035666d45190c432460c62504f7fca9 SHA1 87a18f6256bd42ced7b7b43bd350171b9c34b3f2 SHA256 21ab69c295d6000b0fd9b00e7e0cad36fd3b780c48c0460dccb391d2a845f667 +MISC metadata.xml 165 RMD160 3965c22a153ed350bcbd52de07c08ad47dd03cd7 SHA1 54b9da7fdc6d8376c990288c72938be9855ef8b6 SHA256 fb7ede94a0633f77d601e3e81580eac1624a3bca14401a49d94082579507ba0a diff --git a/dev-embedded/openocd/metadata.xml b/dev-embedded/openocd/metadata.xml new file mode 100644 index 000000000000..92114080841c --- /dev/null +++ b/dev-embedded/openocd/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>dev-embedded</herd> +</pkgmetadata> diff --git a/dev-embedded/openocd/openocd-9999.ebuild b/dev-embedded/openocd/openocd-9999.ebuild new file mode 100644 index 000000000000..30ce58470bc8 --- /dev/null +++ b/dev-embedded/openocd/openocd-9999.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/openocd/openocd-9999.ebuild,v 1.1 2008/04/20 01:33:54 vapier Exp $ + +ESVN_REPO_URI="http://svn.berlios.de/svnroot/repos/openocd/trunk" +inherit eutils subversion + +DESCRIPTION="OpenOCD - Open On-Chip Debugger" +HOMEPAGE="http://openocd.berlios.de/web/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="ft2232 ftdi parport presto" +RESTRICT="strip" # includes non-native binaries + +# libftd2xx is the default because it is reported to work better. +DEPEND="presto? ( dev-embedded/libftd2xx ) + ft2232? ( || ( ftdi? ( dev-embedded/libftdi ) dev-embedded/libftd2xx ) )" + +pkg_setup() { + if use ftdi && ! use ft2232 ; then + ewarn "You enabled libftdi but not ft2232!" + ewarn "libftdi is only used for ft2232, so this is meaningless!" + fi +} + +src_unpack() { + subversion_src_unpack + cd "${S}" + ./bootstrap || die "Can't bootstrap!" +} + +src_compile() { + econf \ + --enable-parport \ + --enable-parport_ppdev \ + --enable-amtjtagaccel \ + --enable-ep93xx \ + --enable-at91rm9200 \ + --enable-gw16012 \ + --enable-usbprog \ + --enable-oocd_trace \ + $(use_enable parport parport_giveio) \ + $(use_enable presto presto_ftd2xx) \ + $(use ft2232 && use_enable ftdi ft2232_libftdi) \ + $(use ft2232 && use_enable !ftdi ft2232_ftd2xx) \ + || die "Error in econf!" + emake || die "Error in emake!" +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc AUTHORS ChangeLog NEWS README TODO + prepstrip "${D}"/usr/bin +} |