Overlay/x11-drivers/snail/snail-1.2.6.ebuild

49 lines
895 B
Bash
Raw Normal View History

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: $
EAPI=4
EGIT_REPO_URI="git://github.com/backbone/snail.git"
2012-05-16 15:12:38 +04:00
[[ 9999 == ${PV} ]] && vcs=git
2012-05-16 15:12:38 +04:00
inherit $vcs eutils
2012-05-16 15:12:38 +04:00
if [[ 9999 != ${PV} ]]; then
SRC_URI="ftp://backbone.ws/projects/snail/${P}.tar.bz2"
KEYWORDS="-* ~x86 ~amd64"
fi
2012-05-16 15:12:38 +04:00
DESCRIPTION="Snail - nVidia Optimus support"
HOMEPAGE="https://chili.backbone.ws/projects/snail"
2012-05-16 15:12:38 +04:00
LICENSE="GPL-3"
SLOT="0"
2012-05-16 15:12:38 +04:00
IUSE=""
DEPEND="x11-drivers/nvidia-drivers
sys-power/bbswitch
2012-05-16 15:12:38 +04:00
sys-apps/dmidecode"
RDEPEND="${DEPEND}"
src_prepare() {
if [[ 9999 == ${PV} ]] ; then
# Allow user patches to be applied without modifying the ebuild
epatch_user
fi
}
2012-05-16 15:12:38 +04:00
src_install() {
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
}