dev-libs/dill: new package, add 2.4.1

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-06-05 20:19:01 +02:00
parent 5becc42e83
commit 3b79937d54
3 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Provides instruction-level code generation directly into memory regions"
HOMEPAGE="https://github.com/GTkorvo/dill"
SRC_URI="https://github.com/GTKorvo/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="disassembly ignore-native multitarget test"
RDEPEND="
dev-libs/libffi
disassembly? ( sys-libs/binutils-libs )
"
DEPEND="${RDEPEND}"
BDEPEND="
sys-devel/binutils
dev-lang/perl
"
RESTRICT="!test? ( test )"
src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS=ON
-DDILL_INSTALL_PKGCONFIG=ON
-DDILL_INSTALL_HEADERS=ON
-DDILL_QUIET=OFF
-DLIBFFI_INTERNAL=OFF
-DBUILD_TESTING=$(usex test)
-DDILL_ENABLE_DISASSEMBLY=$(usex disassembly)
-DDILL_IGNORE_NATIVE=$(usex ignore-native)
-DDILL_MULTI_TARGET=$(usex multitarget)
)
cmake_src_configure
}
src_install() {
cmake_src_install
}