mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
Done via: ``` git grep -l 'virtual/zlib:0=' | xargs sed -i -e 's@virtual/zlib:0=@virtual/zlib:=@g' ``` Signed-off-by: Michał Górny <mgorny@gentoo.org>
57 lines
1.1 KiB
Bash
57 lines
1.1 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit flag-o-matic toolchain-funcs
|
|
|
|
MY_P="wiimms-iso-tools.source-${PV}"
|
|
|
|
DESCRIPTION="command line tools to manipulate Wii/GameCube ISO images and WBFS containers"
|
|
HOMEPAGE="https://wit.wiimm.de/"
|
|
SRC_URI="https://download.wiimm.de/source/wiimms-iso-tools/${MY_P}.txz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
IUSE="+fuse +zlib"
|
|
|
|
RDEPEND="
|
|
app-arch/bzip2:0=
|
|
dev-libs/openssl:=
|
|
fuse? ( sys-fs/fuse:0= )
|
|
zlib? ( virtual/zlib:= )"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="virtual/pkgconfig"
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-makefile.patch
|
|
"${FILESDIR}"/${P}-no-exec-stack.patch
|
|
)
|
|
|
|
src_configure() {
|
|
# -Werror=lto-type-mismatch
|
|
# https://bugs.gentoo.org/859319
|
|
#
|
|
# After investigation, the build system also uses -fno-strict-aliasing
|
|
# so do not trust it with LTO either, even if the type-mismatch gets fixed.
|
|
filter-lto
|
|
|
|
export NO_FUSE=$(usex fuse 0 1)
|
|
export NO_ZLIB=$(usex zlib 0 1)
|
|
|
|
tc-export CC PKG_CONFIG
|
|
}
|
|
|
|
src_compile() {
|
|
emake INSTALL_PATH="${ED}"/usr
|
|
emake doc
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
dodoc doc/*.txt
|
|
}
|