/[gentoo-x86]/sys-apps/seabios/seabios-1.7.0.ebuild
Gentoo

Contents of /sys-apps/seabios/seabios-1.7.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Jul 28 22:25:53 2012 UTC (2 years ago) by cardoe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Moving sys-apps/seabios to sys-firmware/seabios

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/seabios/seabios-1.7.0.ebuild,v 1.3 2012/07/26 21:51:14 ryao Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="2"
8
9 inherit python
10
11 #BACKPORTS=1
12
13 if [[ ${PV} = *9999* || ! -z "${EGIT_COMMIT}" ]]; then
14 EGIT_REPO_URI="git://git.seabios.org/seabios.git"
15 inherit git-2
16 KEYWORDS=""
17 SRC_URI=""
18 else
19 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd"
20 SRC_URI="http://www.linuxtogo.org/~kevin/SeaBIOS/${P}.tar.gz
21 http://dev.gentoo.org/~cardoe/distfiles/${P}-bins.tar.xz
22 ${BACKPORTS:+http://dev.gentoo.org/~cardoe/distfiles/${P}-bp-${BACKPORTS}.tar.bz2}"
23 fi
24
25 DESCRIPTION="Open Source implementation of a 16-bit x86 BIOS"
26 HOMEPAGE="http://www.seabios.org"
27
28 LICENSE="LGPL-3 GPL-3"
29 SLOT="0"
30 IUSE=""
31
32 DEPEND=""
33 RDEPEND="${DEPEND}
34 !app-emulation/qemu
35 !<=app-emulation/qemu-kvm-0.15.0"
36
37 pkg_setup() {
38 python_set_active_version 2
39 }
40
41 src_prepare() {
42 if [[ -z "${EGIT_COMMIT}" ]]; then
43 sed -e "s/VERSION=.*/VERSION=${PV}/" \
44 -i "${S}/Makefile"
45 else
46 sed -e "s/VERSION=.*/VERSION=${PV}_pre${EGIT_COMMIT}/" \
47 -i "${S}/Makefile"
48 fi
49 }
50
51 src_configure() {
52 :
53 }
54
55 src_compile() {
56 if use amd64 || use x86 ; then
57 emake out/bios.bin
58 fi
59 }
60
61 src_install() {
62 insinto /usr/share/seabios
63 if use amd64 || use x86 ; then
64 doins out/bios.bin
65 else
66 doins bins/bios.bin
67 fi
68 }

  ViewVC Help
Powered by ViewVC 1.1.20