summaryrefslogtreecommitdiff
path: root/dev-embedded/urjtag
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-embedded/urjtag
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-embedded/urjtag')
-rw-r--r--dev-embedded/urjtag/Manifest7
-rw-r--r--dev-embedded/urjtag/metadata.xml15
-rw-r--r--dev-embedded/urjtag/urjtag-0.10-r1.ebuild52
-rw-r--r--dev-embedded/urjtag/urjtag-0.10.ebuild28
-rw-r--r--dev-embedded/urjtag/urjtag-9999.ebuild56
5 files changed, 158 insertions, 0 deletions
diff --git a/dev-embedded/urjtag/Manifest b/dev-embedded/urjtag/Manifest
new file mode 100644
index 000000000000..b3890fa1ea67
--- /dev/null
+++ b/dev-embedded/urjtag/Manifest
@@ -0,0 +1,7 @@
+DIST urjtag-0.10.tar.bz2 959834 SHA256 7b740416240923ce3610c5253112ee4eac890461b7af982859ff24d41c5778b7 SHA512 245fc276793dbc7791be0989b75beba7f16e8543f35403d645aadcee8d8d613261509392da7e5dd97e5a2de6e87b18276c394cc6353f01e5d1d4907ffb5811ff WHIRLPOOL 2bcda2ab3653ce507b352350007c9a0e774f77ca2ef3db98aeeff4a8f92a68c0c2376c5b5a2e1c3b85d8b366d0f72c5db1d7e8ca8372a083f5e763f38f0670e0
+EBUILD urjtag-0.10-r1.ebuild 1067 SHA256 5ecd7a8a89be080f4b9b77ec55927db4890fba6e75e8a682050997273ce7fe0d SHA512 a3924b2fd4c12134b57524d8a5d88302ff2bb5433633cb9c97e2d2957748ad7b2b772492a3ebc376de7c6f7aab3239319b28c4fa8bdff48db9ed59cc00a8eaef WHIRLPOOL 40c55a67dd66453f7da0df1359720377092b644b7f159b902bf58d513ebac020057a7bf5cbfb3b57c79b96734e9fbd9e576b3fe7676d011f3e69d779782c9714
+EBUILD urjtag-0.10.ebuild 718 SHA256 5ac4d15354dcdc272201211a8602b73b73881cb9e2bd7113bcf91fa5dfd3bbac SHA512 c6e0430a91c70a352d07a64938e75821c171ee3a8e72f42872ea4996b9c2255ec2faf91ea27e4a030ee3647d23e775d494be8012aabb91edae767f95462c489f WHIRLPOOL 9a5c9030e48d4fca17689646821f27ffe7b77928590a31eed75d4a80d21bcc1dfba6a605de214737c133fd7a3ec989a20bc35a6c3c7f8f6c750e5a29af8d5aa5
+EBUILD urjtag-9999.ebuild 1218 SHA256 6f25ff90a796b59d811516d2394b2c3cda8902e66b456b074d9e23637f427a2c SHA512 71a99d16d867945df0572a6a8d40dd8e9e7dc772695be16c4557f7a4dd684deb096bc88ddcb12ef95deb3c2a22121859a5f2317dd367ae1112786c40e093273d WHIRLPOOL 4b5d49b7f5859e67b702f9784d32b5429e898511b2ceae4d022228cc5e0de4f23fad9b1852b2aeaf5b31434fbdaf579cd7a9eae1574c4ea31b4f228d4f04f8e2
+MISC ChangeLog 3660 SHA256 ad319460c9df4b49ab18ec64c72d94ac80a5c5e2dfa00e40a240f24dee769031 SHA512 a76f41692cd0c95f719514b8d5bb6a4bd313ecde2eeeb6a377f056d2ea95e4dbabcf42c783a43bd043576d949f8964c9842032f6dbeba18101a2d06a735db02e WHIRLPOOL c1c1efab3fa54e79a5bf76422d1415e8ef2aad85a595476d39751e29a1e12561dffefe3d3a8e3887aa029f8ce59ac2f2d6abe51258f88068b3bf78dfa6bc069d
+MISC ChangeLog-2015 2216 SHA256 7646d2ef007a82cc32374f3cf706ef623bd91724943f9bb9474e0501dc9b3583 SHA512 87f0ab503d7494d4cb217eee3dc8f5f3a3f726b9f91879b4b32a270a7038604269bb2d8827c36dcd51e825e95cc1df186aaa83dc391ca52ad7aefdff08267895 WHIRLPOOL b0f93f5020857c61fe33d42d989bb34217a38b180c37e5e6c78dc70052010a10964599535443e9331887594e4c1479029b6545758547734afea6ee5c51bcfca5
+MISC metadata.xml 540 SHA256 05573a0d6245f6994002d0997f67b914c65f3de3b676a915358cdc227a06441b SHA512 cb3523611ffcd7e007e06a630b1299aa610511ef20073c5e8a8efada52ba58ff34fcf2ccc4c04f51676e224b3d2b388a871995499fda480c0d51dc063a0777ce WHIRLPOOL 8037ff1179b046af00345940a3c80d03411515302b037f7c2a3a2f2ea7ed4153ea57fe8ef67843216641e5e06eba4006359a764905bc1f9363850e4d55410b2e
diff --git a/dev-embedded/urjtag/metadata.xml b/dev-embedded/urjtag/metadata.xml
new file mode 100644
index 000000000000..6b1fef9c502d
--- /dev/null
+++ b/dev-embedded/urjtag/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>embedded@gentoo.org</email>
+ <name>Embedded Gentoo</name>
+ </maintainer>
+ <use>
+ <flag name="ftd2xx">Enable support for USB FTDI chips via <pkg>dev-embedded/libftd2xx</pkg></flag>
+ <flag name="ftdi">Enable support for USB FTDI chips via <pkg>dev-embedded/libftdi</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">urjtag</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-embedded/urjtag/urjtag-0.10-r1.ebuild b/dev-embedded/urjtag/urjtag-0.10-r1.ebuild
new file mode 100644
index 000000000000..bd2122f3ac81
--- /dev/null
+++ b/dev-embedded/urjtag/urjtag-0.10-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: figure out htf to make python.eclass work
+
+EAPI="5"
+
+inherit eutils multilib
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://git.code.sf.net/p/urjtag/git"
+ inherit git-r3 autotools
+ S=${WORKDIR}/${P}/${PN}
+else
+ SRC_URI="mirror://sourceforge/urjtag/${P}.tar.bz2"
+ KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+fi
+
+DESCRIPTION="Tool for communicating over JTAG with flash chips, CPUs, and many more"
+HOMEPAGE="http://urjtag.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="ftdi readline usb"
+
+DEPEND="ftdi? ( dev-embedded/libftdi:0 )
+ readline? ( sys-libs/readline:= )
+ usb? ( virtual/libusb:0 )"
+RDEPEND="${DEPEND}
+ !dev-embedded/jtag"
+
+src_prepare() {
+ if [[ ${PV} == "9999" ]] ; then
+ mkdir -p m4
+ eautopoint
+ eautoreconf
+ fi
+}
+
+src_configure() {
+ use readline || export vl_cv_lib_readline=no
+
+ econf \
+ --disable-werror \
+ --disable-python \
+ $(use_with ftdi libftdi) \
+ $(use_with usb libusb)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/dev-embedded/urjtag/urjtag-0.10.ebuild b/dev-embedded/urjtag/urjtag-0.10.ebuild
new file mode 100644
index 000000000000..9a78fc472437
--- /dev/null
+++ b/dev-embedded/urjtag/urjtag-0.10.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="Tool for communicating over JTAG with flash chips, CPUs, and many more"
+HOMEPAGE="http://urjtag.sourceforge.net/"
+SRC_URI="mirror://sourceforge/urjtag/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE="ftdi readline"
+
+DEPEND="!dev-embedded/jtag
+ ftdi? ( =dev-embedded/libftdi-0* )
+ readline? ( sys-libs/readline )"
+
+src_compile() {
+ use readline || export vl_cv_lib_readline=no
+ econf $(use_enable ftdi libftdi) || die
+ emake || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "failed to install"
+ dodoc AUTHORS ChangeLog NEWS README THANKS
+}
diff --git a/dev-embedded/urjtag/urjtag-9999.ebuild b/dev-embedded/urjtag/urjtag-9999.ebuild
new file mode 100644
index 000000000000..c78422b44a17
--- /dev/null
+++ b/dev-embedded/urjtag/urjtag-9999.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: figure out htf to make python.eclass work
+
+EAPI="5"
+
+inherit eutils multilib
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://git.code.sf.net/p/urjtag/git"
+ inherit git-r3 autotools
+ S=${WORKDIR}/${P}/${PN}
+else
+ SRC_URI="mirror://sourceforge/urjtag/${P}.tar.bz2"
+ KEYWORDS="amd64 ppc sparc x86"
+fi
+
+DESCRIPTION="Tool for communicating over JTAG with flash chips, CPUs, and many more"
+HOMEPAGE="http://urjtag.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="ftd2xx ftdi readline static-libs usb"
+
+DEPEND="ftdi? ( dev-embedded/libftdi:= )
+ ftd2xx? ( dev-embedded/libftd2xx )
+ readline? ( sys-libs/readline:= )
+ usb? ( virtual/libusb:1 )"
+RDEPEND="${DEPEND}
+ !dev-embedded/jtag"
+
+src_prepare() {
+ if [[ ${PV} == "9999" ]] ; then
+ mkdir -p m4
+ eautopoint
+ eautoreconf
+ fi
+}
+
+src_configure() {
+ use ftd2xx && LDFLAGS="${LDFLAGS} -L/opt/$(get_libdir)"
+
+ econf \
+ --disable-werror \
+ --disable-python \
+ $(use_with readline) \
+ $(use_with ftdi libftdi) \
+ $(use_with ftd2xx) \
+ $(use_enable static-libs static) \
+ $(use_with usb libusb 1.0)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}