blob: 81c9c11d3b4224b0639e7762541ba05b9734c9d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="A replacement master boot record for IBM-PC compatible computers"
HOMEPAGE="https://www.chiark.greenend.org.uk/~neilt/mbr/"
SRC_URI="https://www.chiark.greenend.org.uk/~neilt/mbr/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-alpha amd64 -ppc -sparc x86"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="
sys-devel/bin86
test? ( dev-vcs/rcs )"
RDEPEND=""
src_prepare() {
# do not treat warnings as errors
sed -i -e "s: -Werror::" {,harness/}Makefile.{in,am} || die
default
}
src_install() {
dosbin install-mbr
doman install-mbr.8
dodoc AUTHORS ChangeLog install-mbr.8 NEWS README TODO
}
pkg_postinst() {
elog "To install the MBR, run /sbin/install-mbr"
}
|