blob: 91fd0f335f450c58ab7934ca5489b264951e8a50 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/dev-lang/nasm/nasm-0.98-r4.ebuild,v 1.2 2002/07/11 06:30:20 drobbins Exp $
S=${WORKDIR}/${P}
DESCRIPTION="groovy little assembler"
SRC_URI="ftp://ftp.kernel.org/pub/software/devel/nasm/source/${P}.tar.bz2
ftp://ftp.de.kernel.org/pub/software/devel/nasm/source/${P}.tar.bz2
ftp://ftp.uk.kernel.org/pub/software/devel/nasm/source/${P}.tar.bz2"
HOMEPAGE="http://nasm.sourceforge.net/"
DEPEND="virtual/glibc sys-apps/texinfo"
RDEPEND="virtual/glibc"
if [ -z "`use build`" ]; then
DEPEND="${DEPEND} sys-devel/perl"
fi
src_compile() {
./configure --prefix=/usr || die
if [ "`use build`" ]; then
make nasm
else
make || die
cd doc
make || die
fi
}
src_install() {
if [ "`use build`" ]; then
dobin nasm
else
dobin nasm ndisasm
dobin rdoff/ldrdf rdoff/rdf2bin rdoff/rdfdump rdoff/rdflib rdoff/rdx
doman nasm.1 ndisasm.1
dodoc COPYING Changes Licence MODIFIED Readme Wishlist
docinto txt
cd doc
dodoc nasmdoc.txt
dohtml html/*.html
docinto ps
dodoc nasmdoc.ps
docinto rtf
dodoc nasmdoc.rtf
doinfo info/*.info*
fi
}
|