commit:     47f829cfc8fb2dd84e3cf5e0645660dd6e99ceb7
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 28 20:56:52 2017 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Fri Apr 28 20:56:52 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47f829cf

sys-apps/rkflashtool: Version bump to 6.1

Package-Manager: Portage-2.3.5, Repoman-2.3.1

 sys-apps/rkflashtool/Manifest                      |  1 +
 .../files/rkflashtool-6.1-missing-version.h        |  5 ++++
 sys-apps/rkflashtool/rkflashtool-6.1.ebuild        | 33 ++++++++++++++++++++++
 3 files changed, 39 insertions(+)

diff --git a/sys-apps/rkflashtool/Manifest b/sys-apps/rkflashtool/Manifest
index e3cb5198608..5357e4472dd 100644
--- a/sys-apps/rkflashtool/Manifest
+++ b/sys-apps/rkflashtool/Manifest
@@ -1 +1,2 @@
 DIST rkflashtool-5.1-src.tar.xz 10548 SHA256 
b802b4bd634a614df23f45f65cda8620695282e2646fb5eacd6a69001a110ed6 SHA512 
0dbe69dc7fc224e91e170d5630e770e82257121c2215c6e196b2a8450a9e22bab583b57de50acb9aaad223b9d216b731a92260638c648018c319917705983fb2
 WHIRLPOOL 
6b1de8a5365e55eadb21d2c96c229a2876b31ae9c4a9dade50bebb8eb4e2cc5642ce33213b150487ca546215d47d2cd062f73b958508a6569f3f85c8c396017d
+DIST rkflashtool-6.1-src.tar.xz 13924 SHA256 
d005f6cc5653a8367e4cabdd6b736a7e6f1d4d8dbe0f2ad1e1ce878505b42dfa SHA512 
d7054e61a706ed3e51539556a1441f64cb20a2dafa6f625df384cec9296bdee30714a1c98cfd69d2a656e370387a2bdb86c258fe6b1216bd9c57831ed3de8ea7
 WHIRLPOOL 
1693043748d70be4563f41cd225b9abea0ff35dc300c22e9d5d9dbde53e604c74bea60bdacda69eb5dae222f9c498456fc8c6ea826856c86c46cdd6e0bf15eb2

diff --git a/sys-apps/rkflashtool/files/rkflashtool-6.1-missing-version.h 
b/sys-apps/rkflashtool/files/rkflashtool-6.1-missing-version.h
new file mode 100644
index 00000000000..8869154aeac
--- /dev/null
+++ b/sys-apps/rkflashtool/files/rkflashtool-6.1-missing-version.h
@@ -0,0 +1,5 @@
+#ifndef RKFLASHTOOL_VERSION_H
+#define RKFLASHTOOL_VERSION_H
+#define RKFLASHTOOL_VERSION_MAJOR      6
+#define RKFLASHTOOL_VERSION_MINOR      1
+#endif

diff --git a/sys-apps/rkflashtool/rkflashtool-6.1.ebuild 
b/sys-apps/rkflashtool/rkflashtool-6.1.ebuild
new file mode 100644
index 00000000000..8b4518ba94a
--- /dev/null
+++ b/sys-apps/rkflashtool/rkflashtool-6.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="Tool for flashing Rockchip devices"
+HOMEPAGE="https://sourceforge.net/projects/rkflashtool/";
+SRC_URI="mirror://sourceforge/project/${PN}/${P}/${P}-src.tar.xz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+S=${WORKDIR}/${P}-src
+
+RDEPEND="virtual/libusb:1"
+DEPEND="${RDEPEND}"
+
+src_prepare(){
+       cp "${FILESDIR}"/${P}-missing-version.h version.h || die
+       sed -i -e "s/CC =/CC ?=/"\
+               -e "s/CFLAGS    =/CFLAGS ?=/"\
+               -e "s/LDFLAGS   =/LDFLAGS ?=/" Makefile || die
+       tc-export CC
+}
+
+src_install(){
+       dodoc README
+       dobin rkcrc  rkflashtool rkmisc  rkpad  rkparameters  rkparametersblock 
 rkunpack  rkunsign
+}

Reply via email to