# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-lang/boo/boo-0.9.3.3457.ebuild,v 1.4 2010/09/23 22:14:43 hwoarang Exp $ EAPI=2 inherit multilib mono fdo-mime eutils DESCRIPTION="A wrist friendly language for the CLI" HOMEPAGE="http://boo.codehaus.org/" SRC_URI="http://dist.codehaus.org/boo/distributions/${P}-src.zip" LICENSE="BSD" SLOT="0" KEYWORDS="amd64 ppc x86" IUSE="" RDEPEND=">=dev-lang/mono-2.0 x11-libs/gtksourceview:2.0" DEPEND="${RDEPEND} x11-misc/shared-mime-info app-arch/unzip >=dev-dotnet/nant-0.86_beta1" RESTRICT="test" pkg_setup() { if /usr/bin/gacutil -l|grep Boo.Lang.Extensions &> /dev/null then eerror "$(best_version ${CATEGORY}/${PN}) has installed Boo.Lang.Extensions into the GAC." eerror "This is a bug, that will cause compilation of ${CATEGORY}/${PF} to fail. It has" eerror "been fixed in this version. For now, it requires that you uninstall" eerror "${CATEGORY}/${PN} before updating." eerror "Please run: emerge -C ${CATEGORY}/${PN} and try again." die "Please run: emerge -C ${CATEGORY}/${PN} and try again." fi # gacutil may generate a root-owned directory in ${T} which makes nant fail afterwards (bug #269907) rm -rf "${T}/.wapi" } src_prepare() { sed -i -e 's: Boo.Microsoft.Build.Tasks, update-vs2005-env,::' default.build || die sed -i -e 's@${libdir}/boo@${libdir}/mono/boo@g' \ extras/boo.pc.in || die epatch "${FILESDIR}/${PN}-0.9.1.3287-GACproblems.patch" epatch "${FILESDIR}/${PN}-0.7.8.2559-gtksourceview2.patch" } src_compile() { nant -t:mono-2.0 \ -D:install.prefix=/usr \ -D:install.libdir=/usr/$(get_libdir) \ set-release-configuration all|| die "Compilation failed" } src_install() { nant install -D:install.buildroot="${D}" \ -D:install.prefix="${D}"/usr \ -D:install.share="${D}"/usr/share \ -D:install.libdir="${D}"/usr/lib \ -D:install.bindir="${D}/usr/bin" \ -D:fakeroot.sharedmime="${D}"/usr \ -D:fakeroot.gsv="${D}"/usr \ || die "install failed" rm -rf "${D}"/usr/share/gtksourceview-1.0 || die mono_multilib_comply } pkg_postinst() { fdo-mime_mime_database_update } pkg_postrm() { fdo-mime_mime_database_update }