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.
gentoo-overlay/sci-calculators/hexcalc/hexcalc-1.11-r3.ebuild

43 lines
794 B

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit toolchain-funcs
DESCRIPTION="A simple hex calculator for X"
HOMEPAGE="ftp://ftp.x.org/R5contrib/"
SRC_URI="mirror://gentoo/${P}.tar.Z"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
IUSE=""
RDEPEND="x11-libs/libXaw"
DEPEND="${RDEPEND}
>=x11-misc/imake-1.0.8-r1
app-text/rman"
S=${WORKDIR}/${PN}
PATCHES=( "${FILESDIR}"/${PN}-{keypad,order}.diff )
src_configure() {
CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die
}
src_compile() {
emake \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
CCLINK="$(tc-getCC)" \
LDOPTIONS="${LDFLAGS}"
}
src_install() {
dobin ${PN}
newman ${PN}.{man,1}
}