src_prepare-overlay/app-editors/rehex/rehex-9999.ebuild
Maciej Barć df1a27454c
app-editors/rehex: new pkg; add version 0.3.0 and 9999
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
2020-11-12 01:34:34 +01:00

48 lines
776 B
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
WX_GTK_VER="3.0-gtk3"
inherit wxwidgets xdg
DESCRIPTION="Reverse Engineers' Hex Editor"
HOMEPAGE="https://github.com/solemnwarning/rehex"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/solemnwarning/${PN}.git"
else
SRC_URI="https://github.com/solemnwarning/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
RESTRICT="
mirror
!test? ( test )
"
LICENSE="GPL-2"
SLOT="0"
IUSE="test"
RDEPEND="
dev-libs/capstone
dev-libs/jansson
x11-libs/wxGTK:${WX_GTK_VER}[X]
"
DEPEND="
${RDEPEND}
test? (
dev-cpp/gtest
)
"
src_configure() {
setup-wxwidgets
}
src_install() {
emake prefix="${D}"/usr install
}