summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Alfredsen <loki_val@gentoo.org>2008-12-08 22:32:52 +0000
committerPeter Alfredsen <loki_val@gentoo.org>2008-12-08 22:32:52 +0000
commit5a29cc3abcae1a05ea2ba0c56af0375e51260d34 (patch)
treef3a9d971a976673f20025d72ceb134092a143144 /www-apache/mod_mono/mod_mono-2.0.ebuild
parentAdded USE=audioscrobbler (diff)
downloadgentoo-2-5a29cc3abcae1a05ea2ba0c56af0375e51260d34.tar.gz
gentoo-2-5a29cc3abcae1a05ea2ba0c56af0375e51260d34.tar.bz2
gentoo-2-5a29cc3abcae1a05ea2ba0c56af0375e51260d34.zip
Bump to 2.0, bug 250257.
(Portage version: 2.2_rc17/cvs/Linux 2.6.28-rc6 x86_64)
Diffstat (limited to 'www-apache/mod_mono/mod_mono-2.0.ebuild')
-rw-r--r--www-apache/mod_mono/mod_mono-2.0.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/www-apache/mod_mono/mod_mono-2.0.ebuild b/www-apache/mod_mono/mod_mono-2.0.ebuild
new file mode 100644
index 000000000000..f935388b28e6
--- /dev/null
+++ b/www-apache/mod_mono/mod_mono-2.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_mono/mod_mono-2.0.ebuild,v 1.1 2008/12/08 22:32:52 loki_val Exp $
+
+inherit apache-module eutils
+
+KEYWORDS="~amd64 ~ppc ~x86"
+
+DESCRIPTION="Apache module for Mono."
+HOMEPAGE="http://www.go-mono.com/"
+SRC_URI="http://ftp.novell.com/pub/mono/sources/mod_mono/${P}.tar.bz2"
+LICENSE="Apache-1.1"
+SLOT="0"
+IUSE="aspnet2 debug"
+
+DEPEND=">=dev-dotnet/xsp-${PV}"
+RDEPEND="${DEPEND}"
+
+APACHE2_MOD_FILE="${S}/src/.libs/${PN}.so"
+APACHE2_MOD_CONF="1.9/70_${PN}"
+APACHE2_MOD_DEFINE="MONO"
+
+DOCFILES="AUTHORS ChangeLog COPYING INSTALL NEWS README"
+
+need_apache
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ use aspnet2 && epatch "${FILESDIR}/mono_auto_application_aspnet2.patch"
+}
+
+src_compile() {
+ econf \
+ $(use_enable debug) \
+ --disable-dependency-tracking \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ mv -f "src/.libs/${PN}.so.0.0.0" "src/.libs/${PN}.so"
+ apache-module_src_install
+ doman man/mod_mono.8
+}
+
+pkg_postinst() {
+ apache-module_pkg_postinst
+
+ elog "To enable mod_mono, add \"-D MONO\" to your Apache's"
+ elog "conf.d configuration file. Additionally, to view sample"
+ elog "ASP.NET applications, add \"-D MONO_DEMO\" too."
+ elog ""
+ elog "If you want mod_mono to handle AutoHosting requests using"
+ elog "ASP.NET 2.0 engine, enable the aspnet2 USE flag."
+}