summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Alfredsen <loki_val@gentoo.org>2009-04-05 11:59:27 +0000
committerPeter Alfredsen <loki_val@gentoo.org>2009-04-05 11:59:27 +0000
commit28656f9a61339888843b413079bb6c9f30bcc715 (patch)
tree87bba0019bdb78a47ce2755b6151bec6bd1931fc /dev-dotnet/nlog
parentRemove old versions. (diff)
downloadgentoo-2-28656f9a61339888843b413079bb6c9f30bcc715.tar.gz
gentoo-2-28656f9a61339888843b413079bb6c9f30bcc715.tar.bz2
gentoo-2-28656f9a61339888843b413079bb6c9f30bcc715.zip
Initial commit, ebuild by me.
(Portage version: 2.2_rc28/cvs/Linux x86_64)
Diffstat (limited to 'dev-dotnet/nlog')
-rw-r--r--dev-dotnet/nlog/ChangeLog11
-rw-r--r--dev-dotnet/nlog/files/nlog-1.0-build.patch29
-rw-r--r--dev-dotnet/nlog/files/nlog.pc.in8
-rw-r--r--dev-dotnet/nlog/metadata.xml5
-rw-r--r--dev-dotnet/nlog/nlog-1.0.ebuild54
5 files changed, 107 insertions, 0 deletions
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 <loki_val@gentoo.org>
+ +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 @@
+
+ <property name="nlog.version" value="${nlog.version.major}.${nlog.version.minor}.${nlog.version.revision}.${nlog.version.build}" />
+ </target>
+
+ <target name="NLog" depends="configure, update-build-number">
+- <csc target="library" output="${nlog.dir}/NLog.dll" doc="${nlog.dir}/NLog.xml" define="${nlog.define}" debug="${nlog.debug}" optimize="${nlog.optimize}" warninglevel="${csc.warninglevel}" warnaserror="true">
++ <csc target="library" output="${nlog.dir}/NLog.dll" doc="${nlog.dir}/NLog.xml" define="${nlog.define}" debug="${nlog.debug}" optimize="${nlog.optimize}" warninglevel="${csc.warninglevel}" warnaserror="false">
+ <sources basedir="src">
+ <include name="NLog/**/*.cs" />
+ </sources>
+ <references>
+ <include name="mscorlib.dll" />
+@@ -719,11 +719,11 @@
+ <namespaces>
+ <namespace prefix="ms" uri="urn:schemas-microsoft-com:asm.v1" />
+ </namespaces>
+ </xmlpoke>
+
+- <exec program="${path::combine(framework::get-framework-directory(framework::get-target-framework()),'al')}"
++ <exec program="/usr/bin/al"
+ commandline="/nologo /link:Policy.${nlog.version.major}.${nlog.version.minor}.NLog.xml /out:Policy.${nlog.version.major}.${nlog.version.minor}.NLog.dll /keyfile:${path::combine(project::get-base-directory(),'src/NLog.snk')} /version:1.0.0.0"
+ workingdir="${nlog.dir}" />
+ </if>
+ </target>
+
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>dotnet</herd>
+</pkgmetadata>
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"
+}