From 28656f9a61339888843b413079bb6c9f30bcc715 Mon Sep 17 00:00:00 2001 From: Peter Alfredsen Date: Sun, 5 Apr 2009 11:59:27 +0000 Subject: Initial commit, ebuild by me. (Portage version: 2.2_rc28/cvs/Linux x86_64) --- dev-dotnet/nlog/ChangeLog | 11 ++++++ dev-dotnet/nlog/files/nlog-1.0-build.patch | 29 ++++++++++++++++ dev-dotnet/nlog/files/nlog.pc.in | 8 +++++ dev-dotnet/nlog/metadata.xml | 5 +++ dev-dotnet/nlog/nlog-1.0.ebuild | 54 ++++++++++++++++++++++++++++++ 5 files changed, 107 insertions(+) create mode 100644 dev-dotnet/nlog/ChangeLog create mode 100644 dev-dotnet/nlog/files/nlog-1.0-build.patch create mode 100644 dev-dotnet/nlog/files/nlog.pc.in create mode 100644 dev-dotnet/nlog/metadata.xml create mode 100644 dev-dotnet/nlog/nlog-1.0.ebuild (limited to 'dev-dotnet/nlog') diff --git a/dev-dotnet/nlog/ChangeLog b/dev-dotnet/nlog/ChangeLog new file mode 100644 index 000000000000..752a2be62416 --- /dev/null +++ b/dev-dotnet/nlog/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-dotnet/nlog +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/nlog/ChangeLog,v 1.1 2009/04/05 11:59:26 loki_val Exp $ + +*nlog-1.0 (05 Apr 2009) + + 05 Apr 2009; Peter Alfredsen + +files/nlog-1.0-build.patch, +files/nlog.pc.in, +metadata.xml, + +nlog-1.0.ebuild: + Initial commit, ebuild by me. + diff --git a/dev-dotnet/nlog/files/nlog-1.0-build.patch b/dev-dotnet/nlog/files/nlog-1.0-build.patch new file mode 100644 index 000000000000..bbfdd873e08b --- /dev/null +++ b/dev-dotnet/nlog/files/nlog-1.0-build.patch @@ -0,0 +1,29 @@ +diff -NrU5 NLog-1.0.orig/NLog.build NLog-1.0/NLog.build +--- NLog-1.0.orig/NLog.build 2009-02-04 22:22:45.000000000 +0100 ++++ NLog-1.0/NLog.build 2009-02-04 22:25:03.000000000 +0100 +@@ -148,11 +148,11 @@ + + + + + +- ++ + + + + + +@@ -719,11 +719,11 @@ + + + + + +- + + + diff --git a/dev-dotnet/nlog/files/nlog.pc.in b/dev-dotnet/nlog/files/nlog.pc.in new file mode 100644 index 000000000000..33d48a810842 --- /dev/null +++ b/dev-dotnet/nlog/files/nlog.pc.in @@ -0,0 +1,8 @@ +prefix=${pcfiledir}/../.. +exec_prefix=${prefix} +libdir=${exec_prefix}/@LIBDIR@ + +Name: @PACKAGENAME@ +Description: @DESCRIPTION@ +Version: @VERSION@ +Libs: @LIBS@ diff --git a/dev-dotnet/nlog/metadata.xml b/dev-dotnet/nlog/metadata.xml new file mode 100644 index 000000000000..e01adbb307db --- /dev/null +++ b/dev-dotnet/nlog/metadata.xml @@ -0,0 +1,5 @@ + + + + dotnet + diff --git a/dev-dotnet/nlog/nlog-1.0.ebuild b/dev-dotnet/nlog/nlog-1.0.ebuild new file mode 100644 index 000000000000..9922e07630a6 --- /dev/null +++ b/dev-dotnet/nlog/nlog-1.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/nlog/nlog-1.0.ebuild,v 1.1 2009/04/05 11:59:26 loki_val Exp $ + +EAPI=2 + +MY_PN=NLog +MY_P=${MY_PN}-${PV} + +inherit mono multilib eutils + +DESCRIPTION="NLog is a .NET logging library designed with simplicity and flexibility in mind." +HOMEPAGE="http://www.nlog-project.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +RDEPEND=">=dev-lang/mono-2.0.1" +DEPEND="${RDEPEND} + >=dev-util/pkgconfig-0.23 + app-arch/unzip + dev-dotnet/nant" +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}/${P}-build.patch" +} + +src_compile() { + nant -t:mono-2.0 -D:warnaserror=false || die "Nant build failed" +} + +src_install() { + for dll in $(find build -name "*.dll") + do + pushd $(dirname ${dll}) &> /dev/null + egacinstall ${dll##*/} + popd &> /dev/null + done + dodir /usr/$(get_libdir)/pkgconfig + ebegin "Installing .pc file" + sed \ + -e "s:@LIBDIR@:$(get_libdir):" \ + -e "s:@PACKAGENAME@:${MY_PN}:" \ + -e "s:@DESCRIPTION@:${DESCRIPTION}:" \ + -e "s:@VERSION@:${PV}:" \ + -e 's;@LIBS@;-r:${libdir}/mono/nlog/NLog.dll;' \ + "${FILESDIR}"/${PN}.pc.in > "${D}"/usr/$(get_libdir)/pkgconfig/${PN}.pc + PKG_CONFIG_PATH="${D}/usr/lib64/pkgconfig/" pkg-config --exists ${PN} || die ".pc file failed to validate." + eend $? + dodoc README.txt || die "dodoc failed" +} -- cgit v1.2.3-65-gdbad