public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/monotorrent/files/, dev-dotnet/monotorrent/
@ 2015-10-29  7:21 Heather Cynede
  0 siblings, 0 replies; only message in thread
From: Heather Cynede @ 2015-10-29  7:21 UTC (permalink / raw
  To: gentoo-commits

commit:     e8555160150463ff8b10fd879c007a52f91596cd
Author:     ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
AuthorDate: Wed Oct 28 15:10:51 2015 +0000
Commit:     Heather Cynede <cynede <AT> gentoo <DOT> org>
CommitDate: Wed Oct 28 15:10:51 2015 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=e8555160

copy original version from main tree

 dev-dotnet/monotorrent/ChangeLog               | 48 +++++++++++++++++++++++++
 dev-dotnet/monotorrent/files/monotorrent.pc.in |  8 +++++
 dev-dotnet/monotorrent/metadata.xml            |  5 +++
 dev-dotnet/monotorrent/monotorrent-0.80.ebuild | 49 ++++++++++++++++++++++++++
 4 files changed, 110 insertions(+)

diff --git a/dev-dotnet/monotorrent/ChangeLog b/dev-dotnet/monotorrent/ChangeLog
new file mode 100644
index 0000000..5b9f2b0
--- /dev/null
+++ b/dev-dotnet/monotorrent/ChangeLog
@@ -0,0 +1,48 @@
+# ChangeLog for dev-dotnet/monotorrent
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/monotorrent/ChangeLog,v 1.11 2012/05/04 03:56:55 jdhore Exp $
+
+  04 May 2012; Jeff Horelick <jdhore@gentoo.org> monotorrent-0.80.ebuild:
+  dev-util/pkgconfig -> virtual/pkgconfig
+
+  22 Jan 2012; Pacho Ramos <pacho@gentoo.org> -monotorrent-0.72.ebuild:
+  Drop old.
+
+  11 May 2011; Christoph Mende <angelos@gentoo.org> monotorrent-0.80.ebuild:
+  Stable on amd64 wrt bug #359651
+
+  07 May 2011; Thomas Kahle <tomka@gentoo.org> monotorrent-0.80.ebuild:
+  x86 stable per bug 359651
+
+*monotorrent-0.80 (27 Feb 2011)
+
+  27 Feb 2011; Pacho Ramos <pacho@gentoo.org> +monotorrent-0.80.ebuild:
+  Version bump.
+
+  31 Aug 2009; Peter Alfredsen <loki_val@gentoo.org>
+  -monotorrent-0.70.ebuild, monotorrent-0.72.ebuild, -files/mono.snk:
+  Use mono.snk.bz2 from mirrors, drop old.
+
+  21 Jul 2009; Christian Faulhammer <fauli@gentoo.org>
+  monotorrent-0.72.ebuild:
+  stable x86, bug 273254
+
+  20 Jul 2009; Jeremy Olexa <darkside@gentoo.org> monotorrent-0.72.ebuild:
+  amd64 stable, bug 273254
+
+  06 May 2009; Peter Alfredsen <loki_val@gentoo.org>
+  monotorrent-0.70.ebuild, monotorrent-0.72.ebuild:
+  Update HOMEPAGE and SRC_URI
+
+*monotorrent-0.72 (27 Apr 2009)
+
+  27 Apr 2009; Peter Alfredsen <loki_val@gentoo.org>
+  +monotorrent-0.72.ebuild:
+  Bump
+
+*monotorrent-0.70 (05 Apr 2009)
+
+  05 Apr 2009; Peter Alfredsen <loki_val@gentoo.org> +files/mono.snk,
+  +files/monotorrent.pc.in, +metadata.xml, +monotorrent-0.70.ebuild:
+  Initial commit, ebuild by me.
+

diff --git a/dev-dotnet/monotorrent/files/monotorrent.pc.in b/dev-dotnet/monotorrent/files/monotorrent.pc.in
new file mode 100644
index 0000000..33d48a8
--- /dev/null
+++ b/dev-dotnet/monotorrent/files/monotorrent.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/monotorrent/metadata.xml b/dev-dotnet/monotorrent/metadata.xml
new file mode 100644
index 0000000..e01adbb
--- /dev/null
+++ b/dev-dotnet/monotorrent/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/monotorrent/monotorrent-0.80.ebuild b/dev-dotnet/monotorrent/monotorrent-0.80.ebuild
new file mode 100644
index 0000000..dfa84b7
--- /dev/null
+++ b/dev-dotnet/monotorrent/monotorrent-0.80.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+
+inherit mono multilib
+
+DESCRIPTION="Monotorrent is an open source C# bittorrent library"
+HOMEPAGE="http://projects.qnetp.net/projects/show/monotorrent"
+SRC_URI="http://projects.qnetp.net/attachments/download/28/${P}.tar.gz
+	mirror://gentoo/mono.snk.bz2"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RDEPEND=">=dev-lang/mono-2.0.1"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig"
+
+# The hack we do to get the dll installed in the GAC makes the unit-tests
+# defunct.
+RESTRICT="test"
+
+src_prepare() {
+	sed -i	\
+		-e "/InternalsVisibleTo/d" \
+		MonoTorrent/AssemblyInfo.cs* || die
+}
+
+src_compile() {
+	emake -j1 ASSEMBLY_COMPILER_COMMAND="/usr/bin/gmcs -keyfile:${WORKDIR}/mono.snk"
+}
+
+src_install() {
+	egacinstall $(find . -name "MonoTorrent.dll")
+	dodir /usr/$(get_libdir)/pkgconfig
+	ebegin "Installing .pc file"
+	sed  \
+		-e "s:@LIBDIR@:$(get_libdir):" \
+		-e "s:@PACKAGENAME@:${PN}:" \
+		-e "s:@DESCRIPTION@:${DESCRIPTION}:" \
+		-e "s:@VERSION@:${PV}:" \
+		-e 's;@LIBS@;-r:${libdir}/mono/monotorrent/MonoTorrent.dll;' \
+		"${FILESDIR}"/${PN}.pc.in > "${D}"/usr/$(get_libdir)/pkgconfig/${PN}.pc
+	PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --exists monotorrent || die ".pc file failed to validate."
+	eend $?
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-29  7:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-29  7:21 [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/monotorrent/files/, dev-dotnet/monotorrent/ Heather Cynede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox