# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils wxwidgets DESCRIPTION="wxWidgets bindings for mono" HOMEPAGE="http://wxnet.sf.net/" SRC_URI="mirror://gentoo/${P}.tgz" LICENSE="wxWinLL-3" SLOT="0" KEYWORDS="~x86" IUSE="gtk2 unicode" RDEPEND=">=dev-dotnet/mono-1.0.4-r1 >=x11-libs/wxGTK-2.5.3" DEPEND="sys-apps/sed dev-lang/perl" S="${WORKDIR}/wx.NET" src_unpack() { unpack ${A} || die "Unpacking the source failed" cd ${S}/Build/Linux || die "Could not change directory." cp Defs.in.template Defs.in epatch ${FILESDIR}/Defs.in.patch || die "epatch failed on Defs.in.patch" } src_compile() { mkdir -p ${S}/wx/bin dodir /usr/lib/wxnet cd ${S}/Build/Linux export WX_GTK_VER="2.5" if use unicode; then need-wxwidgets unicode || die "Emerge wxGTK with unicode in USE" elif use gtk2; then need-wxwidgets gtk2 || die "Emerge wxGTK with gtk2 in USE" else die "You need either a gtk2 or gtk2+unicode version of wxGTK" fi cp /usr/lib/wx/config/${WX_CONFIG_NAME} ${S}/wx/bin/wx-config \ || die "Failed to copy wx-config" make wxnet || die "make wxnet failed" } src_install() { dodir /usr/share/doc/${PF}/{Samples,Bin} cp -R ${S}/Samples/* ${D}/usr/share/doc/${PF}/Samples/ cp ${S}/Sample-Launcher.sh ${D}/usr/share/doc/${PF}/ cd ${S}/Bin dolib libwx-c.so *dll dodoc README.txt cp wxnet-run *exe ${D}/usr/share/doc/${PF}/Bin/ } pkg_postinst() { einfo "You can view a demo by running:" einfo "/usr/share/doc/${PF}/SampleLauncher.sh" }