# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit mono eutils DESCRIPTION=".NET build tool" HOMEPAGE="http://nant.sourceforge.net/" #SRC_URI="mirror://gentoo/${P}.tar.bz2" SRC_URI="http://dev.gentoo.org/~latexer/files/tarballs/${P}.tar.bz2" LICENSE="" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=dev-dotnet/mono-1.0" S=${WORKDIR}/${P} src_unpack() { unpack ${A} # Fix a problem with duplicate building caused by the doc= target for file in $(find ${S}/src -name '*.build') do sed -i "s: doc=.*>:>:" \ ${file} done } src_compile() { mono bin/NAnt.exe build -D:install.prefix=/usr || die } src_install() { make install prefix=${D}/usr || die sed -i \ "s:${D}::" \ ${D}/usr/bin/nant }