diff options
author | soredake <fdsfgs@krutt.org> | 2017-11-08 16:03:35 +0200 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2017-11-10 22:17:58 +0000 |
commit | 884a68127be03b06905c8963a54091e6310eb630 (patch) | |
tree | 67c7027a4d0b364c8f85f63550b10f16a55e3598 /games-util | |
parent | 4c92b224473531dcb8e13120e64f43a8329d78e3 (diff) | |
download | gentoo-884a68127be03b06905c8963a54091e6310eb630.tar.gz gentoo-884a68127be03b06905c8963a54091e6310eb630.tar.xz |
games-util/lutris: add live version
Closes: https://github.com/gentoo/gentoo/pull/6150
Diffstat (limited to 'games-util')
-rw-r--r-- | games-util/lutris/lutris-9999.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/games-util/lutris/lutris-9999.ebuild b/games-util/lutris/lutris-9999.ebuild new file mode 100644 index 00000000000..960cafec846 --- /dev/null +++ b/games-util/lutris/lutris-9999.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_{4,5,6} ) +PYTHON_REQ_USE="sqlite,threads" + +inherit distutils-r1 gnome2-utils python-r1 + +DESCRIPTION="Lutris is an open source gaming platform for GNU/Linux." +HOMEPAGE="https://lutris.net/" + +if [[ "${PV}" == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/lutris/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/lutris/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3" +SLOT="0" + +RDEPEND=" + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] + dev-python/python-evdev[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + net-libs/libsoup + x11-apps/xrandr + x11-apps/xgamma" + +python_install() { + distutils-r1_python_install +} + +src_prepare() { + distutils-r1_src_prepare +} + +src_compile() { + distutils-r1_src_compile +} + +src_install() { + # README.rst contains list of optional deps + DOCS=( AUTHORS README.rst INSTALL.rst ) + distutils-r1_src_install +} + +pkg_preinst() { + gnome2_icon_savelist + gnome2_schemas_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + gnome2_schemas_update + + elog "For a list of optional dependencies (runners) see:" + elog "/usr/share/doc/${PF}/README.rst.bz2" +} + +pkg_postrm() { + gnome2_icon_cache_update + gnome2_schemas_update +} |