# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $ inherit mono eutils MY_P="${P/_r/-r}-src" DESCRIPTION=".NET build tool" HOMEPAGE="http://nant.sourceforge.net/" SRC_URI="mirror://sourceforge/nant/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="" DEPEND=">=dev-lang/mono-1.1.10 >=dev-dotnet/log4net-1.2.10" S=${WORKDIR}/${P/_r/-r} src_unpack() { unpack ${A} cd ${S} # Fix a problem with duplicate building caused by the doc= target # ebegin "Fixing duplicate building" # for file in $(find ${S}/src -name '*.build') # do # sed -i "s: doc=.*>:>:" ${file} # done # eend $? # When we have mono-1.1.x, we should build against 2.0, # so that people using nant can use either the 2.0 or 1.0 profiles # sed -i -e "s/-f:NAnt.build/-t:mono-2.0 -f:NAnt.build/" \ # ${S}/Makefile || die "sed failed" } src_compile() { emake -j1 || die } src_install() { make prefix=${D}/usr install || die # Fix ${D} showing up in the nant wrapper script, as well as silencing # warnings related to the log4net library sed -i \ -e "s:${D}::" \ -e "2iexport MONO_SILENT_WARNING=1" \ ${D}/usr/bin/nant dodoc README.txt }