From bb82c40e824dc614912a3e3238012cf135f32b3d Mon Sep 17 00:00:00 2001 From: blshkv Date: Sun, 10 Jan 2021 10:21:00 +0800 Subject: [PATCH] redasm: 3.0.0 beta1 --- dev-libs/redasm-database/Manifest | 1 + .../redasm-database-20210109.ebuild | 26 ++++++++++++ dev-util/redasm/redasm-2.1.1_p1.ebuild | 41 +++++++++++++++++++ dev-util/redasm/redasm-3.0.0_beta1.ebuild | 41 +++++++++++++++++++ .../base/package.accept_keywords/dev-libs | 6 --- 5 files changed, 109 insertions(+), 6 deletions(-) create mode 100644 dev-libs/redasm-database/redasm-database-20210109.ebuild create mode 100644 dev-util/redasm/redasm-2.1.1_p1.ebuild create mode 100644 dev-util/redasm/redasm-3.0.0_beta1.ebuild diff --git a/dev-libs/redasm-database/Manifest b/dev-libs/redasm-database/Manifest index 8704a375d..a53e5a211 100644 --- a/dev-libs/redasm-database/Manifest +++ b/dev-libs/redasm-database/Manifest @@ -1 +1,2 @@ DIST redasm-database-20190317.tar.gz 4841443 BLAKE2B 806e24e1640381bd7187bd3dc99dd88d31754436c2a0c8ceda72dc6abd60b6694bacb20babb42e932d3afaf77d25787e57d64cd1c9b5f7bc77aee1ab2efddd8d SHA512 e41a74d08b292e1a80ac5d77f6e89265c677109c6d4b2bdcddf5c9fdbc22ea9d2cd40f0882113b8b5e1f9f18d4f2e66d2be3dc3e5e31a33956724ac54fde8304 +DIST redasm-database-20210109.tar.gz 4844385 BLAKE2B 742479baa96047296f352ad367e163c41145bb81fbe84c0b251a9a6d30354ef02977bdb20adbe021321db5a9a754278738f7ed6e57273ac0c84bbae5e4230547 SHA512 64aa9cd20af3a5030140f93e68397f21474aa7c031ec318c2739f59d0a258a8a52c4bca4002300636b8d09da31bfda0e0a430d7fdd09a689bd52a79c8e3ce906 diff --git a/dev-libs/redasm-database/redasm-database-20210109.ebuild b/dev-libs/redasm-database/redasm-database-20210109.ebuild new file mode 100644 index 000000000..da49faa4b --- /dev/null +++ b/dev-libs/redasm-database/redasm-database-20210109.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +HASH_COMMIT="f85b189a9b7415b7a4b5a20a0f7f9e49ee7bad25" + +DESCRIPTION="Database files (signatures) for REDasm" +HOMEPAGE="http://redasm.io" +SRC_URI="https://github.com/REDasmOrg/REDasm-Database/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" + +KEYWORDS="amd64 ~arm64 x86" + +LICENSE="GPL-3" +SLOT="0" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/REDasm-Database-${HASH_COMMIT}" + +src_install() { + insinto /usr/share/redasm/database/ + doins -r * +} diff --git a/dev-util/redasm/redasm-2.1.1_p1.ebuild b/dev-util/redasm/redasm-2.1.1_p1.ebuild new file mode 100644 index 000000000..6be5c44e8 --- /dev/null +++ b/dev-util/redasm/redasm-2.1.1_p1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake git-r3 + +DESCRIPTION="The OpenSource Disassembler" +HOMEPAGE="https://redasm.io" + +#https://github.com/REDasmOrg/REDasm/issues/28 +EGIT_REPO_URI="https://github.com/REDasmOrg/REDasm" +EGIT_COMMIT="v2.1.1-fix" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" +IUSE="+database" + +DEPEND=" + dev-qt/qtwidgets:5 + dev-qt/qtgui:5 + dev-qt/qtcore:5" +RDEPEND="${DEPEND} + database? ( dev-libs/redasm-database )" + +PATCHES=( "${FILESDIR}/2.1.1-qt.patch" ) + +src_prepare() { + sed -i '/set(CMAKE_INSTALL_RPATH ".")/d' CMakeLists.txt || die "sed failed" + #fix database path + sed -i 's|QDir::currentPath().toStdString()|"/usr/share/redasm/"|g' mainwindow.cpp || die "sed 2 failed" + sed -i 's|QDir::currentPath().toStdString()|"/usr/share/redasm/"|g' unittest/disassemblertest.cpp || die "sed 3 failed" + + cmake_src_prepare +} + +src_install() { + dolib.so "${BUILD_DIR}"/LibREDasm.so + newbin "${BUILD_DIR}"/REDasm redasm +} diff --git a/dev-util/redasm/redasm-3.0.0_beta1.ebuild b/dev-util/redasm/redasm-3.0.0_beta1.ebuild new file mode 100644 index 000000000..2eeba4ff6 --- /dev/null +++ b/dev-util/redasm/redasm-3.0.0_beta1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake git-r3 + +DESCRIPTION="The OpenSource Disassembler" +HOMEPAGE="https://redasm.io" + +#https://github.com/REDasmOrg/REDasm/issues/28 +EGIT_REPO_URI="https://github.com/REDasmOrg/REDasm" +EGIT_COMMIT="v3.0.0-beta1" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+database" + +DEPEND="dev-cpp/tbb + dev-qt/qtwidgets:5 + dev-qt/qtgui:5 + dev-qt/qtcore:5" +RDEPEND="${DEPEND} + database? ( dev-libs/redasm-database )" + +#PATCHES=( "${FILESDIR}/2.1.1-qt.patch" ) + +src_prepare() { + sed -i '/set(CMAKE_INSTALL_RPATH ".")/d' CMakeLists.txt || die "sed failed" + #fix database path + sed -i 's|QDir::currentPath().toStdString()|"/usr/share/redasm/"|g' mainwindow.cpp || die "sed 2 failed" + sed -i 's|QDir::currentPath().toStdString()|"/usr/share/redasm/"|g' unittest/disassemblertest.cpp || die "sed 3 failed" + + cmake_src_prepare +} + +src_install() { + dolib.so "${BUILD_DIR}"/LibREDasm.so + newbin "${BUILD_DIR}"/REDasm redasm +} diff --git a/profiles/pentoo/base/package.accept_keywords/dev-libs b/profiles/pentoo/base/package.accept_keywords/dev-libs index 18504a91d..0a6515a5d 100644 --- a/profiles/pentoo/base/package.accept_keywords/dev-libs +++ b/profiles/pentoo/base/package.accept_keywords/dev-libs @@ -71,12 +71,6 @@ dev-libs/libdwarf #required by pwsh-bin dev-libs/openssl-compat:1.0.0 -# required by nokogiri-1.10.3 - -#required by redasm -dev-libs/redasm-database - - ### Gentoo ############ ~dev-libs/keystone-0.9.1