linamh/dev-util/hex2bin/hex2bin-2.5.ebuild

37 lines
815 B
Bash
Raw Normal View History

2022-11-26 22:54:07 +01:00
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
2023-07-20 20:28:34 +02:00
EAPI=8
2022-11-26 22:54:07 +01:00
2023-07-20 20:28:34 +02:00
inherit toolchain-funcs multilib
2022-11-26 22:54:07 +01:00
DESCRIPTION="Converts Motorola and Intel hex files to binary"
HOMEPAGE="https://sourceforge.net/projects/hex2bin/"
SRC_URI="https://sourceforge.net/projects/${PN}/files/${PN}/Hex2bin-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="doc"
DEPEND=""
RDEPEND=""
PATCHES=(
"${FILESDIR}/hex2bin-gcc10.patch"
)
S="${WORKDIR}"/Hex2bin-${PV}
src_compile() {
emake CC="$(tc-getCC)" AR="$(tc-getAR)" INSTALL_DIR=${EPREFIX}/usr || die "src build fail"
}
src_install() {
#emake CC="$(tc-getCC)" AR="$(tc-getAR)" INSTALL_DIR=${D}/${EPREFIX}/usr || die "src install failed"
dobin hex2bin
dobin mot2bin
doman hex2bin.1
}