/[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.3 - (hide annotations) (download)
Thu Jul 26 21:51:14 2012 UTC (23 months, 3 weeks ago) by ryao
Branch: MAIN
Changes since 1.2: +2 -2 lines
Keyword ~amd64-fbsd and ~x86-fbsd

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 cardoe 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ryao 1.3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/seabios/seabios-1.7.0.ebuild,v 1.2 2012/07/22 03:31:45 cardoe Exp $
4 cardoe 1.1
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 ryao 1.3 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd"
20 cardoe 1.1 SRC_URI="http://www.linuxtogo.org/~kevin/SeaBIOS/${P}.tar.gz
21 cardoe 1.2 http://dev.gentoo.org/~cardoe/distfiles/${P}-bins.tar.xz
22 cardoe 1.1 ${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 cardoe 1.2 if use amd64 || use x86 ; then
57     emake out/bios.bin
58     fi
59 cardoe 1.1 }
60    
61     src_install() {
62     insinto /usr/share/seabios
63 cardoe 1.2 if use amd64 || use x86 ; then
64     doins out/bios.bin
65     else
66     doins bins/bios.bin
67     fi
68 cardoe 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20