1 |
commit: 3ee5fea83578476a0134255573e2024833c6fdc1 |
2 |
Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Oct 28 16:41:29 2015 +0000 |
4 |
Commit: Heather Cynede <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 28 16:41:29 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=3ee5fea8 |
7 |
|
8 |
initial changes |
9 |
|
10 |
dev-dotnet/NLog/NLog-4.1.3_pre-r201510280.ebuild | 2 +- |
11 |
dev-dotnet/monotorrent/metadata.xml | 21 +++++ |
12 |
dev-dotnet/monotorrent/monotorrent-0.80.ebuild | 106 ++++++++++++++++++++--- |
13 |
3 files changed, 115 insertions(+), 14 deletions(-) |
14 |
|
15 |
diff --git a/dev-dotnet/NLog/NLog-4.1.3_pre-r201510280.ebuild b/dev-dotnet/NLog/NLog-4.1.3_pre-r201510280.ebuild |
16 |
index 64908ad..a20769a 100644 |
17 |
--- a/dev-dotnet/NLog/NLog-4.1.3_pre-r201510280.ebuild |
18 |
+++ b/dev-dotnet/NLog/NLog-4.1.3_pre-r201510280.ebuild |
19 |
@@ -13,7 +13,7 @@ EGIT_COMMIT="c3eb07ff89523154dc2385c7db0ba9437bff3362" |
20 |
SRC_URI="${HOMEPAGE}/archive/${EGIT_BRANCH}/${EGIT_COMMIT}.zip -> ${PF}.zip" |
21 |
S="${WORKDIR}/${NAME}-${EGIT_COMMIT}" |
22 |
|
23 |
-SLOT="0" |
24 |
+SLOT="0" |
25 |
|
26 |
DESCRIPTION=" NLog - Advanced .NET and Silverlight Logging http://nlog-project.org" |
27 |
LICENSE="BSD" # https://github.com/ArsenShnurkov/NLog/blob/master/LICENSE.txt |
28 |
|
29 |
diff --git a/dev-dotnet/monotorrent/metadata.xml b/dev-dotnet/monotorrent/metadata.xml |
30 |
index e01adbb..e1dd760 100644 |
31 |
--- a/dev-dotnet/monotorrent/metadata.xml |
32 |
+++ b/dev-dotnet/monotorrent/metadata.xml |
33 |
@@ -2,4 +2,25 @@ |
34 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
35 |
<pkgmetadata> |
36 |
<herd>dotnet</herd> |
37 |
+ <maintainer> <!-- https://wiki.gentoo.org/wiki/User:Cynede --> |
38 |
+ <email>cynede@g.o</email> |
39 |
+ <name>Heather Cynede</name> |
40 |
+ </maintainer> |
41 |
+ <upstream> |
42 |
+ <maintainer status="inactive"> |
43 |
+ <email>unknown</email> |
44 |
+ <name>unknown</name> |
45 |
+ </maintainer> |
46 |
+ <bugs-to>https://github.com/mono/monotorrent/issues/</bugs-to> |
47 |
+ <remote-id type="github">mono/monotorrent</remote-id> |
48 |
+ </upstream> |
49 |
+ <use> |
50 |
+ <flag name='pkg-config'>create .pc file(s) for .dll(s) installed to gac</flag> |
51 |
+ </use> |
52 |
+ <longdescription lang="en"> |
53 |
+ A library for working with torrent protocol |
54 |
+ </longdescription> |
55 |
+ <longdescription lang="ru"> |
56 |
+ Библиотека для работы по torrent-протоколу |
57 |
+ </longdescription> |
58 |
</pkgmetadata> |
59 |
|
60 |
diff --git a/dev-dotnet/monotorrent/monotorrent-0.80.ebuild b/dev-dotnet/monotorrent/monotorrent-0.80.ebuild |
61 |
index dfa84b7..b2c59fe 100644 |
62 |
--- a/dev-dotnet/monotorrent/monotorrent-0.80.ebuild |
63 |
+++ b/dev-dotnet/monotorrent/monotorrent-0.80.ebuild |
64 |
@@ -1,40 +1,120 @@ |
65 |
-# Copyright 1999-2012 Gentoo Foundation |
66 |
+# Copyright 1999-2015 Gentoo Foundation |
67 |
# Distributed under the terms of the GNU General Public License v2 |
68 |
# $Id$ |
69 |
|
70 |
-EAPI=2 |
71 |
+EAPI=5 |
72 |
|
73 |
-inherit mono multilib |
74 |
+inherit mono-env dotnet nupkg |
75 |
|
76 |
-DESCRIPTION="Monotorrent is an open source C# bittorrent library" |
77 |
HOMEPAGE="http://projects.qnetp.net/projects/show/monotorrent" |
78 |
-SRC_URI="http://projects.qnetp.net/attachments/download/28/${P}.tar.gz |
79 |
- mirror://gentoo/mono.snk.bz2" |
80 |
- |
81 |
+DESCRIPTION="Monotorrent is an open source C# bittorrent library" |
82 |
LICENSE="MIT" |
83 |
SLOT="0" |
84 |
-KEYWORDS="amd64 x86" |
85 |
-IUSE="" |
86 |
-RDEPEND=">=dev-lang/mono-2.0.1" |
87 |
-DEPEND="${RDEPEND} |
88 |
- virtual/pkgconfig" |
89 |
+KEYWORDS="~amd64 ~x86" |
90 |
+IUSE="net45 +gac +nupkg pkg-config debug developer" |
91 |
+ |
92 |
+COMMON_DEPEND=">=dev-lang/mono-4.0.2.5 |
93 |
+" |
94 |
+ |
95 |
+RDEPEND="${COMMON_DEPEND} |
96 |
+" |
97 |
+ |
98 |
+DEPEND="${COMMON_DEPEND} |
99 |
+ virtual/pkgconfig |
100 |
+" |
101 |
+ |
102 |
+NAME="monotorrent" |
103 |
+REPOSITORY="https://github.com/ArsenShnurkov/${NAME}" |
104 |
+LICENSE_URL="${REPOSITORY}/blob/master/src/LICENSE" |
105 |
+ICONMETA="https://openclipart.org/detail/198771/mono-torrent" |
106 |
+ICON_URL="https://openclipart.org/download/198771/mono-torrent.svg" |
107 |
+ |
108 |
+# monotorrent-1.0.0-r201510130 |
109 |
+EGIT_BRANCH="longpath" |
110 |
+EGIT_COMMIT="e78d386d0785a9a42eeb5865bd58a8887e14b8f2" |
111 |
+SRC_URI="${REPOSITORY}/archive/${EGIT_BRANCH}/${EGIT_COMMIT}.zip -> ${PF}.zip |
112 |
+ mirror://gentoo/mono.snk.bz2" |
113 |
+#S="${WORKDIR}/${NAME}-${EGIT_COMMIT}" |
114 |
+S="${WORKDIR}/${NAME}-${EGIT_BRANCH}" |
115 |
|
116 |
# The hack we do to get the dll installed in the GAC makes the unit-tests |
117 |
# defunct. |
118 |
RESTRICT="test" |
119 |
|
120 |
+FILE_TO_BUILD=./src/MonoTorrent.sln |
121 |
+METAFILETOBUILD="${S}/${FILE_TO_BUILD}" |
122 |
+ |
123 |
src_prepare() { |
124 |
+ #enuget_restore "${METAFILETOBUILD}" |
125 |
+ |
126 |
sed -i \ |
127 |
-e "/InternalsVisibleTo/d" \ |
128 |
MonoTorrent/AssemblyInfo.cs* || die |
129 |
} |
130 |
|
131 |
src_compile() { |
132 |
- emake -j1 ASSEMBLY_COMPILER_COMMAND="/usr/bin/gmcs -keyfile:${WORKDIR}/mono.snk" |
133 |
+ # emake -j1 ASSEMBLY_COMPILER_COMMAND="/usr/bin/gmcs" -keyfile:${WORKDIR}/mono.snk |
134 |
+ exbuild "${METAFILETOBUILD}" |
135 |
+ |
136 |
+ create_nuspec_file |
137 |
} |
138 |
|
139 |
src_install() { |
140 |
egacinstall $(find . -name "MonoTorrent.dll") |
141 |
+ if use pkg-config; then |
142 |
+ install_pc_file |
143 |
+ fi |
144 |
+} |
145 |
+ |
146 |
+# replace underscore to dash |
147 |
+NUGET_VERSION="${PV//_/-}" |
148 |
+ |
149 |
+create_nuspec_file() |
150 |
+{ |
151 |
+ REPLACEMENT_TOKENS+="s~$id$~${PN}~g;" |
152 |
+ REPLACEMENT_TOKENS+="s~$version$~${NUGET_VERSION}~g;" |
153 |
+ REPLACEMENT_TOKENS+="s~$author$~leaves project~g;" |
154 |
+ REPLACEMENT_TOKENS+="s~$package_owners$~lasy monkeys~g;" |
155 |
+ REPLACEMENT_TOKENS+="s~$package_licenseUrl$~${LICENSE_URL}~g;" |
156 |
+ REPLACEMENT_TOKENS+="s~$package_ProjectUrl$~${HOMEPAGE}~g;" |
157 |
+ REPLACEMENT_TOKENS+="s~$package_iconUrl$~${ICON_URL}~g;" |
158 |
+ REPLACEMENT_TOKENS+="s~$description$~${DESCRIPTION}~g;" |
159 |
+ sed "${REPLACEMENT_TOKENS}" <<EOF >"${S}/${PN}.nuspec" || die |
160 |
+<?xml version="1.0"?> |
161 |
+<package > |
162 |
+ <metadata> |
163 |
+ <id>$id$</id> |
164 |
+ <version>$version$</version> |
165 |
+ <authors>$author$</authors> |
166 |
+ <owners>$package_owners$</owners> |
167 |
+ <licenseUrl>$package_licenseUrl$</licenseUrl> |
168 |
+ <projectUrl>$package_ProjectUrl$</projectUrl> |
169 |
+ <iconUrl>$package_iconUrl$</iconUrl> |
170 |
+ <requireLicenseAcceptance>false</requireLicenseAcceptance> |
171 |
+ <description>$description$</description> |
172 |
+ <!-- |
173 |
+ <releaseNotes>$package_releaseNotes$</releaseNotes> |
174 |
+ <copyright>$package_copyright$</copyright> |
175 |
+ <tags>$package_tags$</tags> |
176 |
+ --> |
177 |
+ <!-- |
178 |
+ <dependencies> |
179 |
+ <dependency id="SampleDependency" version="1.0" /> |
180 |
+ </dependencies> |
181 |
+ --> |
182 |
+ </metadata> |
183 |
+ <files> <!-- https://docs.nuget.org/create/nuspec-reference --> |
184 |
+ <file src="bin/$configuration$/*.dll" target="lib\net40\" /> |
185 |
+ </files> |
186 |
+ |
187 |
+</package> |
188 |
+EOF |
189 |
+ # run nuget_pack |
190 |
+ enuspec -Prop version=${NUGET_VERSION} ./${PN}.nuspec |
191 |
+} |
192 |
+ |
193 |
+install_pc_file() |
194 |
+{ |
195 |
dodir /usr/$(get_libdir)/pkgconfig |
196 |
ebegin "Installing .pc file" |
197 |
sed \ |