| 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-devel/bin86/bin86-0.16.18.ebuild,v 1.2 2012/07/29 15:44:56 vapier Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
inherit toolchain-funcs eutils
|
| 8 |
|
| 9 |
DESCRIPTION="Assembler and loader used to create kernel bootsector"
|
| 10 |
HOMEPAGE="http://www.debath.co.uk/"
|
| 11 |
SRC_URI="http://www.debath.co.uk/dev86/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
| 16 |
IUSE=""
|
| 17 |
|
| 18 |
src_prepare() {
|
| 19 |
sed -i \
|
| 20 |
-e '/^PREFIX/s:=.*:=$(DESTDIR)/usr:' \
|
| 21 |
-e '/^MANDIR/s:)/man/man1:)/share/man/man1:' \
|
| 22 |
-e '/^INSTALL_OPTS/s:-s::' \
|
| 23 |
-e "/^CFLAGS/s:=.*:=${CFLAGS} -D_POSIX_SOURCE ${CPPFLAGS}:" \
|
| 24 |
-e "/^LDFLAGS/s:=.*:=${LDFLAGS}:" \
|
| 25 |
Makefile || die
|
| 26 |
epatch "${FILESDIR}"/${P}-headers.patch #347817
|
| 27 |
epatch "${FILESDIR}"/${PN}-0.16.17-amd64-build.patch
|
| 28 |
tc-export CC
|
| 29 |
}
|
| 30 |
|
| 31 |
src_install() {
|
| 32 |
dodir /usr/bin /usr/share/man/man1
|
| 33 |
default
|
| 34 |
}
|