sys-apps/sdb: Initial version 86/172386/6
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Wed, 7 Mar 2018 18:13:06 +0000 (19:13 +0100)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Mon, 23 Jul 2018 17:35:57 +0000 (19:35 +0200)
Change-Id: I8567107361e084c1e61ee6f37078118bcb334eab

sys-apps/sdb/files/sdb-Use-CHOST-variable.patch [new file with mode: 0644]
sys-apps/sdb/metadata.xml [new file with mode: 0644]
sys-apps/sdb/sdb-9999.ebuild [new file with mode: 0644]

diff --git a/sys-apps/sdb/files/sdb-Use-CHOST-variable.patch b/sys-apps/sdb/files/sdb-Use-CHOST-variable.patch
new file mode 100644 (file)
index 0000000..33ae456
--- /dev/null
@@ -0,0 +1,46 @@
+From 2e4064ea4f5b451a97eb1ce27cd7f4596792e0b3 Mon Sep 17 00:00:00 2001
+From: Aleksander Mistewicz <a.mistewicz@samsung.com>
+Date: Tue, 6 Mar 2018 10:41:40 +0100
+Subject: [PATCH] Use CHOST variable
+
+Change-Id: Ib954c0cf107cac372280314836ea407b6262a277
+---
+ Makefile              | 8 ++++++++
+ SPC/gcc/Makefile.conf | 2 --
+ 2 files changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 04da2ac..f030cac 100644
+--- a/Makefile
++++ b/Makefile
+@@ -18,6 +18,14 @@ ENCLIB_LFLAGS := ./SPC/gcc/build/linux/libPAKEClient.a
+ # sdb host tool
+ # =========================================================
++ifdef CHOST
++      CC := $(CHOST)-gcc
++      CXX := $(CHOST)-g++
++      
++      CROSS_COMPILE="$(CHOST)-"
++      export CROSS_COMPILE
++endif
++
+ ifeq ($(HOST_OS),darwin)
+       CC := clang
+       CXX := clang++
+diff --git a/SPC/gcc/Makefile.conf b/SPC/gcc/Makefile.conf
+index 61e2967..1c7c6b2 100755
+--- a/SPC/gcc/Makefile.conf
++++ b/SPC/gcc/Makefile.conf
+@@ -28,8 +28,6 @@ endif
+ #  Options                                         #\r
+ ####################################################\r
+ ifeq ($(PLATFORM), linux)\r
+-      CROSS_COMPILE=\r
+-      \r
+       CFLAGS+= -Wall -Wextra -Wcast-align -Wno-unused-parameter -Wshadow -Wwrite-strings -Wcast-qual -fstrict-aliasing -fsigned-char\r
+       CFLAGS+= -ffunction-sections -fdata-sections -fPIC  -Wstrict-prototypes -fpermissive\r
+       \r
+-- 
+2.7.4
+
diff --git a/sys-apps/sdb/metadata.xml b/sys-apps/sdb/metadata.xml
new file mode 100644 (file)
index 0000000..813dbb0
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>a.mistewicz@samsung.com</email>
+    <name>Aleksander Mistewicz</name>
+  </maintainer>
+  <upstream>
+    <maintainer>
+      <email>seok.oh@samsung.com</email>
+      <name>Chang-Seok Oh</name>
+    </maintainer>
+  </upstream>
+</pkgmetadata>
diff --git a/sys-apps/sdb/sdb-9999.ebuild b/sys-apps/sdb/sdb-9999.ebuild
new file mode 100644 (file)
index 0000000..4108ef1
--- /dev/null
@@ -0,0 +1,23 @@
+# Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="SDB client"
+HOMEPAGE="https://wiki.tizen.org/SDK"
+EGIT_REPO_URI="git://git.tizen.org/sdk/tools/sdb"
+EGIT_BRANCH="tizen_studio"
+inherit epatch git-r3
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~arm"
+IUSE=""
+
+RDEPEND="sys-libs/ncurses:5/5 dev-libs/openssl:0"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       epatch "${FILESDIR}"/${PN}-Use-CHOST-variable.patch
+       default
+}