# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-lang/nasm/nasm-0.98.38.ebuild,v 1.8 2004/09/27 07:02:28 lv Exp $ inherit eutils DESCRIPTION="groovy little assembler" HOMEPAGE="http://nasm.sourceforge.net/" SRC_URI="mirror://sourceforge/nasm/${P}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="-* x86 amd64" IUSE="doc build" DEPEND="!build? ( dev-lang/perl ) doc? ( virtual/ghostscript sys-apps/texinfo ) sys-devel/gcc" src_compile() { ./configure --prefix=/usr || die if use build; then make nasm || die else make all rdf || die if use doc; then make doc || die fi fi } src_install() { if use build; then dobin nasm else dobin nasm ndisasm rdoff/{ldrdf,rdf2bin,rdf2ihx,rdfdump,rdflib,rdx} dosym /usr/bin/rdf2bin /usr/bin/rdf2com doman nasm.1 ndisasm.1 dodoc AUTHORS CHANGES ChangeLog INSTALL README TODO if use doc; then doinfo doc/info/* dohtml doc/html/* dodoc doc/nasmdoc.* fi fi }