mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-10 10:23:25 +01:00
36 lines
940 B
Bash
36 lines
940 B
Bash
# Copyright 1999-2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
inherit cmake-utils git-r3
|
|
|
|
DESCRIPTION="The OpenSource Disassembler "
|
|
HOMEPAGE="http://redasm.io"
|
|
EGIT_REPO_URI="https://github.com/REDasmOrg/REDasm.git v${PV}"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
IUSE="+database"
|
|
|
|
DEPEND="dev-qt/qtwidgets:5
|
|
dev-qt/qtgui:5
|
|
dev-qt/qtcore:5"
|
|
RDEPEND="${DEPEND}
|
|
database? ( dev-libs/redasm-database )"
|
|
|
|
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-utils_src_prepare
|
|
# eapply_user
|
|
}
|
|
|
|
src_install() {
|
|
dolib.so "${BUILD_DIR}"/LibREDasm.so
|
|
newbin "${BUILD_DIR}"/REDasm redasm
|
|
}
|