redasm: 3.0.0 beta1

This commit is contained in:
blshkv 2021-01-10 10:21:00 +08:00
parent a9116f73d7
commit bb82c40e82
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
5 changed files with 109 additions and 6 deletions

View file

@ -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

View file

@ -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 *
}

View file

@ -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
}

View file

@ -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
}

View file

@ -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