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/games-util/ucon64/ucon64-2.2.1.ebuild

66 lines
1.3 KiB

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="The backup tool and wonderful emulator's Swiss Army knife program"
HOMEPAGE="http://ucon64.sourceforge.net/"
SRC_URI="mirror://sourceforge/ucon64/${P}-src.tar.gz"
S="${WORKDIR}/${P}-src/src"
LICENSE="LGPL-2.1+ GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug usb zlib"
RDEPEND="
usb? ( virtual/libusb:0 )
zlib? ( sys-libs/zlib:= )"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-change-mem2-64bit.patch
"${FILESDIR}"/${P}-respect-flags.patch
"${FILESDIR}"/${P}-zlib.patch
)
src_prepare() {
default
sed "/discmage.so/s|.* \"|\"${EPREFIX}/usr/$(get_libdir)/${PN}/|" \
-i ucon64_misc.c || die
}
src_configure() {
local econfargs=(
$(use_enable debug)
$(use_with usb libusb)
$(use_with zlib)
--enable-ppdev
--with-libcd64
--with-libdiscmage
)
econf "${econfargs[@]}"
tc-export AR CC LD # for libcd64 with respect-flags.patch
}
src_install() {
dobin ucon64
exeinto /usr/$(get_libdir)/${PN}
doexe libdiscmage/discmage.so
docinto html
dodoc -r ../images ../{changes,developers,faq,hardware,readme}.html
}
pkg_postinst() {
if [[ ! ${REPLACING_VERSIONS} ]]; then
elog "Be sure to check ~/.ucon64rc for some options after"
elog "you've run uCON64 for the first time."
fi
}