You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
717 B
37 lines
717 B
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
MY_P=${PN}_${PV}
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="ncurses-based hex-editor with diff mode"
|
|
HOMEPAGE="https://www.dettus.net/dhex/"
|
|
SRC_URI="https://www.dettus.net/${PN}/${MY_P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm ~mips x86"
|
|
IUSE=""
|
|
|
|
DEPEND="sys-libs/ncurses:="
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND="virtual/pkgconfig"
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
PATCHES=( "${FILESDIR}"/${P}-Makefile.patch )
|
|
|
|
src_compile() {
|
|
emake \
|
|
CC="$(tc-getCC)" \
|
|
LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)"
|
|
}
|
|
|
|
src_install() {
|
|
dobin dhex
|
|
dodoc README.txt
|
|
doman dhex.1 dhex_markers.5 dhex_searchlog.5 dhexrc.5
|
|
}
|