Snail/pkgs/gentoo/x11-drivers/snail/snail-1.2.6.ebuild

54 lines
976 B
Bash
Raw Permalink Normal View History

2012-03-24 11:16:52 +04:00
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
2012-05-16 18:18:27 +04:00
2012-03-24 11:16:52 +04:00
inherit eutils
2012-05-16 18:18:27 +04:00
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI=${EGIT_REPO_URI:-"git://github.com/backbone/snail.git"}
inherit git-2
KEYWORDS=""
else
SRC_URI="ftp://backbone.ws/projects/snail/${P}.tar.bz2"
KEYWORDS="-* ~x86 ~amd64"
fi
2012-03-24 11:16:52 +04:00
DESCRIPTION="Snail - nVidia Optimus support"
2012-03-24 15:40:31 +04:00
SRC_URI="ftp://backbone.ws/projects/snail/${P}.tar.bz2"
2012-03-24 11:16:52 +04:00
HOMEPAGE="https://chili.backbone.ws/projects/snail"
SLOT="0"
LICENSE="GPL-3"
IUSE=""
2012-03-24 15:40:31 +04:00
DEPEND="x11-drivers/nvidia-drivers
sys-power/bbswitch
2012-03-24 15:40:31 +04:00
sys-apps/dmidecode"
2012-03-24 11:16:52 +04:00
RDEPEND="${DEPEND}"
2012-05-16 18:18:27 +04:00
src_prepare() {
if [[ ${PV} == "9999" ]] ; then
# Allow user patches to be applied without modifying the ebuild
epatch_user
fi
}
2012-03-24 11:16:52 +04:00
src_install() {
2012-05-16 18:18:27 +04:00
if [[ ${PV} == "9999" ]] ; then
emake install DESTDIR="${D}"
else
emake install DESTDIR="${D}" || die
fi
2012-03-24 11:16:52 +04:00
}
pkg_postinst() {
snail.configure
}