2012-05-16 15:12:38 +04:00
|
|
|
# Copyright 1999-2011 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
2021-06-21 14:22:01 +03:00
|
|
|
EAPI="6"
|
2012-05-16 15:12:38 +04:00
|
|
|
|
2018-03-28 19:04:39 +03:00
|
|
|
EGIT_REPO_URI="https://git.backbone.ws/kolan/snail.git"
|
2012-05-16 15:12:38 +04:00
|
|
|
|
2012-05-16 18:16:01 +04:00
|
|
|
[[ 9999 == ${PV} ]] && vcs=git
|
2012-05-16 15:12:38 +04:00
|
|
|
|
2012-05-16 18:16:01 +04:00
|
|
|
inherit $vcs eutils
|
2012-05-16 15:12:38 +04:00
|
|
|
|
2012-05-16 18:16:01 +04:00
|
|
|
if [[ 9999 != ${PV} ]]; then
|
2018-03-28 19:04:39 +03:00
|
|
|
SRC_URI="https://git.backbone.ws/kolan/snail/archive/v${PVR}.tar.gz -> snail-${PVR}.tar.gz"
|
2012-05-16 18:16:01 +04:00
|
|
|
KEYWORDS="-* ~x86 ~amd64"
|
|
|
|
fi
|
2012-05-16 15:12:38 +04:00
|
|
|
|
2012-05-16 18:16:01 +04:00
|
|
|
DESCRIPTION="Snail - nVidia Optimus support"
|
2018-03-28 19:04:39 +03:00
|
|
|
HOMEPAGE="https://git.backbone.ws/kolan/Snail"
|
2012-05-16 15:12:38 +04:00
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
2012-05-16 18:16:01 +04:00
|
|
|
SLOT="0"
|
2012-05-16 15:12:38 +04:00
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND="x11-drivers/nvidia-drivers
|
2012-05-16 18:16:01 +04:00
|
|
|
sys-power/bbswitch
|
2012-05-16 15:12:38 +04:00
|
|
|
sys-apps/dmidecode"
|
|
|
|
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
2012-05-16 18:16:01 +04:00
|
|
|
src_prepare() {
|
|
|
|
if [[ 9999 == ${PV} ]] ; then
|
|
|
|
# Allow user patches to be applied without modifying the ebuild
|
2021-10-13 09:48:32 +03:00
|
|
|
eapply_user
|
2012-05-16 18:16:01 +04:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2012-05-16 15:12:38 +04:00
|
|
|
src_install() {
|
2012-05-16 18:16:01 +04:00
|
|
|
if [[ 9999 == ${PV} ]] ; then
|
|
|
|
emake install DESTDIR="${D}"
|
|
|
|
else
|
|
|
|
emake install DESTDIR="${D}" || die
|
|
|
|
fi
|
2012-05-16 15:12:38 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
snail.configure
|
|
|
|
}
|