# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

RENPY_OVERRIDE_TITLE="Ad Nauseam - The Wrong Side"

inherit renpy

DESCRIPTION="Did you wake up on the wrong side?"
HOMEPAGE="https://throwpup.itch.io/throwup-club"
SRC_URI="
	AdNauseam-${PV}-linux.tar.bz2
	r18? ( AdNauseam-adult-patch.zip )
"
S="${WORKDIR}/AdNauseam-${PV}-linux/"

LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+r18"
RESTRICT="bindist fetch"

BDEPEND="app-arch/unzip"

src_prepare() {
	renpy_src_prepare

	# unused, causes compilation failure
	rm "game/Disc -/zoom_vp_examples.rpy" || die "rm failed"

	if use r18; then
		cp -r "${WORKDIR}/Adult Patch" game/ || die "cp failed"
	fi
}