games-board/fruit: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Sun, 29 Apr 2018 07:59:34 +0000 (09:59 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sun, 29 Apr 2018 11:24:45 +0000 (13:24 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

games-board/fruit/files/fruit-2.1-gentoo.patch
games-board/fruit/fruit-2.1-r1.ebuild [new file with mode: 0644]

index bae207f89627e3a27a1b2aa5a7c8ae69a35fee0f..815b184d9dc298e52fd0a9774102f4ac960c00eb 100644 (file)
@@ -1,5 +1,5 @@
---- option.cpp.old     2007-02-07 23:32:25.000000000 +0100
-+++ option.cpp 2007-02-07 23:32:51.000000000 +0100
+--- a/option.cpp.old   2007-02-07 23:32:25.000000000 +0100
++++ b/option.cpp       2007-02-07 23:32:51.000000000 +0100
 @@ -29,7 +29,7 @@
     { "Ponder", true, "false", "check", "", NULL },\r
  \r
diff --git a/games-board/fruit/fruit-2.1-r1.ebuild b/games-board/fruit/fruit-2.1-r1.ebuild
new file mode 100644 (file)
index 0000000..bb8f763
--- /dev/null
@@ -0,0 +1,41 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit versionator
+
+MY_PV="$(replace_all_version_separators '')"
+MY_P="${PN}_${MY_PV}_linux"
+
+DESCRIPTION="UCI-only chess engine"
+HOMEPAGE="http://arctrix.com/nas/fruit/"
+SRC_URI="http://arctrix.com/nas/${PN}/${MY_P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="app-arch/unzip"
+
+S="${WORKDIR}/${MY_P}/src"
+
+src_prepare() {
+       default
+       eapply "${FILESDIR}/${P}"-gentoo.patch
+       sed -i \
+               -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
+               option.cpp || die
+       sed -i \
+               -e '/^CXX/d' \
+               -e '/^LDFLAGS/d' \
+               Makefile || die
+}
+
+src_install() {
+       dobin ${PN}
+       insinto "/usr/share/${PN}"
+       doins ../book_small.bin
+       dodoc ../readme.txt ../technical_10.txt
+}