# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-dotnet/pnet/pnet-0.6.2.ebuild,v 1.5 2004/03/06 22:17:12 scandium Exp $ inherit eutils DESCRIPTION="Portable .NET runtime, compiler, tools" HOMEPAGE="http://www.dotgnu.org/" SRC_URI="mirror://gnu/dotgnu/pnet/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ppc sparc" IUSE="" DEPEND=">=dev-util/treecc-0.2.8 !dev-dotnet/mono" src_unpack() { # Small patch to fix compilation on system which have nptl built into glibc unpack ${A} cd ${S} if have_NPTL; then epatch ${FILESDIR}/pt_defs.h.diff fi } src_compile() { econf || die MAKEOPTS="${MAKEOPTS} -j1" emake || die } src_install() { einstall || die dodoc AUTHORS COPYING ChangeLog HACKING INSTALL NEWS README dodoc doc/gtk-sharp.HOWTO dohtml doc/*.html # init script exeinto /etc/init.d ; newexe ${PORTDIR}/dev-dotnet/mono/files/dotnet.init dotnet insinto /etc/conf.d ; newins ${PORTDIR}/dev-dotnet/mono/files/dotnet.conf dotnet } pkg_postinst() { echo einfo "If you want to avoid typing ' program.exe'" einfo "you can configure your runtime in /etc/conf.d/dotnet" einfo "Use /etc/init.d/dotnet to register your runtime" echo }