From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1345101-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 80B5F158086
	for <garchives@archives.gentoo.org>; Thu,  2 Dec 2021 02:26:38 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 20F772BC001;
	Thu,  2 Dec 2021 02:26:36 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id EF0DF2BC001
	for <gentoo-commits@lists.gentoo.org>; Thu,  2 Dec 2021 02:26:35 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 5926A342D41
	for <gentoo-commits@lists.gentoo.org>; Thu,  2 Dec 2021 02:26:34 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 654C110C
	for <gentoo-commits@lists.gentoo.org>; Thu,  2 Dec 2021 02:26:32 +0000 (UTC)
From: "Hayley Hughes" <hayley@foxes.systems>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Hayley Hughes" <hayley@foxes.systems>
Message-ID: <1638411953.42f090b0f23df6983a7c20e33b6f558eec3c03f8.hayley@gentoo>
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-emulation/unicorn/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: app-emulation/unicorn/Manifest app-emulation/unicorn/metadata.xml app-emulation/unicorn/unicorn-1.0.3.ebuild
X-VCS-Directories: app-emulation/unicorn/
X-VCS-Committer: hayley
X-VCS-Committer-Name: Hayley Hughes
X-VCS-Revision: 42f090b0f23df6983a7c20e33b6f558eec3c03f8
X-VCS-Branch: dev
Date: Thu,  2 Dec 2021 02:26:32 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: f273fcf7-00a3-4e3d-acfe-a6bd094afa43
X-Archives-Hash: c60a005889b1724d99a19387fcce3d86

commit:     42f090b0f23df6983a7c20e33b6f558eec3c03f8
Author:     Hayley Hughes <hayley <AT> foxes <DOT> systems>
AuthorDate: Thu Dec  2 02:21:33 2021 +0000
Commit:     Hayley Hughes <hayley <AT> foxes <DOT> systems>
CommitDate: Thu Dec  2 02:25:53 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=42f090b0

app-emulation/unicorn: new package

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Hayley Hughes <hayley <AT> foxes.systems>

 app-emulation/unicorn/Manifest             |  1 +
 app-emulation/unicorn/metadata.xml         | 16 +++++++++
 app-emulation/unicorn/unicorn-1.0.3.ebuild | 57 ++++++++++++++++++++++++++++++
 3 files changed, 74 insertions(+)

diff --git a/app-emulation/unicorn/Manifest b/app-emulation/unicorn/Manifest
new file mode 100644
index 000000000..a32d340b3
--- /dev/null
+++ b/app-emulation/unicorn/Manifest
@@ -0,0 +1 @@
+DIST 1.0.3.tar.gz 3759365 BLAKE2B 130d494d03aa9aa1b27e6806856eb36c1871af6e8b89aef9136baa6ca8b726ba2eab778488185e96c47bf3771dd8bce19bf4fd5090888d28433a6129c827d88c SHA512 10f1b5194358c65bc94723eaafd7b4167fee18f96a4810f46f8c78ed1ef5584546e66e8c910fa4eeadd791fcd73edea68f898e337081409fd188b4090b78a7ca

diff --git a/app-emulation/unicorn/metadata.xml b/app-emulation/unicorn/metadata.xml
new file mode 100644
index 000000000..c9de728ed
--- /dev/null
+++ b/app-emulation/unicorn/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>hayley@foxes.systems</email>
+		<name>Hayley Hughes</name>
+	</maintainer>
+	<longdescription lang="en">
+		Unicorn is a lightweight multi-platform, multi-architecture CPU emulator
+		framework. Unicorn is based on QEMU, but it goes much further with a lot
+		more to offer.
+	</longdescription>
+	<use>
+		<flag name="python">Enable python bindings</flag>
+	</use>
+</pkgmetadata>

diff --git a/app-emulation/unicorn/unicorn-1.0.3.ebuild b/app-emulation/unicorn/unicorn-1.0.3.ebuild
new file mode 100644
index 000000000..7c576f626
--- /dev/null
+++ b/app-emulation/unicorn/unicorn-1.0.3.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_OPTIONAL=1
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit cmake distutils-r1
+
+DESCRIPTION="Unicorn CPU emulator framework"
+HOMEPAGE="http://www.unicorn-engine.org/"
+SRC_URI="https://github.com/unicorn-engine/${PN}/archive/${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="test python"
+RDEPEND="python? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}
+	python? ( dev-python/setuptools[${PYTHON_USEDEP}] )
+"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+wrap_python() {
+	local phase=$1
+	shift
+
+	if use python; then
+		pushd bindings/python >/dev/null || die
+		echo distutils-r1_${phase} "$@"
+		pwd
+		distutils-r1_${phase} "$@"
+		popd >/dev/null
+	fi
+}
+
+src_prepare() {
+	cmake_src_prepare
+	wrap_python ${FUNCNAME}
+}
+
+src_configure() {
+	cmake_src_configure
+	wrap_python ${FUNCNAME}
+}
+
+src_compile() {
+	cmake_src_compile
+	wrap_python ${FUNCNAME}
+}
+
+src_install() {
+	cmake_src_install
+	wrap_python ${FUNCNAME}
+}