diff options
author | 2021-04-21 07:24:33 +0100 | |
---|---|---|
committer | 2021-04-21 19:49:25 +0100 | |
commit | f581541f8773480de7f4d7543cb5fe699ef7584e (patch) | |
tree | 2e485051e47a6a744c6a8eff30c6aaa973fcda58 /games-util/uglygs | |
parent | net-dns/libidn2: add libunistring subslot operator (diff) | |
download | gentoo-f581541f8773480de7f4d7543cb5fe699ef7584e.tar.gz gentoo-f581541f8773480de7f4d7543cb5fe699ef7584e.tar.bz2 gentoo-f581541f8773480de7f4d7543cb5fe699ef7584e.zip |
games-util/uglygs: update EAPI 6 -> 7, respect CC
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-util/uglygs')
-rw-r--r-- | games-util/uglygs/uglygs-0_rc11-r1.ebuild | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/games-util/uglygs/uglygs-0_rc11-r1.ebuild b/games-util/uglygs/uglygs-0_rc11-r1.ebuild index d4ae0849ecff..a5fb9f5c19bf 100644 --- a/games-util/uglygs/uglygs-0_rc11-r1.ebuild +++ b/games-util/uglygs/uglygs-0_rc11-r1.ebuild @@ -1,37 +1,45 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 + +inherit toolchain-funcs MY_P="${P/0_/}" DESCRIPTION="Quickly searches the network for game servers" HOMEPAGE="http://uglygs.uglypunk.com/" SRC_URI="ftp://ftp.uglypunk.com/uglygs/current/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~x86" -IUSE="" DEPEND="net-analyzer/rrdtool[graph] dev-lang/perl" RDEPEND="${DEPEND}" -S="${WORKDIR}/${MY_P}" +PATCHES=( + "${FILESDIR}"/${PV}-uglygs.conf.patch + "${FILESDIR}"/${PV}-uglygs.pl.patch +) src_prepare() { default - eapply "${FILESDIR}"/${PV}-uglygs.conf.patch + sed -i \ -e "s:GENTOO_DIR:/usr/$(get_libdir)/${PN}:" uglygs.conf || die - eapply "${FILESDIR}"/${PV}-uglygs.pl.patch + sed -i \ -e "s:GENTOO_DIR:/etc:" uglygs.pl || die + sed -i \ -e "s/strndup/${PN}_strndup/" qstat/qstat.c || die } src_compile() { + tc-export CC + emake -C qstat CFLAGS="${CFLAGS}" } @@ -43,9 +51,11 @@ src_install() { insinto /usr/"$(get_libdir)"/${PN} doins -r data templates tmp + insinto /usr/"$(get_libdir)"/${PN}/images doins -r images/{avp2,bds,default.gif,hls,j2s,mhs,q3s,rws,sf2s,uns,vcs} dosym bds /usr/"$(get_libdir)"/${PN}/images/bdl + keepdir /usr/"$(get_libdir)"/${PN}/tmp exeinto /usr/"$(get_libdir)"/${PN} |