summaryrefslogtreecommitdiff
blob: f23791008ff73c55395c01edbedd8212369b7cbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

inherit perl-module

MY_P="${PN/-/_}-${PV}"
DESCRIPTION="Run chess engine tournaments"
HOMEPAGE="http://www.hoicher.de/hoichess/download/"
SRC_URI="http://www.hoicher.de/hoichess/download/${P}.tar.gz
	mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_20070820-4.diff.gz"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="dev-lang/perl[ithreads]"
RDEPEND="${DEPEND}
	dev-perl/yaml"

S="${WORKDIR}"/${MY_P}

src_unpack() {
	default
	filterdiff -i '*.6' < "${WORKDIR}"/tourney-manager_20070820-4.diff | patch -p 0 || die
	mv tourney-manager-20070820/debian/*.6 ${S}/ || die
}

src_compile() {
	:
}

src_install() {
	perl_set_version  # sets ${VENDOR_LIB}

	insinto "${VENDOR_LIB}"
	doins *.pm || die

	insinto /usr/share/doc/${PN}
	doins *.conf || die

	dodoc ChangeLog README TODO || die

	doman *.6 || die

	for i in crosstable engine-engine-match tourney ; do
		newbin ${i}.pl ${i} || die
	done
}