summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-05-02 21:27:05 +0200
committerPacho Ramos <pacho@gentoo.org>2018-05-02 21:28:22 +0200
commit2f04038e4899be657a95cbc85cda8eb29f4a175c (patch)
tree0d21ae3ce1468d893d9646f292684327ba2ed054 /games-util/uglygs/uglygs-0_rc11-r1.ebuild
parentgames-strategy/uqm: Drop old (diff)
downloadgentoo-2f04038e4899be657a95cbc85cda8eb29f4a175c.tar.gz
gentoo-2f04038e4899be657a95cbc85cda8eb29f4a175c.tar.bz2
gentoo-2f04038e4899be657a95cbc85cda8eb29f4a175c.zip
games-util/uglygs: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-util/uglygs/uglygs-0_rc11-r1.ebuild')
-rw-r--r--games-util/uglygs/uglygs-0_rc11-r1.ebuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/games-util/uglygs/uglygs-0_rc11-r1.ebuild b/games-util/uglygs/uglygs-0_rc11-r1.ebuild
new file mode 100644
index 000000000000..a431e691ff30
--- /dev/null
+++ b/games-util/uglygs/uglygs-0_rc11-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~alpha ~hppa ~x86"
+IUSE=""
+
+DEPEND="net-analyzer/rrdtool[graph]
+ dev-lang/perl"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+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() {
+ emake -C qstat CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ insinto /etc
+ doins uglygs.conf qstat/qstat.cfg
+
+ dobin uglygs.pl
+
+ 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}
+ doexe qstat/qstat
+
+ einstalldocs
+}