Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-libs/asmjit/
Date: Fri, 25 Sep 2020 23:19:59
Message-Id: 1601075989.ce46f296a73cb17ab4581fccec3a44f31f0087c8.epsilon-0@gentoo
1 commit: ce46f296a73cb17ab4581fccec3a44f31f0087c8
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Fri Sep 25 23:19:49 2020 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Fri Sep 25 23:19:49 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=ce46f296
7
8 dev-libs/asmjit: add live ebuild
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
12
13 dev-libs/asmjit/asmjit-9999.ebuild | 34 ++++++++++++++++++++++++++++++++++
14 1 file changed, 34 insertions(+)
15
16 diff --git a/dev-libs/asmjit/asmjit-9999.ebuild b/dev-libs/asmjit/asmjit-9999.ebuild
17 new file mode 100644
18 index 000000000..4aa72707c
19 --- /dev/null
20 +++ b/dev-libs/asmjit/asmjit-9999.ebuild
21 @@ -0,0 +1,34 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +inherit cmake
28 +
29 +DESCRIPTION="complete x86/x64 JIT-Assembler for C++ language"
30 +HOMEPAGE="http://asmjit.com/"
31 +
32 +if [[ ${PV} == 9999 ]]; then
33 + inherit git-r3
34 + EGIT_REPO_URI="https://github.com/asmjit/asmjit"
35 +else
36 + COMMIT=b49d685cd9e2e4488f55ce6004306a79bdea056b
37 + SRC_URI="https://github.com/asmjit/asmjit/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
38 + S="${WORKDIR}"/${PN}-${COMMIT}
39 + KEYWORDS="~amd64"
40 +fi
41 +
42 +SLOT="0"
43 +LICENSE="BSD"
44 +IUSE="natvis static-libs test"
45 +RESTRICT="!test? ( test )"
46 +
47 +src_configure() {
48 + local mycmakeargs=(
49 + -DASMJIT_EMBED=$(usex static-libs)
50 + -DASMJIT_BUILD_X86=ON
51 + -DASMJIT_NO_NATVIS=$(usex natvis)
52 + -DASMJIT_TEST=$(usex test)
53 + )
54 + cmake_src_configure
55 +}