[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2023-09-17 Thread Arthur Zamarin
commit: 394835bf280799cb8905ebc0367d49b331c25745
Author: Mario Haustein  hrz  tu-chemnitz  de>
AuthorDate: Sat Sep 16 09:37:24 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Sep 17 14:55:10 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=394835bf

dev-util/unicorn: enable py3.12

Signed-off-by: Mario Haustein  hrz.tu-chemnitz.de>
Closes: https://github.com/gentoo/gentoo/pull/32830
Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-util/unicorn/unicorn-2.0.1.ebuild | 2 +-
 dev-util/unicorn/unicorn-.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-util/unicorn/unicorn-2.0.1.ebuild 
b/dev-util/unicorn/unicorn-2.0.1.ebuild
index 9bc9ba2122c4..0cde028e715f 100644
--- a/dev-util/unicorn/unicorn-2.0.1.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.1.ebuild
@@ -7,7 +7,7 @@ MY_PV=${PV/_/-}
 
 DISTUTILS_USE_PEP517=setuptools
 DISTUTILS_OPTIONAL=1
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..12} )
 inherit cmake distutils-r1
 
 DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator 
framework"

diff --git a/dev-util/unicorn/unicorn-.ebuild 
b/dev-util/unicorn/unicorn-.ebuild
index 7fa461d2c141..d0e7f926ec3b 100644
--- a/dev-util/unicorn/unicorn-.ebuild
+++ b/dev-util/unicorn/unicorn-.ebuild
@@ -7,7 +7,7 @@ MY_PV=${PV/_/-}
 
 DISTUTILS_USE_PEP517=setuptools
 DISTUTILS_OPTIONAL=1
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..12} )
 inherit cmake distutils-r1
 
 DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator 
framework"



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2023-09-17 Thread Arthur Zamarin
commit: 573cbc7d0e3cd6ef2b2d88da8bfe99e7c96e0977
Author: Mario Haustein  hrz  tu-chemnitz  de>
AuthorDate: Sat Sep 16 08:55:47 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Sep 17 14:55:09 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=573cbc7d

dev-util/unicorn: sync live

Signed-off-by: Mario Haustein  hrz.tu-chemnitz.de>
Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-util/unicorn/unicorn-.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/unicorn/unicorn-.ebuild 
b/dev-util/unicorn/unicorn-.ebuild
index 0252a0fdcf05..7fa461d2c141 100644
--- a/dev-util/unicorn/unicorn-.ebuild
+++ b/dev-util/unicorn/unicorn-.ebuild
@@ -18,7 +18,7 @@ if [[ ${PV} == * ]]; then
EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
 else

SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.gh.tar.gz"
-   KEYWORDS="~amd64 ~ppc ~riscv ~x86"
+   KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
 fi
 
 S="${WORKDIR}/${PN}-${MY_PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2023-04-14 Thread Sam James
commit: 87d326bec13697fc0bea3b5b5824821c56fc70b9
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr 14 19:37:22 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Apr 14 19:37:22 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87d326be

dev-util/unicorn: Keyword 2.0.1 ppc64, #888513

Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/unicorn-2.0.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/unicorn/unicorn-2.0.1.ebuild 
b/dev-util/unicorn/unicorn-2.0.1.ebuild
index b19f0a48f0ca..9bc9ba2122c4 100644
--- a/dev-util/unicorn/unicorn-2.0.1.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.1.ebuild
@@ -18,7 +18,7 @@ if [[ ${PV} == * ]]; then
EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
 else

SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.gh.tar.gz"
-   KEYWORDS="amd64 ~arm ~arm64 ~ppc ~riscv x86"
+   KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv x86"
 fi
 
 S="${WORKDIR}/${PN}-${MY_PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2023-04-13 Thread Sam James
commit: 835f35c5cae4af7deaae0c4b99e9213106fa323a
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr 14 04:02:56 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Apr 14 04:02:56 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=835f35c5

dev-util/unicorn: Keyword 2.0.1 arm64, #888513

Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/unicorn-2.0.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/unicorn/unicorn-2.0.1.ebuild 
b/dev-util/unicorn/unicorn-2.0.1.ebuild
index 573e188b7e70..b19f0a48f0ca 100644
--- a/dev-util/unicorn/unicorn-2.0.1.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.1.ebuild
@@ -18,7 +18,7 @@ if [[ ${PV} == * ]]; then
EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
 else

SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.gh.tar.gz"
-   KEYWORDS="amd64 ~arm ~ppc ~riscv x86"
+   KEYWORDS="amd64 ~arm ~arm64 ~ppc ~riscv x86"
 fi
 
 S="${WORKDIR}/${PN}-${MY_PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2023-02-24 Thread Arthur Zamarin
commit: 48f607727ed6b07ead806770aa0c80f4616663a2
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Feb 25 05:46:54 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Feb 25 05:46:54 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48f60772

dev-util/unicorn: Keyword 2.0.1 arm, #888513

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-util/unicorn/unicorn-2.0.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/unicorn/unicorn-2.0.1.ebuild 
b/dev-util/unicorn/unicorn-2.0.1.ebuild
index 81e4e2c566a2..573e188b7e70 100644
--- a/dev-util/unicorn/unicorn-2.0.1.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.1.ebuild
@@ -18,7 +18,7 @@ if [[ ${PV} == * ]]; then
EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
 else

SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.gh.tar.gz"
-   KEYWORDS="amd64 ~ppc ~riscv x86"
+   KEYWORDS="amd64 ~arm ~ppc ~riscv x86"
 fi
 
 S="${WORKDIR}/${PN}-${MY_PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2023-02-10 Thread Yixun Lan
commit: 44c51bf89a135d047806021c9bfcffab22f8fc18
Author: Yixun Lan  gentoo  org>
AuthorDate: Fri Feb 10 08:43:14 2023 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Fri Feb 10 08:43:14 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44c51bf8

dev-util/unicorn: forward keywords to live ebuild

Signed-off-by: Yixun Lan  gentoo.org>

 dev-util/unicorn/unicorn-.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/unicorn/unicorn-.ebuild 
b/dev-util/unicorn/unicorn-.ebuild
index b05d7ee97e49..0252a0fdcf05 100644
--- a/dev-util/unicorn/unicorn-.ebuild
+++ b/dev-util/unicorn/unicorn-.ebuild
@@ -18,7 +18,7 @@ if [[ ${PV} == * ]]; then
EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
 else

SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.gh.tar.gz"
-   KEYWORDS="~amd64 ~x86"
+   KEYWORDS="~amd64 ~ppc ~riscv ~x86"
 fi
 
 S="${WORKDIR}/${PN}-${MY_PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2023-02-10 Thread Yixun Lan
commit: 8b24a62478b1dab4a64094c42a8fa54cb258d353
Author: Yixun Lan  gentoo  org>
AuthorDate: Fri Feb 10 08:39:27 2023 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Fri Feb 10 08:39:27 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b24a624

dev-util/unicorn: Keyword 2.0.1 riscv, #892824

Signed-off-by: Yixun Lan  gentoo.org>

 dev-util/unicorn/unicorn-2.0.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/unicorn/unicorn-2.0.1.ebuild 
b/dev-util/unicorn/unicorn-2.0.1.ebuild
index 09d6b34fc026..81e4e2c566a2 100644
--- a/dev-util/unicorn/unicorn-2.0.1.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.1.ebuild
@@ -18,7 +18,7 @@ if [[ ${PV} == * ]]; then
EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
 else

SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.gh.tar.gz"
-   KEYWORDS="amd64 ~ppc x86"
+   KEYWORDS="amd64 ~ppc ~riscv x86"
 fi
 
 S="${WORKDIR}/${PN}-${MY_PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2023-01-14 Thread Arthur Zamarin
commit: 81105f6de6cebd32b1169753b8e824ef6b0dedb8
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Jan 14 09:59:54 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Jan 14 09:59:54 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81105f6d

dev-util/unicorn: Keyword 2.0.1 ppc, #888513

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-util/unicorn/unicorn-2.0.1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-util/unicorn/unicorn-2.0.1.ebuild 
b/dev-util/unicorn/unicorn-2.0.1.ebuild
index b50065f271bc..229ae40afa1a 100644
--- a/dev-util/unicorn/unicorn-2.0.1.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -18,7 +18,7 @@ if [[ ${PV} == * ]]; then
EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
 else

SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.gh.tar.gz"
-   KEYWORDS="amd64 x86"
+   KEYWORDS="amd64 ~ppc x86"
 fi
 
 S="${WORKDIR}/${PN}-${MY_PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/files/, dev-util/unicorn/

2023-01-04 Thread Sam James
commit: c1ac9e2da7946cb98e649a8f56c9ca9bc69dd925
Author: Mario Haustein  hrz  tu-chemnitz  de>
AuthorDate: Wed Jan  4 20:18:51 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Jan  5 05:19:57 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1ac9e2d

dev-util/unicorn: drop 2.0.0

Signed-off-by: Mario Haustein  hrz.tu-chemnitz.de>
Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/Manifest  |  1 -
 dev-util/unicorn/files/unicorn-2.0.0-lto.patch | 62 --
 dev-util/unicorn/unicorn-2.0.0.ebuild  | 87 --
 3 files changed, 150 deletions(-)

diff --git a/dev-util/unicorn/Manifest b/dev-util/unicorn/Manifest
index 29cc0380f692..7fc46933a0ac 100644
--- a/dev-util/unicorn/Manifest
+++ b/dev-util/unicorn/Manifest
@@ -1,2 +1 @@
-DIST unicorn-2.0.0.gh.tar.gz 4065595 BLAKE2B 
c16252a8a4af77c1c76c80101c30b92536d1677f93898acf4711e910dbbe1072715b83b4564c015592465eb51d00333e55849c3e06b07726ea3522286d8429bf
 SHA512 
3996f19755ccdaac6e92a7455160e1c90a592ffb789d55ddc9d1bdcf1e68e8a6150bcfa1025a322780c04878be8de28e0ad5fdd79a7b25887ed2793b769f6789
 DIST unicorn-2.0.1.gh.tar.gz 4070004 BLAKE2B 
4ab8f92367e7df5762d29ed58dfff524f59053e28548b170b982d16988eea16df46851d2ea559d8beabb4f1315e5ee627f9ded755a4f3b1cfd6d863a50c633b6
 SHA512 
4249d33d38614ea1ca51e38c7838cb276306100aa44c65ad1b3e39304e4b856ac643a9c6f9d13678fc07bea58989a08b64653d17afe9e62bcef2936ba63e1b1f

diff --git a/dev-util/unicorn/files/unicorn-2.0.0-lto.patch 
b/dev-util/unicorn/files/unicorn-2.0.0-lto.patch
deleted file mode 100644
index f6bcda2a18f8..
--- a/dev-util/unicorn/files/unicorn-2.0.0-lto.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-commit 6d283cf464b82a86f7930e39c91c92ad3cefb58f
-Author: mio 
-Date:   Sat Jul 23 20:39:01 2022 +0800
-
-Fix ppc symbols clash
-
-Bug: https://bugs.gentoo.org/872998
-Bug: https://github.com/unicorn-engine/unicorn/issues/1662
-
-diff --git a/qemu/ppc.h b/qemu/ppc.h
-index 7022629e..eff4b69d 100644
 a/qemu/ppc.h
-+++ b/qemu/ppc.h
-@@ -1708,4 +1708,12 @@
- #define ppc_dcr_init ppc_dcr_init_ppc
- #define ppc_cpu_pir ppc_cpu_pir_ppc
- #define ppc_irq_reset ppc_irq_reset_ppc
-+#define store_booke_tsr store_booke_tsr_ppc
-+#define get_pteg_offset32 get_pteg_offset32_ppc
-+#define ppc_booke_timers_init ppc_booke_timers_init_ppc
-+#define ppc_hash32_handle_mmu_fault ppc_hash32_handle_mmu_fault_ppc
-+#define gen_helper_store_booke_tsr gen_helper_store_booke_tsr_ppc
-+#define gen_helper_store_booke_tcr gen_helper_store_booke_tcr_ppc
-+#define store_booke_tcr store_booke_tcr_ppc
-+#define ppc_hash32_get_phys_page_debug ppc_hash32_get_phys_page_debug_ppc
- #endif
-diff --git a/qemu/ppc64.h b/qemu/ppc64.h
-index 992caf87..c08ee2d6 100644
 a/qemu/ppc64.h
-+++ b/qemu/ppc64.h
-@@ -1708,4 +1708,12 @@
- #define ppc_dcr_init ppc_dcr_init_ppc64
- #define ppc_cpu_pir ppc_cpu_pir_ppc64
- #define ppc_irq_reset ppc_irq_reset_ppc64
-+#define store_booke_tsr store_booke_tsr_ppc64
-+#define get_pteg_offset32 get_pteg_offset32_ppc64
-+#define ppc_booke_timers_init ppc_booke_timers_init_ppc64
-+#define ppc_hash32_handle_mmu_fault ppc_hash32_handle_mmu_fault_ppc64
-+#define gen_helper_store_booke_tsr gen_helper_store_booke_tsr_ppc64
-+#define gen_helper_store_booke_tcr gen_helper_store_booke_tcr_ppc64
-+#define store_booke_tcr store_booke_tcr_ppc64
-+#define ppc_hash32_get_phys_page_debug ppc_hash32_get_phys_page_debug_ppc64
- #endif
-diff --git a/symbols.sh b/symbols.sh
-index 2968b959..0d426c00 100755
 a/symbols.sh
-+++ b/symbols.sh
-@@ -6264,6 +6264,14 @@ ppc_dcr_register \
- ppc_dcr_init \
- ppc_cpu_pir \
- ppc_irq_reset \
-+store_booke_tsr \
-+get_pteg_offset32 \
-+ppc_booke_timers_init \
-+ppc_hash32_handle_mmu_fault \
-+gen_helper_store_booke_tsr \
-+gen_helper_store_booke_tcr \
-+store_booke_tcr \
-+ppc_hash32_get_phys_page_debug \
- "
- 
- ppc64_SYMBOLS=${ppc_SYMBOLS}

diff --git a/dev-util/unicorn/unicorn-2.0.0.ebuild 
b/dev-util/unicorn/unicorn-2.0.0.ebuild
deleted file mode 100644
index 76a25d55547e..
--- a/dev-util/unicorn/unicorn-2.0.0.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-MY_PV=${PV/_/-}
-
-DISTUTILS_USE_PEP517=setuptools
-DISTUTILS_OPTIONAL=1
-PYTHON_COMPAT=( python3_{8..11} )
-inherit cmake distutils-r1
-
-DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator 
framework"
-HOMEPAGE="https://www.unicorn-engine.org;
-
-if [[ ${PV} == * ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
-else
-   
SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.gh.tar.gz"
-   KEYWORDS="amd64 x86"
-fi
-
-S="${WORKDIR}/${PN}-${MY_PV}"
-
-LICENSE="BSD-2 GPL-2 LGPL-2.1"
-SLOT="0/2"
-IUSE="python static-libs"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-DEPEND="${PYTHON_DEPS}
-

[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-12-26 Thread Sam James
commit: 3affc0b76e6967b7045b3c8cac316205f0c1c062
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec 27 07:29:02 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Dec 27 07:29:02 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3affc0b7

dev-util/unicorn: Stabilize 2.0.1 x86, #888531

Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/unicorn-2.0.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/unicorn/unicorn-2.0.1.ebuild 
b/dev-util/unicorn/unicorn-2.0.1.ebuild
index 34777b117a28..726086d0f242 100644
--- a/dev-util/unicorn/unicorn-2.0.1.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.1.ebuild
@@ -18,7 +18,7 @@ if [[ ${PV} == * ]]; then
EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
 else

SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.gh.tar.gz"
-   KEYWORDS="~amd64 ~x86"
+   KEYWORDS="~amd64 x86"
 fi
 
 S="${WORKDIR}/${PN}-${MY_PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-12-26 Thread Sam James
commit: 38bdc3dd033858b1b1aae754eadf9fa6286776be
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec 27 07:29:03 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Dec 27 07:29:03 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38bdc3dd

dev-util/unicorn: Stabilize 2.0.1 amd64, #888531

Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/unicorn-2.0.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/unicorn/unicorn-2.0.1.ebuild 
b/dev-util/unicorn/unicorn-2.0.1.ebuild
index 726086d0f242..b50065f271bc 100644
--- a/dev-util/unicorn/unicorn-2.0.1.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.1.ebuild
@@ -18,7 +18,7 @@ if [[ ${PV} == * ]]; then
EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
 else

SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.gh.tar.gz"
-   KEYWORDS="~amd64 x86"
+   KEYWORDS="amd64 x86"
 fi
 
 S="${WORKDIR}/${PN}-${MY_PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-11-05 Thread Sam James
commit: 074dee347cb36317b2dc90e3f1de16bb82f846b2
Author: Mario Haustein  hrz  tu-chemnitz  de>
AuthorDate: Tue Nov  1 16:41:36 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Nov  6 05:43:31 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=074dee34

dev-util/unicorn: add 2.0.1

Signed-off-by: Mario Haustein  hrz.tu-chemnitz.de>
Closes: https://github.com/gentoo/gentoo/pull/28083
Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/Manifest |  1 +
 dev-util/unicorn/unicorn-2.0.1.ebuild | 83 +++
 2 files changed, 84 insertions(+)

diff --git a/dev-util/unicorn/Manifest b/dev-util/unicorn/Manifest
index bd256c126faa..29cc0380f692 100644
--- a/dev-util/unicorn/Manifest
+++ b/dev-util/unicorn/Manifest
@@ -1 +1,2 @@
 DIST unicorn-2.0.0.gh.tar.gz 4065595 BLAKE2B 
c16252a8a4af77c1c76c80101c30b92536d1677f93898acf4711e910dbbe1072715b83b4564c015592465eb51d00333e55849c3e06b07726ea3522286d8429bf
 SHA512 
3996f19755ccdaac6e92a7455160e1c90a592ffb789d55ddc9d1bdcf1e68e8a6150bcfa1025a322780c04878be8de28e0ad5fdd79a7b25887ed2793b769f6789
+DIST unicorn-2.0.1.gh.tar.gz 4070004 BLAKE2B 
4ab8f92367e7df5762d29ed58dfff524f59053e28548b170b982d16988eea16df46851d2ea559d8beabb4f1315e5ee627f9ded755a4f3b1cfd6d863a50c633b6
 SHA512 
4249d33d38614ea1ca51e38c7838cb276306100aa44c65ad1b3e39304e4b856ac643a9c6f9d13678fc07bea58989a08b64653d17afe9e62bcef2936ba63e1b1f

diff --git a/dev-util/unicorn/unicorn-2.0.1.ebuild 
b/dev-util/unicorn/unicorn-2.0.1.ebuild
new file mode 100644
index ..34777b117a28
--- /dev/null
+++ b/dev-util/unicorn/unicorn-2.0.1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PV=${PV/_/-}
+
+DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_OPTIONAL=1
+PYTHON_COMPAT=( python3_{8..11} )
+inherit cmake distutils-r1
+
+DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator 
framework"
+HOMEPAGE="https://www.unicorn-engine.org;
+
+if [[ ${PV} == * ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
+else
+   
SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.gh.tar.gz"
+   KEYWORDS="~amd64 ~x86"
+fi
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="BSD-2 GPL-2 LGPL-2.1"
+SLOT="0/2"
+IUSE="python static-libs"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+DEPEND="${PYTHON_DEPS}
+   dev-libs/glib:2"
+RDEPEND="python? ( ${PYTHON_DEPS} )"
+BDEPEND="virtual/pkgconfig
+   python? ( ${DISTUTILS_DEPS} )"
+
+UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc s390x tricore"
+
+wrap_python() {
+   if use python; then
+   # src_prepare
+   # Do not compile C extensions
+   export LIBUNICORN_PATH=1
+
+   pushd bindings/python >/dev/null || die
+   distutils-r1_${1} "$@"
+   popd >/dev/null || die
+   fi
+}
+
+src_prepare() {
+   # Build from sources
+   rm -r bindings/python/prebuilt || die "failed to remove prebuilt files"
+
+   cmake_src_prepare
+   wrap_python ${FUNCNAME}
+}
+
+src_configure(){
+   local mycmakeargs=(
+   -DUNICORN_ARCH="${UNICORN_TARGETS// /;}"
+   )
+
+   cmake_src_configure
+
+   wrap_python ${FUNCNAME}
+}
+
+src_compile() {
+   cmake_src_compile
+
+   wrap_python ${FUNCNAME}
+}
+
+src_install() {
+   cmake_src_install
+
+   if ! use static-libs; then
+   find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete 
|| die
+   fi
+
+   wrap_python ${FUNCNAME}
+}



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/files/, dev-util/unicorn/

2022-09-30 Thread Sam James
commit: 57caf57304f4f4568c86886b0498b6707ea747f1
Author: Mario Haustein  hrz  tu-chemnitz  de>
AuthorDate: Mon Sep 26 21:57:35 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Oct  1 03:15:34 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57caf573

dev-util/unicorn: fix lto type mismatch

Closes: https://bugs.gentoo.org/858506
Signed-off-by: Mario Haustein  hrz.tu-chemnitz.de>
Closes: https://github.com/gentoo/gentoo/pull/27484
Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/files/unicorn-2.0.0-lto.patch | 62 ++
 dev-util/unicorn/unicorn-2.0.0.ebuild  |  4 ++
 2 files changed, 66 insertions(+)

diff --git a/dev-util/unicorn/files/unicorn-2.0.0-lto.patch 
b/dev-util/unicorn/files/unicorn-2.0.0-lto.patch
new file mode 100644
index ..f6bcda2a18f8
--- /dev/null
+++ b/dev-util/unicorn/files/unicorn-2.0.0-lto.patch
@@ -0,0 +1,62 @@
+commit 6d283cf464b82a86f7930e39c91c92ad3cefb58f
+Author: mio 
+Date:   Sat Jul 23 20:39:01 2022 +0800
+
+Fix ppc symbols clash
+
+Bug: https://bugs.gentoo.org/872998
+Bug: https://github.com/unicorn-engine/unicorn/issues/1662
+
+diff --git a/qemu/ppc.h b/qemu/ppc.h
+index 7022629e..eff4b69d 100644
+--- a/qemu/ppc.h
 b/qemu/ppc.h
+@@ -1708,4 +1708,12 @@
+ #define ppc_dcr_init ppc_dcr_init_ppc
+ #define ppc_cpu_pir ppc_cpu_pir_ppc
+ #define ppc_irq_reset ppc_irq_reset_ppc
++#define store_booke_tsr store_booke_tsr_ppc
++#define get_pteg_offset32 get_pteg_offset32_ppc
++#define ppc_booke_timers_init ppc_booke_timers_init_ppc
++#define ppc_hash32_handle_mmu_fault ppc_hash32_handle_mmu_fault_ppc
++#define gen_helper_store_booke_tsr gen_helper_store_booke_tsr_ppc
++#define gen_helper_store_booke_tcr gen_helper_store_booke_tcr_ppc
++#define store_booke_tcr store_booke_tcr_ppc
++#define ppc_hash32_get_phys_page_debug ppc_hash32_get_phys_page_debug_ppc
+ #endif
+diff --git a/qemu/ppc64.h b/qemu/ppc64.h
+index 992caf87..c08ee2d6 100644
+--- a/qemu/ppc64.h
 b/qemu/ppc64.h
+@@ -1708,4 +1708,12 @@
+ #define ppc_dcr_init ppc_dcr_init_ppc64
+ #define ppc_cpu_pir ppc_cpu_pir_ppc64
+ #define ppc_irq_reset ppc_irq_reset_ppc64
++#define store_booke_tsr store_booke_tsr_ppc64
++#define get_pteg_offset32 get_pteg_offset32_ppc64
++#define ppc_booke_timers_init ppc_booke_timers_init_ppc64
++#define ppc_hash32_handle_mmu_fault ppc_hash32_handle_mmu_fault_ppc64
++#define gen_helper_store_booke_tsr gen_helper_store_booke_tsr_ppc64
++#define gen_helper_store_booke_tcr gen_helper_store_booke_tcr_ppc64
++#define store_booke_tcr store_booke_tcr_ppc64
++#define ppc_hash32_get_phys_page_debug ppc_hash32_get_phys_page_debug_ppc64
+ #endif
+diff --git a/symbols.sh b/symbols.sh
+index 2968b959..0d426c00 100755
+--- a/symbols.sh
 b/symbols.sh
+@@ -6264,6 +6264,14 @@ ppc_dcr_register \
+ ppc_dcr_init \
+ ppc_cpu_pir \
+ ppc_irq_reset \
++store_booke_tsr \
++get_pteg_offset32 \
++ppc_booke_timers_init \
++ppc_hash32_handle_mmu_fault \
++gen_helper_store_booke_tsr \
++gen_helper_store_booke_tcr \
++store_booke_tcr \
++ppc_hash32_get_phys_page_debug \
+ "
+ 
+ ppc64_SYMBOLS=${ppc_SYMBOLS}

diff --git a/dev-util/unicorn/unicorn-2.0.0.ebuild 
b/dev-util/unicorn/unicorn-2.0.0.ebuild
index b50065f271bc..76a25d55547e 100644
--- a/dev-util/unicorn/unicorn-2.0.0.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.0.ebuild
@@ -34,6 +34,10 @@ RDEPEND="python? ( ${PYTHON_DEPS} )"
 BDEPEND="virtual/pkgconfig
python? ( ${DISTUTILS_DEPS} )"
 
+PATCHES=(
+   "${FILESDIR}/${P}-lto.patch"
+)
+
 UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc s390x tricore"
 
 wrap_python() {



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-08-04 Thread Sam James
commit: aa522856a7d27338104858f244770afb67748c55
Author: Sam James  gentoo  org>
AuthorDate: Thu Aug  4 22:52:21 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Aug  4 22:52:21 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa522856

dev-util/unicorn: Stabilize 2.0.0 x86, #863476

Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/unicorn-2.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/unicorn/unicorn-2.0.0.ebuild 
b/dev-util/unicorn/unicorn-2.0.0.ebuild
index 18701c9161ee..b50065f271bc 100644
--- a/dev-util/unicorn/unicorn-2.0.0.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.0.ebuild
@@ -18,7 +18,7 @@ if [[ ${PV} == * ]]; then
EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
 else

SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.gh.tar.gz"
-   KEYWORDS="amd64 ~x86"
+   KEYWORDS="amd64 x86"
 fi
 
 S="${WORKDIR}/${PN}-${MY_PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-08-04 Thread Sam James
commit: 2734737cc9d2d49e157509a13808c53f07d36bf5
Author: Sam James  gentoo  org>
AuthorDate: Thu Aug  4 22:51:37 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Aug  4 22:51:37 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2734737c

dev-util/unicorn: Stabilize 2.0.0 amd64, #863476

Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/unicorn-2.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/unicorn/unicorn-2.0.0.ebuild 
b/dev-util/unicorn/unicorn-2.0.0.ebuild
index 34777b117a28..18701c9161ee 100644
--- a/dev-util/unicorn/unicorn-2.0.0.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.0.ebuild
@@ -18,7 +18,7 @@ if [[ ${PV} == * ]]; then
EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
 else

SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.gh.tar.gz"
-   KEYWORDS="~amd64 ~x86"
+   KEYWORDS="amd64 ~x86"
 fi
 
 S="${WORKDIR}/${PN}-${MY_PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-07-25 Thread Sam James
commit: 3c90cf386010fc237ed7688dab2833e5cf72a600
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 26 04:23:33 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 26 04:25:24 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c90cf38

dev-util/unicorn: drop 2.0.0_rc7

Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/Manifest |  1 -
 dev-util/unicorn/unicorn-2.0.0_rc7.ebuild | 80 ---
 2 files changed, 81 deletions(-)

diff --git a/dev-util/unicorn/Manifest b/dev-util/unicorn/Manifest
index 0f0d9b61f012..bd256c126faa 100644
--- a/dev-util/unicorn/Manifest
+++ b/dev-util/unicorn/Manifest
@@ -1,2 +1 @@
 DIST unicorn-2.0.0.gh.tar.gz 4065595 BLAKE2B 
c16252a8a4af77c1c76c80101c30b92536d1677f93898acf4711e910dbbe1072715b83b4564c015592465eb51d00333e55849c3e06b07726ea3522286d8429bf
 SHA512 
3996f19755ccdaac6e92a7455160e1c90a592ffb789d55ddc9d1bdcf1e68e8a6150bcfa1025a322780c04878be8de28e0ad5fdd79a7b25887ed2793b769f6789
-DIST unicorn-2.0.0_rc7.tar.gz 3984228 BLAKE2B 
a3e6a0d6084780b3a47837a6c8f9df9ec0eb176ff041881fbf2dc879eee11c70796b4f8e4ba784f553e383b8537abe9a559e627afc2fcaf712e83bfc5daaf11c
 SHA512 
ae7e2b35032a8cff516f27edc58ab41708c2acd05b8feebb127501d0bc990a6722ba8439876ea147a2025372500d5df4bd7db86fddf215be63d070218a85a27e

diff --git a/dev-util/unicorn/unicorn-2.0.0_rc7.ebuild 
b/dev-util/unicorn/unicorn-2.0.0_rc7.ebuild
deleted file mode 100644
index 8b343753397d..
--- a/dev-util/unicorn/unicorn-2.0.0_rc7.ebuild
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-MY_PV=${PV/_/-}
-
-DISTUTILS_USE_PEP517=setuptools
-DISTUTILS_OPTIONAL=1
-PYTHON_COMPAT=( python3_{8..10} )
-inherit cmake distutils-r1
-
-DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator 
framework"
-HOMEPAGE="https://www.unicorn-engine.org;
-
-if [[ ${PV} == * ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
-else
-   
SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~x86"
-fi
-
-S="${WORKDIR}/${PN}-${MY_PV}"
-
-LICENSE="BSD-2 GPL-2 LGPL-2.1"
-SLOT="0/2"
-IUSE="python static-libs"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-DEPEND="${PYTHON_DEPS}
-   dev-libs/glib:2"
-RDEPEND="python? ( ${PYTHON_DEPS} )"
-BDEPEND="virtual/pkgconfig
-   python? ( ${DISTUTILS_DEPS} )"
-
-UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc s390x"
-
-wrap_python() {
-   if use python; then
-   # src_prepare
-   # Do not compile C extensions
-   export LIBUNICORN_PATH=1
-
-   pushd bindings/python >/dev/null || die
-   distutils-r1_${1} "$@"
-   popd >/dev/null || die
-   fi
-}
-
-src_prepare() {
-   # Build from sources
-   rm -r bindings/python/prebuilt || die "failed to remove prebuilt files"
-
-   cmake_src_prepare
-   wrap_python ${FUNCNAME}
-}
-
-src_configure(){
-   local mycmakeargs=(
-   -DBUILD_SHARED_LIBS=$(usex !static-libs)
-   -DUNICORN_ARCH="${UNICORN_TARGETS// /;}"
-   )
-
-   cmake_src_configure
-
-   wrap_python ${FUNCNAME}
-}
-
-src_compile() {
-   cmake_src_compile
-
-   wrap_python ${FUNCNAME}
-}
-
-src_install() {
-   cmake_src_install
-
-   wrap_python ${FUNCNAME}
-}



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-07-09 Thread Sam James
commit: 590eb4267dd753b6448f750d487211c15c32b648
Author: Sam James  gentoo  org>
AuthorDate: Sat Jul  9 10:16:28 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jul  9 10:16:28 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=590eb426

dev-util/unicorn: drop redundant BUILD_SHARED_LIBS

cmake.eclass does this for us

Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/unicorn-2.0.0.ebuild | 1 -
 dev-util/unicorn/unicorn-.ebuild  | 1 -
 2 files changed, 2 deletions(-)

diff --git a/dev-util/unicorn/unicorn-2.0.0.ebuild 
b/dev-util/unicorn/unicorn-2.0.0.ebuild
index ca4d4202c790..34777b117a28 100644
--- a/dev-util/unicorn/unicorn-2.0.0.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.0.ebuild
@@ -58,7 +58,6 @@ src_prepare() {
 
 src_configure(){
local mycmakeargs=(
-   -DBUILD_SHARED_LIBS=yes
-DUNICORN_ARCH="${UNICORN_TARGETS// /;}"
)
 

diff --git a/dev-util/unicorn/unicorn-.ebuild 
b/dev-util/unicorn/unicorn-.ebuild
index ca4d4202c790..34777b117a28 100644
--- a/dev-util/unicorn/unicorn-.ebuild
+++ b/dev-util/unicorn/unicorn-.ebuild
@@ -58,7 +58,6 @@ src_prepare() {
 
 src_configure(){
local mycmakeargs=(
-   -DBUILD_SHARED_LIBS=yes
-DUNICORN_ARCH="${UNICORN_TARGETS// /;}"
)
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-07-09 Thread Sam James
commit: 67dad0f953041cebde55bf5d4d05bf40b6b2aa2e
Author: Sam James  gentoo  org>
AuthorDate: Sat Jul  9 10:15:54 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jul  9 10:15:54 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67dad0f9

dev-util/unicorn: fix PythonGHDistfileSuffix

Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/Manifest | 2 +-
 dev-util/unicorn/unicorn-2.0.0.ebuild | 2 +-
 dev-util/unicorn/unicorn-.ebuild  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-util/unicorn/Manifest b/dev-util/unicorn/Manifest
index 6bb09c630fce..0f0d9b61f012 100644
--- a/dev-util/unicorn/Manifest
+++ b/dev-util/unicorn/Manifest
@@ -1,2 +1,2 @@
-DIST unicorn-2.0.0.tar.gz 4065595 BLAKE2B 
c16252a8a4af77c1c76c80101c30b92536d1677f93898acf4711e910dbbe1072715b83b4564c015592465eb51d00333e55849c3e06b07726ea3522286d8429bf
 SHA512 
3996f19755ccdaac6e92a7455160e1c90a592ffb789d55ddc9d1bdcf1e68e8a6150bcfa1025a322780c04878be8de28e0ad5fdd79a7b25887ed2793b769f6789
+DIST unicorn-2.0.0.gh.tar.gz 4065595 BLAKE2B 
c16252a8a4af77c1c76c80101c30b92536d1677f93898acf4711e910dbbe1072715b83b4564c015592465eb51d00333e55849c3e06b07726ea3522286d8429bf
 SHA512 
3996f19755ccdaac6e92a7455160e1c90a592ffb789d55ddc9d1bdcf1e68e8a6150bcfa1025a322780c04878be8de28e0ad5fdd79a7b25887ed2793b769f6789
 DIST unicorn-2.0.0_rc7.tar.gz 3984228 BLAKE2B 
a3e6a0d6084780b3a47837a6c8f9df9ec0eb176ff041881fbf2dc879eee11c70796b4f8e4ba784f553e383b8537abe9a559e627afc2fcaf712e83bfc5daaf11c
 SHA512 
ae7e2b35032a8cff516f27edc58ab41708c2acd05b8feebb127501d0bc990a6722ba8439876ea147a2025372500d5df4bd7db86fddf215be63d070218a85a27e

diff --git a/dev-util/unicorn/unicorn-2.0.0.ebuild 
b/dev-util/unicorn/unicorn-2.0.0.ebuild
index 1f771828950f..ca4d4202c790 100644
--- a/dev-util/unicorn/unicorn-2.0.0.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.0.ebuild
@@ -17,7 +17,7 @@ if [[ ${PV} == * ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
 else
-   
SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.tar.gz"
+   
SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.gh.tar.gz"
KEYWORDS="~amd64 ~x86"
 fi
 

diff --git a/dev-util/unicorn/unicorn-.ebuild 
b/dev-util/unicorn/unicorn-.ebuild
index 1f771828950f..ca4d4202c790 100644
--- a/dev-util/unicorn/unicorn-.ebuild
+++ b/dev-util/unicorn/unicorn-.ebuild
@@ -17,7 +17,7 @@ if [[ ${PV} == * ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
 else
-   
SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.tar.gz"
+   
SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.gh.tar.gz"
KEYWORDS="~amd64 ~x86"
 fi
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-07-09 Thread Sam James
commit: d12375dc8fab5e66fce4132e8d797e6ba1a73c28
Author: Mario Haustein  hrz  tu-chemnitz  de>
AuthorDate: Thu Jul  7 18:18:42 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jul  9 10:14:32 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d12375dc

dev-util/unicorn: version bump 2.0.0

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Mario Haustein  hrz.tu-chemnitz.de>
Closes: https://github.com/gentoo/gentoo/pull/26270
Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/Manifest|  1 +
 .../unicorn/{unicorn-.ebuild => unicorn-2.0.0.ebuild}| 12 
 dev-util/unicorn/unicorn-.ebuild | 12 
 3 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/dev-util/unicorn/Manifest b/dev-util/unicorn/Manifest
index b79c53ef4965..6bb09c630fce 100644
--- a/dev-util/unicorn/Manifest
+++ b/dev-util/unicorn/Manifest
@@ -1 +1,2 @@
+DIST unicorn-2.0.0.tar.gz 4065595 BLAKE2B 
c16252a8a4af77c1c76c80101c30b92536d1677f93898acf4711e910dbbe1072715b83b4564c015592465eb51d00333e55849c3e06b07726ea3522286d8429bf
 SHA512 
3996f19755ccdaac6e92a7455160e1c90a592ffb789d55ddc9d1bdcf1e68e8a6150bcfa1025a322780c04878be8de28e0ad5fdd79a7b25887ed2793b769f6789
 DIST unicorn-2.0.0_rc7.tar.gz 3984228 BLAKE2B 
a3e6a0d6084780b3a47837a6c8f9df9ec0eb176ff041881fbf2dc879eee11c70796b4f8e4ba784f553e383b8537abe9a559e627afc2fcaf712e83bfc5daaf11c
 SHA512 
ae7e2b35032a8cff516f27edc58ab41708c2acd05b8feebb127501d0bc990a6722ba8439876ea147a2025372500d5df4bd7db86fddf215be63d070218a85a27e

diff --git a/dev-util/unicorn/unicorn-.ebuild 
b/dev-util/unicorn/unicorn-2.0.0.ebuild
similarity index 88%
copy from dev-util/unicorn/unicorn-.ebuild
copy to dev-util/unicorn/unicorn-2.0.0.ebuild
index 01c1ff6ba6bf..1f771828950f 100644
--- a/dev-util/unicorn/unicorn-.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.0.ebuild
@@ -7,7 +7,7 @@ MY_PV=${PV/_/-}
 
 DISTUTILS_USE_PEP517=setuptools
 DISTUTILS_OPTIONAL=1
-PYTHON_COMPAT=( python3_{9..10} )
+PYTHON_COMPAT=( python3_{8..11} )
 inherit cmake distutils-r1
 
 DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator 
framework"
@@ -34,12 +34,12 @@ RDEPEND="python? ( ${PYTHON_DEPS} )"
 BDEPEND="virtual/pkgconfig
python? ( ${DISTUTILS_DEPS} )"
 
-UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc s390x"
+UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc s390x tricore"
 
 wrap_python() {
if use python; then
# src_prepare
-   # do not compile C extensions
+   # Do not compile C extensions
export LIBUNICORN_PATH=1
 
pushd bindings/python >/dev/null || die
@@ -58,7 +58,7 @@ src_prepare() {
 
 src_configure(){
local mycmakeargs=(
-   -DBUILD_SHARED_LIBS=$(usex !static-libs)
+   -DBUILD_SHARED_LIBS=yes
-DUNICORN_ARCH="${UNICORN_TARGETS// /;}"
)
 
@@ -76,5 +76,9 @@ src_compile() {
 src_install() {
cmake_src_install
 
+   if ! use static-libs; then
+   find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete 
|| die
+   fi
+
wrap_python ${FUNCNAME}
 }

diff --git a/dev-util/unicorn/unicorn-.ebuild 
b/dev-util/unicorn/unicorn-.ebuild
index 01c1ff6ba6bf..1f771828950f 100644
--- a/dev-util/unicorn/unicorn-.ebuild
+++ b/dev-util/unicorn/unicorn-.ebuild
@@ -7,7 +7,7 @@ MY_PV=${PV/_/-}
 
 DISTUTILS_USE_PEP517=setuptools
 DISTUTILS_OPTIONAL=1
-PYTHON_COMPAT=( python3_{9..10} )
+PYTHON_COMPAT=( python3_{8..11} )
 inherit cmake distutils-r1
 
 DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator 
framework"
@@ -34,12 +34,12 @@ RDEPEND="python? ( ${PYTHON_DEPS} )"
 BDEPEND="virtual/pkgconfig
python? ( ${DISTUTILS_DEPS} )"
 
-UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc s390x"
+UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc s390x tricore"
 
 wrap_python() {
if use python; then
# src_prepare
-   # do not compile C extensions
+   # Do not compile C extensions
export LIBUNICORN_PATH=1
 
pushd bindings/python >/dev/null || die
@@ -58,7 +58,7 @@ src_prepare() {
 
 src_configure(){
local mycmakeargs=(
-   -DBUILD_SHARED_LIBS=$(usex !static-libs)
+   -DBUILD_SHARED_LIBS=yes
-DUNICORN_ARCH="${UNICORN_TARGETS// /;}"
)
 
@@ -76,5 +76,9 @@ src_compile() {
 src_install() {
cmake_src_install
 
+   if ! use static-libs; then
+   find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete 
|| die
+   fi
+
wrap_python ${FUNCNAME}
 }



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-06-03 Thread Michał Górny
commit: 9fec686abf789fdff36a90c3763d9558203cbf9a
Author: Mario Haustein  hrz  tu-chemnitz  de>
AuthorDate: Thu Jun  2 21:53:37 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Jun  3 07:10:46 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fec686a

dev-util/unicorn: remove old

Bug: https://bugs.gentoo.org/849395
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Mario Haustein  hrz.tu-chemnitz.de>
Closes: https://github.com/gentoo/gentoo/pull/25733
Signed-off-by: Michał Górny  gentoo.org>

 dev-util/unicorn/Manifest |  1 -
 dev-util/unicorn/unicorn-2.0.0_rc6.ebuild | 80 ---
 2 files changed, 81 deletions(-)

diff --git a/dev-util/unicorn/Manifest b/dev-util/unicorn/Manifest
index 7b99a7f736b8..b79c53ef4965 100644
--- a/dev-util/unicorn/Manifest
+++ b/dev-util/unicorn/Manifest
@@ -1,2 +1 @@
-DIST unicorn-2.0.0_rc6.tar.gz 3968714 BLAKE2B 
dcb42126b8a2b9f0780977c73f5e170b5ad438c4f0eca82293e47d52575de27f18440a2d71b9cd17d7b488ae1d46c8197eabbbf7fd92f196bfb7d46c197937fd
 SHA512 
a80a9408bc5b41b6961049849a8a63f69399325a4e4d8e41f4512173d24a837048d9ac03064bc16eb129e5f52828507baa059fda64430ec52b4f9ef339d61f0d
 DIST unicorn-2.0.0_rc7.tar.gz 3984228 BLAKE2B 
a3e6a0d6084780b3a47837a6c8f9df9ec0eb176ff041881fbf2dc879eee11c70796b4f8e4ba784f553e383b8537abe9a559e627afc2fcaf712e83bfc5daaf11c
 SHA512 
ae7e2b35032a8cff516f27edc58ab41708c2acd05b8feebb127501d0bc990a6722ba8439876ea147a2025372500d5df4bd7db86fddf215be63d070218a85a27e

diff --git a/dev-util/unicorn/unicorn-2.0.0_rc6.ebuild 
b/dev-util/unicorn/unicorn-2.0.0_rc6.ebuild
deleted file mode 100644
index 01c1ff6ba6bf..
--- a/dev-util/unicorn/unicorn-2.0.0_rc6.ebuild
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-MY_PV=${PV/_/-}
-
-DISTUTILS_USE_PEP517=setuptools
-DISTUTILS_OPTIONAL=1
-PYTHON_COMPAT=( python3_{9..10} )
-inherit cmake distutils-r1
-
-DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator 
framework"
-HOMEPAGE="https://www.unicorn-engine.org;
-
-if [[ ${PV} == * ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
-else
-   
SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~x86"
-fi
-
-S="${WORKDIR}/${PN}-${MY_PV}"
-
-LICENSE="BSD-2 GPL-2 LGPL-2.1"
-SLOT="0/2"
-IUSE="python static-libs"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-DEPEND="${PYTHON_DEPS}
-   dev-libs/glib:2"
-RDEPEND="python? ( ${PYTHON_DEPS} )"
-BDEPEND="virtual/pkgconfig
-   python? ( ${DISTUTILS_DEPS} )"
-
-UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc s390x"
-
-wrap_python() {
-   if use python; then
-   # src_prepare
-   # do not compile C extensions
-   export LIBUNICORN_PATH=1
-
-   pushd bindings/python >/dev/null || die
-   distutils-r1_${1} "$@"
-   popd >/dev/null || die
-   fi
-}
-
-src_prepare() {
-   # Build from sources
-   rm -r bindings/python/prebuilt || die "failed to remove prebuilt files"
-
-   cmake_src_prepare
-   wrap_python ${FUNCNAME}
-}
-
-src_configure(){
-   local mycmakeargs=(
-   -DBUILD_SHARED_LIBS=$(usex !static-libs)
-   -DUNICORN_ARCH="${UNICORN_TARGETS// /;}"
-   )
-
-   cmake_src_configure
-
-   wrap_python ${FUNCNAME}
-}
-
-src_compile() {
-   cmake_src_compile
-
-   wrap_python ${FUNCNAME}
-}
-
-src_install() {
-   cmake_src_install
-
-   wrap_python ${FUNCNAME}
-}



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-05-15 Thread Sam James
commit: 57fb6dcae199c37d22df24445d287cacb65f5556
Author: Mario Haustein  hrz  tu-chemnitz  de>
AuthorDate: Tue Apr 19 19:34:14 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon May 16 05:19:19 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57fb6dca

dev-util/unicorn: version bump 2.0.0-rc7

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Mario Haustein  hrz.tu-chemnitz.de>
Closes: https://github.com/gentoo/gentoo/pull/25115
Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/Manifest |  1 +
 dev-util/unicorn/unicorn-2.0.0_rc7.ebuild | 80 +++
 2 files changed, 81 insertions(+)

diff --git a/dev-util/unicorn/Manifest b/dev-util/unicorn/Manifest
index 300b01d9f9f5..7b99a7f736b8 100644
--- a/dev-util/unicorn/Manifest
+++ b/dev-util/unicorn/Manifest
@@ -1 +1,2 @@
 DIST unicorn-2.0.0_rc6.tar.gz 3968714 BLAKE2B 
dcb42126b8a2b9f0780977c73f5e170b5ad438c4f0eca82293e47d52575de27f18440a2d71b9cd17d7b488ae1d46c8197eabbbf7fd92f196bfb7d46c197937fd
 SHA512 
a80a9408bc5b41b6961049849a8a63f69399325a4e4d8e41f4512173d24a837048d9ac03064bc16eb129e5f52828507baa059fda64430ec52b4f9ef339d61f0d
+DIST unicorn-2.0.0_rc7.tar.gz 3984228 BLAKE2B 
a3e6a0d6084780b3a47837a6c8f9df9ec0eb176ff041881fbf2dc879eee11c70796b4f8e4ba784f553e383b8537abe9a559e627afc2fcaf712e83bfc5daaf11c
 SHA512 
ae7e2b35032a8cff516f27edc58ab41708c2acd05b8feebb127501d0bc990a6722ba8439876ea147a2025372500d5df4bd7db86fddf215be63d070218a85a27e

diff --git a/dev-util/unicorn/unicorn-2.0.0_rc7.ebuild 
b/dev-util/unicorn/unicorn-2.0.0_rc7.ebuild
new file mode 100644
index ..01c1ff6ba6bf
--- /dev/null
+++ b/dev-util/unicorn/unicorn-2.0.0_rc7.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PV=${PV/_/-}
+
+DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_OPTIONAL=1
+PYTHON_COMPAT=( python3_{9..10} )
+inherit cmake distutils-r1
+
+DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator 
framework"
+HOMEPAGE="https://www.unicorn-engine.org;
+
+if [[ ${PV} == * ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
+else
+   
SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.tar.gz"
+   KEYWORDS="~amd64 ~x86"
+fi
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="BSD-2 GPL-2 LGPL-2.1"
+SLOT="0/2"
+IUSE="python static-libs"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+DEPEND="${PYTHON_DEPS}
+   dev-libs/glib:2"
+RDEPEND="python? ( ${PYTHON_DEPS} )"
+BDEPEND="virtual/pkgconfig
+   python? ( ${DISTUTILS_DEPS} )"
+
+UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc s390x"
+
+wrap_python() {
+   if use python; then
+   # src_prepare
+   # do not compile C extensions
+   export LIBUNICORN_PATH=1
+
+   pushd bindings/python >/dev/null || die
+   distutils-r1_${1} "$@"
+   popd >/dev/null || die
+   fi
+}
+
+src_prepare() {
+   # Build from sources
+   rm -r bindings/python/prebuilt || die "failed to remove prebuilt files"
+
+   cmake_src_prepare
+   wrap_python ${FUNCNAME}
+}
+
+src_configure(){
+   local mycmakeargs=(
+   -DBUILD_SHARED_LIBS=$(usex !static-libs)
+   -DUNICORN_ARCH="${UNICORN_TARGETS// /;}"
+   )
+
+   cmake_src_configure
+
+   wrap_python ${FUNCNAME}
+}
+
+src_compile() {
+   cmake_src_compile
+
+   wrap_python ${FUNCNAME}
+}
+
+src_install() {
+   cmake_src_install
+
+   wrap_python ${FUNCNAME}
+}



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-05-15 Thread Sam James
commit: c81dca32a29749266dd6e06ce4946fa9aef95cea
Author: Sam James  gentoo  org>
AuthorDate: Mon May 16 05:21:38 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon May 16 05:21:42 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c81dca32

dev-util/unicorn: enable py3.8; add pypi remote-id

Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/metadata.xml | 1 +
 dev-util/unicorn/unicorn-2.0.0_rc7.ebuild | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-util/unicorn/metadata.xml b/dev-util/unicorn/metadata.xml
index ce9705eab55c..0585a8a2d9d3 100644
--- a/dev-util/unicorn/metadata.xml
+++ b/dev-util/unicorn/metadata.xml
@@ -11,5 +11,6 @@


unicorn-engine/unicorn
+   unicorn

 

diff --git a/dev-util/unicorn/unicorn-2.0.0_rc7.ebuild 
b/dev-util/unicorn/unicorn-2.0.0_rc7.ebuild
index 01c1ff6ba6bf..8b343753397d 100644
--- a/dev-util/unicorn/unicorn-2.0.0_rc7.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.0_rc7.ebuild
@@ -7,7 +7,7 @@ MY_PV=${PV/_/-}
 
 DISTUTILS_USE_PEP517=setuptools
 DISTUTILS_OPTIONAL=1
-PYTHON_COMPAT=( python3_{9..10} )
+PYTHON_COMPAT=( python3_{8..10} )
 inherit cmake distutils-r1
 
 DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator 
framework"
@@ -39,7 +39,7 @@ UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc 
s390x"
 wrap_python() {
if use python; then
# src_prepare
-   # do not compile C extensions
+   # Do not compile C extensions
export LIBUNICORN_PATH=1
 
pushd bindings/python >/dev/null || die



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-04-17 Thread Sam James
commit: f1179243cc0fa5751936c32af5274d5ffd12a659
Author: Sam James  gentoo  org>
AuthorDate: Sun Apr 17 16:36:01 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr 17 16:36:01 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1179243

dev-util/unicorn: drop 2.0.0_rc5

Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/Manifest |  1 -
 dev-util/unicorn/unicorn-2.0.0_rc5.ebuild | 81 ---
 2 files changed, 82 deletions(-)

diff --git a/dev-util/unicorn/Manifest b/dev-util/unicorn/Manifest
index ee6494e5c5ad..300b01d9f9f5 100644
--- a/dev-util/unicorn/Manifest
+++ b/dev-util/unicorn/Manifest
@@ -1,2 +1 @@
-DIST unicorn-2.0.0_rc5.tar.gz 3808762 BLAKE2B 
02a77c46e075f67df04a9fe0b5474df9f6a6c154778de3223c6ed3c475bd4658abd7b57d351a63cfa7ef5ecbadbee12a6151957b7b47b4f6741b5e4581d13c4b
 SHA512 
3b5118e378872a50d3aa0dca01cda69b0e7b3875da7b03c1708963848c71818dd1e120df8796acace661c6b4d63813b9acc8106ce3a94c0d40c3b50677fbaacd
 DIST unicorn-2.0.0_rc6.tar.gz 3968714 BLAKE2B 
dcb42126b8a2b9f0780977c73f5e170b5ad438c4f0eca82293e47d52575de27f18440a2d71b9cd17d7b488ae1d46c8197eabbbf7fd92f196bfb7d46c197937fd
 SHA512 
a80a9408bc5b41b6961049849a8a63f69399325a4e4d8e41f4512173d24a837048d9ac03064bc16eb129e5f52828507baa059fda64430ec52b4f9ef339d61f0d

diff --git a/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild 
b/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild
deleted file mode 100644
index e2bdf4b08071..
--- a/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-MY_PV=${PV/_/-}
-
-DISTUTILS_USE_PEP517=setuptools
-DISTUTILS_OPTIONAL=1
-PYTHON_COMPAT=( python3_{9..10} )
-inherit cmake distutils-r1
-
-DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator 
framework"
-HOMEPAGE="https://www.unicorn-engine.org;
-
-if [[ ${PV} == * ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
-else
-   
SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~x86"
-fi
-
-S="${WORKDIR}/${PN}-${MY_PV}"
-
-LICENSE="BSD-2 GPL-2 LGPL-2.1"
-SLOT="0/2"
-IUSE="python static-libs"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-DEPEND="${PYTHON_DEPS}
-   dev-libs/glib:2"
-RDEPEND="python? ( ${PYTHON_DEPS} )"
-BDEPEND="virtual/pkgconfig
-   python? ( ${DISTUTILS_DEPS} )"
-
-UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc"
-
-wrap_python() {
-   if use python; then
-   # src_prepare
-   # do not compile C extensions
-   export LIBUNICORN_PATH=1
-
-   pushd bindings/python >/dev/null || die
-   distutils-r1_${1} "$@"
-   popd >/dev/null || die
-   fi
-}
-
-src_prepare() {
-   # Build from sources
-   rm -r bindings/python/prebuilt || die "failed to remove prebuilt files"
-
-   cmake_src_prepare
-   wrap_python ${FUNCNAME}
-}
-
-src_configure(){
-   local mycmakeargs=(
-   -DBUILD_SHARED_LIBS=OFF
-   -DUNICORN_BUILD_SHARED=$(usex !static-libs)
-   -DUNICORN_ARCH="${UNICORN_TARGETS}"
-   )
-
-   cmake_src_configure
-
-   wrap_python ${FUNCNAME}
-}
-
-src_compile() {
-   cmake_src_compile
-
-   wrap_python ${FUNCNAME}
-}
-
-src_install() {
-   cmake_src_install
-
-   wrap_python ${FUNCNAME}
-}



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-03-13 Thread Matthew Smith
commit: ee37d37ec06466b9bcbcb2250f300583800f2825
Author: Matthew Smith  gentoo  org>
AuthorDate: Sun Mar 13 09:20:07 2022 +
Commit: Matthew Smith  gentoo  org>
CommitDate: Sun Mar 13 09:20:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee37d37e

dev-util/unicorn: update LICENSE

Signed-off-by: Matthew Smith  gentoo.org>

 dev-util/unicorn/unicorn-2.0.0_rc5.ebuild | 2 +-
 dev-util/unicorn/unicorn-2.0.0_rc6.ebuild | 2 +-
 dev-util/unicorn/unicorn-.ebuild  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild 
b/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild
index 2a6b0fe4d2b8..e2bdf4b08071 100644
--- a/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild
@@ -23,7 +23,7 @@ fi
 
 S="${WORKDIR}/${PN}-${MY_PV}"
 
-LICENSE="GPL-2"
+LICENSE="BSD-2 GPL-2 LGPL-2.1"
 SLOT="0/2"
 IUSE="python static-libs"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"

diff --git a/dev-util/unicorn/unicorn-2.0.0_rc6.ebuild 
b/dev-util/unicorn/unicorn-2.0.0_rc6.ebuild
index b308066f0b27..01c1ff6ba6bf 100644
--- a/dev-util/unicorn/unicorn-2.0.0_rc6.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.0_rc6.ebuild
@@ -23,7 +23,7 @@ fi
 
 S="${WORKDIR}/${PN}-${MY_PV}"
 
-LICENSE="GPL-2"
+LICENSE="BSD-2 GPL-2 LGPL-2.1"
 SLOT="0/2"
 IUSE="python static-libs"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"

diff --git a/dev-util/unicorn/unicorn-.ebuild 
b/dev-util/unicorn/unicorn-.ebuild
index b308066f0b27..01c1ff6ba6bf 100644
--- a/dev-util/unicorn/unicorn-.ebuild
+++ b/dev-util/unicorn/unicorn-.ebuild
@@ -23,7 +23,7 @@ fi
 
 S="${WORKDIR}/${PN}-${MY_PV}"
 
-LICENSE="GPL-2"
+LICENSE="BSD-2 GPL-2 LGPL-2.1"
 SLOT="0/2"
 IUSE="python static-libs"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-03-13 Thread Matthew Smith
commit: 10c878dacb61a4bafe24e0a04ddaf91480b54e81
Author: Mario Haustein  hrz  tu-chemnitz  de>
AuthorDate: Fri Mar 11 06:56:07 2022 +
Commit: Matthew Smith  gentoo  org>
CommitDate: Sun Mar 13 09:13:45 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10c878da

dev-util/unicorn: version bump 2.0.0-rc6

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Mario Haustein  hrz.tu-chemnitz.de>
Closes: https://github.com/gentoo/gentoo/pull/24481
Signed-off-by: Matthew Smith  gentoo.org>

 dev-util/unicorn/Manifest  | 1 +
 dev-util/unicorn/{unicorn-.ebuild => unicorn-2.0.0_rc6.ebuild} | 7 +++
 dev-util/unicorn/unicorn-.ebuild   | 7 +++
 3 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/dev-util/unicorn/Manifest b/dev-util/unicorn/Manifest
index 2566a0abfced..ee6494e5c5ad 100644
--- a/dev-util/unicorn/Manifest
+++ b/dev-util/unicorn/Manifest
@@ -1 +1,2 @@
 DIST unicorn-2.0.0_rc5.tar.gz 3808762 BLAKE2B 
02a77c46e075f67df04a9fe0b5474df9f6a6c154778de3223c6ed3c475bd4658abd7b57d351a63cfa7ef5ecbadbee12a6151957b7b47b4f6741b5e4581d13c4b
 SHA512 
3b5118e378872a50d3aa0dca01cda69b0e7b3875da7b03c1708963848c71818dd1e120df8796acace661c6b4d63813b9acc8106ce3a94c0d40c3b50677fbaacd
+DIST unicorn-2.0.0_rc6.tar.gz 3968714 BLAKE2B 
dcb42126b8a2b9f0780977c73f5e170b5ad438c4f0eca82293e47d52575de27f18440a2d71b9cd17d7b488ae1d46c8197eabbbf7fd92f196bfb7d46c197937fd
 SHA512 
a80a9408bc5b41b6961049849a8a63f69399325a4e4d8e41f4512173d24a837048d9ac03064bc16eb129e5f52828507baa059fda64430ec52b4f9ef339d61f0d

diff --git a/dev-util/unicorn/unicorn-.ebuild 
b/dev-util/unicorn/unicorn-2.0.0_rc6.ebuild
similarity index 89%
copy from dev-util/unicorn/unicorn-.ebuild
copy to dev-util/unicorn/unicorn-2.0.0_rc6.ebuild
index 2a6b0fe4d2b8..b308066f0b27 100644
--- a/dev-util/unicorn/unicorn-.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.0_rc6.ebuild
@@ -34,7 +34,7 @@ RDEPEND="python? ( ${PYTHON_DEPS} )"
 BDEPEND="virtual/pkgconfig
python? ( ${DISTUTILS_DEPS} )"
 
-UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc"
+UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc s390x"
 
 wrap_python() {
if use python; then
@@ -58,9 +58,8 @@ src_prepare() {
 
 src_configure(){
local mycmakeargs=(
-   -DBUILD_SHARED_LIBS=OFF
-   -DUNICORN_BUILD_SHARED=$(usex !static-libs)
-   -DUNICORN_ARCH="${UNICORN_TARGETS}"
+   -DBUILD_SHARED_LIBS=$(usex !static-libs)
+   -DUNICORN_ARCH="${UNICORN_TARGETS// /;}"
)
 
cmake_src_configure

diff --git a/dev-util/unicorn/unicorn-.ebuild 
b/dev-util/unicorn/unicorn-.ebuild
index 2a6b0fe4d2b8..b308066f0b27 100644
--- a/dev-util/unicorn/unicorn-.ebuild
+++ b/dev-util/unicorn/unicorn-.ebuild
@@ -34,7 +34,7 @@ RDEPEND="python? ( ${PYTHON_DEPS} )"
 BDEPEND="virtual/pkgconfig
python? ( ${DISTUTILS_DEPS} )"
 
-UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc"
+UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc s390x"
 
 wrap_python() {
if use python; then
@@ -58,9 +58,8 @@ src_prepare() {
 
 src_configure(){
local mycmakeargs=(
-   -DBUILD_SHARED_LIBS=OFF
-   -DUNICORN_BUILD_SHARED=$(usex !static-libs)
-   -DUNICORN_ARCH="${UNICORN_TARGETS}"
+   -DBUILD_SHARED_LIBS=$(usex !static-libs)
+   -DUNICORN_ARCH="${UNICORN_TARGETS// /;}"
)
 
cmake_src_configure



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-02-01 Thread Sam James
commit: 866952d86fc60ca297558c7c4fe8e06ec43afb9c
Author: Sam James  gentoo  org>
AuthorDate: Mon Jan 31 20:38:50 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Feb  2 01:04:22 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=866952d8

dev-util/unicorn: update for distutlis-r1.eclass' DISTUTILS_DEPS var

Bug: https://bugs.gentoo.org/832337
Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/unicorn-2.0.0_rc5.ebuild | 8 +---
 dev-util/unicorn/unicorn-.ebuild  | 8 +---
 2 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild 
b/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild
index 8687e522b5a0..2a6b0fe4d2b8 100644
--- a/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild
@@ -31,14 +31,8 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 DEPEND="${PYTHON_DEPS}
dev-libs/glib:2"
 RDEPEND="python? ( ${PYTHON_DEPS} )"
-# See bug #832337 re Python deps
 BDEPEND="virtual/pkgconfig
-   python? (
-   >=dev-python/installer-0.4.0_p20220124[${PYTHON_USEDEP}]
-   dev-python/tomli[${PYTHON_USEDEP}]
-   >=dev-python/setuptools-60.5.0[${PYTHON_USEDEP}]
-   dev-python/wheel[${PYTHON_USEDEP}]
-   )"
+   python? ( ${DISTUTILS_DEPS} )"
 
 UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc"
 

diff --git a/dev-util/unicorn/unicorn-.ebuild 
b/dev-util/unicorn/unicorn-.ebuild
index 8687e522b5a0..2a6b0fe4d2b8 100644
--- a/dev-util/unicorn/unicorn-.ebuild
+++ b/dev-util/unicorn/unicorn-.ebuild
@@ -31,14 +31,8 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 DEPEND="${PYTHON_DEPS}
dev-libs/glib:2"
 RDEPEND="python? ( ${PYTHON_DEPS} )"
-# See bug #832337 re Python deps
 BDEPEND="virtual/pkgconfig
-   python? (
-   >=dev-python/installer-0.4.0_p20220124[${PYTHON_USEDEP}]
-   dev-python/tomli[${PYTHON_USEDEP}]
-   >=dev-python/setuptools-60.5.0[${PYTHON_USEDEP}]
-   dev-python/wheel[${PYTHON_USEDEP}]
-   )"
+   python? ( ${DISTUTILS_DEPS} )"
 
 UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc"
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-01-30 Thread Sam James
commit: 3c7c7194dcd4b12cfeed0aae4222974015a97e6e
Author: Sam James  gentoo  org>
AuthorDate: Mon Jan 31 03:18:06 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan 31 03:19:02 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c7c7194

dev-util/unicorn: fix Python dependencies (BDEPEND)

I'm not sure there's anything distutils-r1.eclass can do for us here, so
it is what it is, but we need to inline the deps from the eclass as we've
set DISTUTILS_OPTIONAL to only do the Python parts w/ USE=python.

Closes: https://bugs.gentoo.org/832337
Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/unicorn-2.0.0_rc5.ebuild |  9 -
 dev-util/unicorn/unicorn-.ebuild  | 10 +-
 2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild 
b/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild
index 1a1090444ff1..8687e522b5a0 100644
--- a/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild
@@ -31,7 +31,14 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 DEPEND="${PYTHON_DEPS}
dev-libs/glib:2"
 RDEPEND="python? ( ${PYTHON_DEPS} )"
-BDEPEND="virtual/pkgconfig"
+# See bug #832337 re Python deps
+BDEPEND="virtual/pkgconfig
+   python? (
+   >=dev-python/installer-0.4.0_p20220124[${PYTHON_USEDEP}]
+   dev-python/tomli[${PYTHON_USEDEP}]
+   >=dev-python/setuptools-60.5.0[${PYTHON_USEDEP}]
+   dev-python/wheel[${PYTHON_USEDEP}]
+   )"
 
 UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc"
 

diff --git a/dev-util/unicorn/unicorn-.ebuild 
b/dev-util/unicorn/unicorn-.ebuild
index 0c2d81bebca9..8687e522b5a0 100644
--- a/dev-util/unicorn/unicorn-.ebuild
+++ b/dev-util/unicorn/unicorn-.ebuild
@@ -5,6 +5,7 @@ EAPI=8
 
 MY_PV=${PV/_/-}
 
+DISTUTILS_USE_PEP517=setuptools
 DISTUTILS_OPTIONAL=1
 PYTHON_COMPAT=( python3_{9..10} )
 inherit cmake distutils-r1
@@ -30,7 +31,14 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 DEPEND="${PYTHON_DEPS}
dev-libs/glib:2"
 RDEPEND="python? ( ${PYTHON_DEPS} )"
-BDEPEND="virtual/pkgconfig"
+# See bug #832337 re Python deps
+BDEPEND="virtual/pkgconfig
+   python? (
+   >=dev-python/installer-0.4.0_p20220124[${PYTHON_USEDEP}]
+   dev-python/tomli[${PYTHON_USEDEP}]
+   >=dev-python/setuptools-60.5.0[${PYTHON_USEDEP}]
+   dev-python/wheel[${PYTHON_USEDEP}]
+   )"
 
 UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc"
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-01-28 Thread Sam James
commit: 7390194577918423b12d2cd389c0d6c56b678335
Author: Sam James  gentoo  org>
AuthorDate: Fri Jan 28 08:19:52 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jan 28 08:19:52 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73901945

dev-util/unicorn: add proxied attribute

Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/metadata.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/unicorn/metadata.xml b/dev-util/unicorn/metadata.xml
index 0c34d21d4fdd..ce9705eab55c 100644
--- a/dev-util/unicorn/metadata.xml
+++ b/dev-util/unicorn/metadata.xml
@@ -1,7 +1,7 @@
 
 https://www.gentoo.org/dtd/metadata.dtd;>
 
-   
+   
mario.haust...@hrz.tu-chemnitz.de
Mario Haustein




[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-01-27 Thread Sam James
commit: 64bedcd835cc05c4397317c094909d3764f2ba56
Author: Sam James  gentoo  org>
AuthorDate: Fri Jan 28 04:40:40 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jan 28 05:16:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64bedcd8

dev-util/unicorn: minor cleanups

- Define subslot (tools like this often end up breaking ABI and it's useful
  to set it proactively here)

- Use PEP517

- Add a missing `|| die`

- Minor whitespace changes

- HTTPSify HOMEPAGE

See: https://github.com/gentoo/gentoo/pull/23806
Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/unicorn-2.0.0_rc5.ebuild | 31 +--
 dev-util/unicorn/unicorn-.ebuild  | 30 --
 2 files changed, 33 insertions(+), 28 deletions(-)

diff --git a/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild 
b/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild
index c0be1c278b68..1a1090444ff1 100644
--- a/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild
+++ b/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild
@@ -5,12 +5,13 @@ EAPI=8
 
 MY_PV=${PV/_/-}
 
+DISTUTILS_USE_PEP517=setuptools
 DISTUTILS_OPTIONAL=1
 PYTHON_COMPAT=( python3_{9..10} )
 inherit cmake distutils-r1
 
 DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator 
framework"
-HOMEPAGE="http://www.unicorn-engine.org;
+HOMEPAGE="https://www.unicorn-engine.org;
 
 if [[ ${PV} == * ]]; then
inherit git-r3
@@ -20,21 +21,19 @@ else
KEYWORDS="~amd64 ~x86"
 fi
 
-LICENSE="GPL-2"
-SLOT="0"
-
-UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc"
+S="${WORKDIR}/${PN}-${MY_PV}"
 
+LICENSE="GPL-2"
+SLOT="0/2"
 IUSE="python static-libs"
-
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
-DEPEND="dev-libs/glib:2
-   virtual/pkgconfig
-   ${PYTHON_DEPS}"
+DEPEND="${PYTHON_DEPS}
+   dev-libs/glib:2"
 RDEPEND="python? ( ${PYTHON_DEPS} )"
+BDEPEND="virtual/pkgconfig"
 
-S="${WORKDIR}/${PN}-${MY_PV}"
+UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc"
 
 wrap_python() {
if use python; then
@@ -44,13 +43,14 @@ wrap_python() {
 
pushd bindings/python >/dev/null || die
distutils-r1_${1} "$@"
-   popd >/dev/null
+   popd >/dev/null || die
fi
 }
 
 src_prepare() {
-   # build from sources
-   rm -r bindings/python/prebuilt || die "failed to remove prebuild"
+   # Build from sources
+   rm -r bindings/python/prebuilt || die "failed to remove prebuilt files"
+
cmake_src_prepare
wrap_python ${FUNCNAME}
 }
@@ -58,15 +58,18 @@ src_prepare() {
 src_configure(){
local mycmakeargs=(
-DBUILD_SHARED_LIBS=OFF
-   -DUNICORN_BUILD_SHARED="$(usex static-libs OFF ON)"
+   -DUNICORN_BUILD_SHARED=$(usex !static-libs)
-DUNICORN_ARCH="${UNICORN_TARGETS}"
)
+
cmake_src_configure
+
wrap_python ${FUNCNAME}
 }
 
 src_compile() {
cmake_src_compile
+
wrap_python ${FUNCNAME}
 }
 

diff --git a/dev-util/unicorn/unicorn-.ebuild 
b/dev-util/unicorn/unicorn-.ebuild
index c0be1c278b68..0c2d81bebca9 100644
--- a/dev-util/unicorn/unicorn-.ebuild
+++ b/dev-util/unicorn/unicorn-.ebuild
@@ -10,7 +10,7 @@ PYTHON_COMPAT=( python3_{9..10} )
 inherit cmake distutils-r1
 
 DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator 
framework"
-HOMEPAGE="http://www.unicorn-engine.org;
+HOMEPAGE="https://www.unicorn-engine.org;
 
 if [[ ${PV} == * ]]; then
inherit git-r3
@@ -20,21 +20,19 @@ else
KEYWORDS="~amd64 ~x86"
 fi
 
-LICENSE="GPL-2"
-SLOT="0"
-
-UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc"
+S="${WORKDIR}/${PN}-${MY_PV}"
 
+LICENSE="GPL-2"
+SLOT="0/2"
 IUSE="python static-libs"
-
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
-DEPEND="dev-libs/glib:2
-   virtual/pkgconfig
-   ${PYTHON_DEPS}"
+DEPEND="${PYTHON_DEPS}
+   dev-libs/glib:2"
 RDEPEND="python? ( ${PYTHON_DEPS} )"
+BDEPEND="virtual/pkgconfig"
 
-S="${WORKDIR}/${PN}-${MY_PV}"
+UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc"
 
 wrap_python() {
if use python; then
@@ -44,13 +42,14 @@ wrap_python() {
 
pushd bindings/python >/dev/null || die
distutils-r1_${1} "$@"
-   popd >/dev/null
+   popd >/dev/null || die
fi
 }
 
 src_prepare() {
-   # build from sources
-   rm -r bindings/python/prebuilt || die "failed to remove prebuild"
+   # Build from sources
+   rm -r bindings/python/prebuilt || die "failed to remove prebuilt files"
+
cmake_src_prepare
wrap_python ${FUNCNAME}
 }
@@ -58,15 +57,18 @@ src_prepare() {
 src_configure(){
local mycmakeargs=(
-DBUILD_SHARED_LIBS=OFF
-   -DUNICORN_BUILD_SHARED="$(usex static-libs OFF ON)"
+   -DUNICORN_BUILD_SHARED=$(usex !static-libs)

[gentoo-commits] repo/gentoo:master commit in: dev-util/unicorn/

2022-01-27 Thread Sam James
commit: e3c69f09ccb7c5203b683b9a878aa4a90959f745
Author: Mario Haustein  hrz  tu-chemnitz  de>
AuthorDate: Sat Jan 15 12:39:10 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jan 28 05:16:43 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3c69f09

dev-util/unicorn: new ebuild

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Mario Haustein  hrz.tu-chemnitz.de>
Signed-off-by: Sam James  gentoo.org>

 dev-util/unicorn/Manifest |  1 +
 dev-util/unicorn/metadata.xml | 15 ++
 dev-util/unicorn/unicorn-2.0.0_rc5.ebuild | 77 +++
 dev-util/unicorn/unicorn-.ebuild  | 77 +++
 4 files changed, 170 insertions(+)

diff --git a/dev-util/unicorn/Manifest b/dev-util/unicorn/Manifest
new file mode 100644
index ..2566a0abfced
--- /dev/null
+++ b/dev-util/unicorn/Manifest
@@ -0,0 +1 @@
+DIST unicorn-2.0.0_rc5.tar.gz 3808762 BLAKE2B 
02a77c46e075f67df04a9fe0b5474df9f6a6c154778de3223c6ed3c475bd4658abd7b57d351a63cfa7ef5ecbadbee12a6151957b7b47b4f6741b5e4581d13c4b
 SHA512 
3b5118e378872a50d3aa0dca01cda69b0e7b3875da7b03c1708963848c71818dd1e120df8796acace661c6b4d63813b9acc8106ce3a94c0d40c3b50677fbaacd

diff --git a/dev-util/unicorn/metadata.xml b/dev-util/unicorn/metadata.xml
new file mode 100644
index ..0c34d21d4fdd
--- /dev/null
+++ b/dev-util/unicorn/metadata.xml
@@ -0,0 +1,15 @@
+
+https://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   mario.haust...@hrz.tu-chemnitz.de
+   Mario Haustein
+   
+   
+   s...@gentoo.org
+   Sam James
+   
+   
+   unicorn-engine/unicorn
+   
+

diff --git a/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild 
b/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild
new file mode 100644
index ..c0be1c278b68
--- /dev/null
+++ b/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PV=${PV/_/-}
+
+DISTUTILS_OPTIONAL=1
+PYTHON_COMPAT=( python3_{9..10} )
+inherit cmake distutils-r1
+
+DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator 
framework"
+HOMEPAGE="http://www.unicorn-engine.org;
+
+if [[ ${PV} == * ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
+else
+   
SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.tar.gz"
+   KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc"
+
+IUSE="python static-libs"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+DEPEND="dev-libs/glib:2
+   virtual/pkgconfig
+   ${PYTHON_DEPS}"
+RDEPEND="python? ( ${PYTHON_DEPS} )"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+wrap_python() {
+   if use python; then
+   # src_prepare
+   # do not compile C extensions
+   export LIBUNICORN_PATH=1
+
+   pushd bindings/python >/dev/null || die
+   distutils-r1_${1} "$@"
+   popd >/dev/null
+   fi
+}
+
+src_prepare() {
+   # build from sources
+   rm -r bindings/python/prebuilt || die "failed to remove prebuild"
+   cmake_src_prepare
+   wrap_python ${FUNCNAME}
+}
+
+src_configure(){
+   local mycmakeargs=(
+   -DBUILD_SHARED_LIBS=OFF
+   -DUNICORN_BUILD_SHARED="$(usex static-libs OFF ON)"
+   -DUNICORN_ARCH="${UNICORN_TARGETS}"
+   )
+   cmake_src_configure
+   wrap_python ${FUNCNAME}
+}
+
+src_compile() {
+   cmake_src_compile
+   wrap_python ${FUNCNAME}
+}
+
+src_install() {
+   cmake_src_install
+
+   wrap_python ${FUNCNAME}
+}

diff --git a/dev-util/unicorn/unicorn-.ebuild 
b/dev-util/unicorn/unicorn-.ebuild
new file mode 100644
index ..c0be1c278b68
--- /dev/null
+++ b/dev-util/unicorn/unicorn-.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PV=${PV/_/-}
+
+DISTUTILS_OPTIONAL=1
+PYTHON_COMPAT=( python3_{9..10} )
+inherit cmake distutils-r1
+
+DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator 
framework"
+HOMEPAGE="http://www.unicorn-engine.org;
+
+if [[ ${PV} == * ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn;
+else
+   
SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> 
${P}.tar.gz"
+   KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc"
+
+IUSE="python static-libs"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+DEPEND="dev-libs/glib:2
+   virtual/pkgconfig
+   ${PYTHON_DEPS}"
+RDEPEND="python? ( ${PYTHON_DEPS} )"
+