9999-ebuild created but not tested.
This commit is contained in:
parent
54c0ab5125
commit
1e5cf1fa07
|
@ -3,16 +3,24 @@
|
||||||
# $Header: $
|
# $Header: $
|
||||||
|
|
||||||
EAPI=4
|
EAPI=4
|
||||||
|
|
||||||
inherit eutils
|
inherit eutils
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
DESCRIPTION="Snail - nVidia Optimus support"
|
DESCRIPTION="Snail - nVidia Optimus support"
|
||||||
|
|
||||||
SRC_URI="ftp://backbone.ws/projects/snail/${P}.tar.bz2"
|
SRC_URI="ftp://backbone.ws/projects/snail/${P}.tar.bz2"
|
||||||
|
|
||||||
HOMEPAGE="https://chili.backbone.ws/projects/snail"
|
HOMEPAGE="https://chili.backbone.ws/projects/snail"
|
||||||
|
|
||||||
KEYWORDS="-* ~x86 ~amd64"
|
|
||||||
|
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
LICENSE="GPL-3"
|
||||||
|
@ -25,11 +33,21 @@ DEPEND="x11-drivers/nvidia-drivers
|
||||||
|
|
||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
# Allow user patches to be applied without modifying the ebuild
|
||||||
|
epatch_user
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
emake install DESTDIR="${D}" || die
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
emake install DESTDIR="${D}"
|
||||||
|
else
|
||||||
|
emake install DESTDIR="${D}" || die
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
snail.configure
|
snail.configure
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,53 @@
|
||||||
|
# Copyright 1999-2011 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
|
||||||
|
inherit eutils
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
DESCRIPTION="Snail - nVidia Optimus support"
|
||||||
|
|
||||||
|
SRC_URI="ftp://backbone.ws/projects/snail/${P}.tar.bz2"
|
||||||
|
|
||||||
|
HOMEPAGE="https://chili.backbone.ws/projects/snail"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="x11-drivers/nvidia-drivers
|
||||||
|
sys-power/bbswitch
|
||||||
|
sys-apps/dmidecode"
|
||||||
|
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
# Allow user patches to be applied without modifying the ebuild
|
||||||
|
epatch_user
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
emake install DESTDIR="${D}"
|
||||||
|
else
|
||||||
|
emake install DESTDIR="${D}" || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
snail.configure
|
||||||
|
}
|
Loading…
Reference in New Issue