Gentoo Archives: gentoo-commits

From: Heather Cynede <cynede@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/monotorrent/files/, dev-dotnet/monotorrent/
Date: Thu, 29 Oct 2015 07:21:12
Message-Id: 1446045051.e8555160150463ff8b10fd879c007a52f91596cd.cynede@gentoo
1 commit: e8555160150463ff8b10fd879c007a52f91596cd
2 Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
3 AuthorDate: Wed Oct 28 15:10:51 2015 +0000
4 Commit: Heather Cynede <cynede <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 28 15:10:51 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=e8555160
7
8 copy original version from main tree
9
10 dev-dotnet/monotorrent/ChangeLog | 48 +++++++++++++++++++++++++
11 dev-dotnet/monotorrent/files/monotorrent.pc.in | 8 +++++
12 dev-dotnet/monotorrent/metadata.xml | 5 +++
13 dev-dotnet/monotorrent/monotorrent-0.80.ebuild | 49 ++++++++++++++++++++++++++
14 4 files changed, 110 insertions(+)
15
16 diff --git a/dev-dotnet/monotorrent/ChangeLog b/dev-dotnet/monotorrent/ChangeLog
17 new file mode 100644
18 index 0000000..5b9f2b0
19 --- /dev/null
20 +++ b/dev-dotnet/monotorrent/ChangeLog
21 @@ -0,0 +1,48 @@
22 +# ChangeLog for dev-dotnet/monotorrent
23 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
24 +# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/monotorrent/ChangeLog,v 1.11 2012/05/04 03:56:55 jdhore Exp $
25 +
26 + 04 May 2012; Jeff Horelick <jdhore@g.o> monotorrent-0.80.ebuild:
27 + dev-util/pkgconfig -> virtual/pkgconfig
28 +
29 + 22 Jan 2012; Pacho Ramos <pacho@g.o> -monotorrent-0.72.ebuild:
30 + Drop old.
31 +
32 + 11 May 2011; Christoph Mende <angelos@g.o> monotorrent-0.80.ebuild:
33 + Stable on amd64 wrt bug #359651
34 +
35 + 07 May 2011; Thomas Kahle <tomka@g.o> monotorrent-0.80.ebuild:
36 + x86 stable per bug 359651
37 +
38 +*monotorrent-0.80 (27 Feb 2011)
39 +
40 + 27 Feb 2011; Pacho Ramos <pacho@g.o> +monotorrent-0.80.ebuild:
41 + Version bump.
42 +
43 + 31 Aug 2009; Peter Alfredsen <loki_val@g.o>
44 + -monotorrent-0.70.ebuild, monotorrent-0.72.ebuild, -files/mono.snk:
45 + Use mono.snk.bz2 from mirrors, drop old.
46 +
47 + 21 Jul 2009; Christian Faulhammer <fauli@g.o>
48 + monotorrent-0.72.ebuild:
49 + stable x86, bug 273254
50 +
51 + 20 Jul 2009; Jeremy Olexa <darkside@g.o> monotorrent-0.72.ebuild:
52 + amd64 stable, bug 273254
53 +
54 + 06 May 2009; Peter Alfredsen <loki_val@g.o>
55 + monotorrent-0.70.ebuild, monotorrent-0.72.ebuild:
56 + Update HOMEPAGE and SRC_URI
57 +
58 +*monotorrent-0.72 (27 Apr 2009)
59 +
60 + 27 Apr 2009; Peter Alfredsen <loki_val@g.o>
61 + +monotorrent-0.72.ebuild:
62 + Bump
63 +
64 +*monotorrent-0.70 (05 Apr 2009)
65 +
66 + 05 Apr 2009; Peter Alfredsen <loki_val@g.o> +files/mono.snk,
67 + +files/monotorrent.pc.in, +metadata.xml, +monotorrent-0.70.ebuild:
68 + Initial commit, ebuild by me.
69 +
70
71 diff --git a/dev-dotnet/monotorrent/files/monotorrent.pc.in b/dev-dotnet/monotorrent/files/monotorrent.pc.in
72 new file mode 100644
73 index 0000000..33d48a8
74 --- /dev/null
75 +++ b/dev-dotnet/monotorrent/files/monotorrent.pc.in
76 @@ -0,0 +1,8 @@
77 +prefix=${pcfiledir}/../..
78 +exec_prefix=${prefix}
79 +libdir=${exec_prefix}/@LIBDIR@
80 +
81 +Name: @PACKAGENAME@
82 +Description: @DESCRIPTION@
83 +Version: @VERSION@
84 +Libs: @LIBS@
85
86 diff --git a/dev-dotnet/monotorrent/metadata.xml b/dev-dotnet/monotorrent/metadata.xml
87 new file mode 100644
88 index 0000000..e01adbb
89 --- /dev/null
90 +++ b/dev-dotnet/monotorrent/metadata.xml
91 @@ -0,0 +1,5 @@
92 +<?xml version="1.0" encoding="UTF-8"?>
93 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
94 +<pkgmetadata>
95 + <herd>dotnet</herd>
96 +</pkgmetadata>
97
98 diff --git a/dev-dotnet/monotorrent/monotorrent-0.80.ebuild b/dev-dotnet/monotorrent/monotorrent-0.80.ebuild
99 new file mode 100644
100 index 0000000..dfa84b7
101 --- /dev/null
102 +++ b/dev-dotnet/monotorrent/monotorrent-0.80.ebuild
103 @@ -0,0 +1,49 @@
104 +# Copyright 1999-2012 Gentoo Foundation
105 +# Distributed under the terms of the GNU General Public License v2
106 +# $Id$
107 +
108 +EAPI=2
109 +
110 +inherit mono multilib
111 +
112 +DESCRIPTION="Monotorrent is an open source C# bittorrent library"
113 +HOMEPAGE="http://projects.qnetp.net/projects/show/monotorrent"
114 +SRC_URI="http://projects.qnetp.net/attachments/download/28/${P}.tar.gz
115 + mirror://gentoo/mono.snk.bz2"
116 +
117 +LICENSE="MIT"
118 +SLOT="0"
119 +KEYWORDS="amd64 x86"
120 +IUSE=""
121 +RDEPEND=">=dev-lang/mono-2.0.1"
122 +DEPEND="${RDEPEND}
123 + virtual/pkgconfig"
124 +
125 +# The hack we do to get the dll installed in the GAC makes the unit-tests
126 +# defunct.
127 +RESTRICT="test"
128 +
129 +src_prepare() {
130 + sed -i \
131 + -e "/InternalsVisibleTo/d" \
132 + MonoTorrent/AssemblyInfo.cs* || die
133 +}
134 +
135 +src_compile() {
136 + emake -j1 ASSEMBLY_COMPILER_COMMAND="/usr/bin/gmcs -keyfile:${WORKDIR}/mono.snk"
137 +}
138 +
139 +src_install() {
140 + egacinstall $(find . -name "MonoTorrent.dll")
141 + dodir /usr/$(get_libdir)/pkgconfig
142 + ebegin "Installing .pc file"
143 + sed \
144 + -e "s:@LIBDIR@:$(get_libdir):" \
145 + -e "s:@PACKAGENAME@:${PN}:" \
146 + -e "s:@DESCRIPTION@:${DESCRIPTION}:" \
147 + -e "s:@VERSION@:${PV}:" \
148 + -e 's;@LIBS@;-r:${libdir}/mono/monotorrent/MonoTorrent.dll;' \
149 + "${FILESDIR}"/${PN}.pc.in > "${D}"/usr/$(get_libdir)/pkgconfig/${PN}.pc
150 + PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --exists monotorrent || die ".pc file failed to validate."
151 + eend $?
152 +}