summaryrefslogtreecommitdiff
blob: aaccf0cb7dcb86d6a34178202a49f82272de5056 (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"

PYTHON_DEPEND="2:2.5"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.4 3.*"

inherit games distutils

DESCRIPTION="Lord of the Rings Online and Dungeons & Dragons Online Launcher"
HOMEPAGE="http://www.lotrolinux.com/"
SRC_URI="http://www.lotrolinux.com/PyLotRO-${PV}.tar.bz2"

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

DEPEND="dev-python/PyQt4
	dev-python/4suite"
RDEPEND="${DEPEND}"

S="${WORKDIR}"

PYTHON_MODNAME=PyLotROLauncher
PYTHON_VERSIONED_SCRIPTS="${GAMES_BINDIR}/${PN}"

src_install() {
	distutils_src_install \
		--install-scripts "${GAMES_BINDIR}" \
		--install-data "${GAMES_DATADIR}"
	prepgamesdirs
}

pkg_postinst() {
	distutils_pkg_postinst
	games_pkg_postinst

	elog
	elog "You will need a proper wine or crossover-game installation to launch"
	elog "the game. You can find more information on how to run these games in"
	elog "GNU/Linux by visiting:"
	elog "http://appdb.winehq.org/objectManager.php?sClass=application&iId=4891"
	elog "or http://www.codeweavers.com/compatibility/browse/name/?app_id=4029"
}