diff options
author | Peter Alfredsen <loki_val@gentoo.org> | 2009-04-05 12:13:47 +0000 |
---|---|---|
committer | Peter Alfredsen <loki_val@gentoo.org> | 2009-04-05 12:13:47 +0000 |
commit | f2f8c321248c21a52a593d5b8df7745d6157f470 (patch) | |
tree | c69ba381da6caa5d3e2d0d457f542f5e30a46366 /dev-dotnet | |
parent | Initial commit, ebuild by me. (diff) | |
download | gentoo-2-f2f8c321248c21a52a593d5b8df7745d6157f470.tar.gz gentoo-2-f2f8c321248c21a52a593d5b8df7745d6157f470.tar.bz2 gentoo-2-f2f8c321248c21a52a593d5b8df7745d6157f470.zip |
Initial commit, ebuild by me.
(Portage version: 2.2_rc28/cvs/Linux x86_64)
Diffstat (limited to 'dev-dotnet')
-rw-r--r-- | dev-dotnet/mono-nat/ChangeLog | 10 | ||||
-rw-r--r-- | dev-dotnet/mono-nat/files/mono-nat.pc.in | 8 | ||||
-rw-r--r-- | dev-dotnet/mono-nat/files/mono.snk | bin | 0 -> 596 bytes | |||
-rw-r--r-- | dev-dotnet/mono-nat/metadata.xml | 5 | ||||
-rw-r--r-- | dev-dotnet/mono-nat/mono-nat-1.0.ebuild | 41 |
5 files changed, 64 insertions, 0 deletions
diff --git a/dev-dotnet/mono-nat/ChangeLog b/dev-dotnet/mono-nat/ChangeLog new file mode 100644 index 000000000000..9e0516cd3cc4 --- /dev/null +++ b/dev-dotnet/mono-nat/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-dotnet/mono-nat +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/mono-nat/ChangeLog,v 1.1 2009/04/05 12:13:47 loki_val Exp $ + +*mono-nat-1.0 (05 Apr 2009) + + 05 Apr 2009; Peter Alfredsen <loki_val@gentoo.org> +files/mono.snk, + +files/mono-nat.pc.in, +metadata.xml, +mono-nat-1.0.ebuild: + Initial commit, ebuild by me. + diff --git a/dev-dotnet/mono-nat/files/mono-nat.pc.in b/dev-dotnet/mono-nat/files/mono-nat.pc.in new file mode 100644 index 000000000000..33d48a810842 --- /dev/null +++ b/dev-dotnet/mono-nat/files/mono-nat.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/mono-nat/files/mono.snk b/dev-dotnet/mono-nat/files/mono.snk Binary files differnew file mode 100644 index 000000000000..380116c18fc3 --- /dev/null +++ b/dev-dotnet/mono-nat/files/mono.snk diff --git a/dev-dotnet/mono-nat/metadata.xml b/dev-dotnet/mono-nat/metadata.xml new file mode 100644 index 000000000000..e01adbb307db --- /dev/null +++ b/dev-dotnet/mono-nat/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/mono-nat/mono-nat-1.0.ebuild b/dev-dotnet/mono-nat/mono-nat-1.0.ebuild new file mode 100644 index 000000000000..6b4fa932658f --- /dev/null +++ b/dev-dotnet/mono-nat/mono-nat-1.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/mono-nat/mono-nat-1.0.ebuild,v 1.1 2009/04/05 12:13:47 loki_val Exp $ + +EAPI=2 + +inherit mono multilib + +MY_PN=Mono.Nat + +DESCRIPTION="Mono.Nat is a C# library used for automatic port forwarding, using either uPnP or nat-pmp." +HOMEPAGE="http://www.monotorrent.com/" +SRC_URI="http://monotorrent.com/Files/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +RDEPEND=">=dev-lang/mono-2.0.1" +DEPEND="${RDEPEND} + >=dev-util/pkgconfig-0.23" + +src_compile() { + emake -j1 ASSEMBLY_COMPILER_COMMAND="/usr/bin/gmcs -keyfile:${FILESDIR}/mono.snk" +} + +src_install() { + egacinstall $(find . -name "Mono.Nat.dll") + 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/mono-nat/Mono.Nat.dll;' \ + "${FILESDIR}"/${PN}.pc.in > "${D}"/usr/$(get_libdir)/pkgconfig/mono.nat.pc \ + || die "sed failed" + PKG_CONFIG_PATH="${D}/usr/lib64/pkgconfig/" pkg-config --exists monotorrent || die ".pc file failed to validate." + eend $? +} |