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 <[email protected]> monotorrent-0.80.ebuild: + dev-util/pkgconfig -> virtual/pkgconfig + + 22 Jan 2012; Pacho Ramos <[email protected]> -monotorrent-0.72.ebuild: + Drop old. + + 11 May 2011; Christoph Mende <[email protected]> monotorrent-0.80.ebuild: + Stable on amd64 wrt bug #359651 + + 07 May 2011; Thomas Kahle <[email protected]> monotorrent-0.80.ebuild: + x86 stable per bug 359651 + +*monotorrent-0.80 (27 Feb 2011) + + 27 Feb 2011; Pacho Ramos <[email protected]> +monotorrent-0.80.ebuild: + Version bump. + + 31 Aug 2009; Peter Alfredsen <[email protected]> + -monotorrent-0.70.ebuild, monotorrent-0.72.ebuild, -files/mono.snk: + Use mono.snk.bz2 from mirrors, drop old. + + 21 Jul 2009; Christian Faulhammer <[email protected]> + monotorrent-0.72.ebuild: + stable x86, bug 273254 + + 20 Jul 2009; Jeremy Olexa <[email protected]> monotorrent-0.72.ebuild: + amd64 stable, bug 273254 + + 06 May 2009; Peter Alfredsen <[email protected]> + monotorrent-0.70.ebuild, monotorrent-0.72.ebuild: + Update HOMEPAGE and SRC_URI + +*monotorrent-0.72 (27 Apr 2009) + + 27 Apr 2009; Peter Alfredsen <[email protected]> + +monotorrent-0.72.ebuild: + Bump + +*monotorrent-0.70 (05 Apr 2009) + + 05 Apr 2009; Peter Alfredsen <[email protected]> +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 $? +}
