* [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/NLog/, 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: 3ee5fea83578476a0134255573e2024833c6fdc1
Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
AuthorDate: Wed Oct 28 16:41:29 2015 +0000
Commit: Heather Cynede <cynede <AT> gentoo <DOT> org>
CommitDate: Wed Oct 28 16:41:29 2015 +0000
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=3ee5fea8
initial changes
dev-dotnet/NLog/NLog-4.1.3_pre-r201510280.ebuild | 2 +-
dev-dotnet/monotorrent/metadata.xml | 21 +++++
dev-dotnet/monotorrent/monotorrent-0.80.ebuild | 106 ++++++++++++++++++++---
3 files changed, 115 insertions(+), 14 deletions(-)
diff --git a/dev-dotnet/NLog/NLog-4.1.3_pre-r201510280.ebuild b/dev-dotnet/NLog/NLog-4.1.3_pre-r201510280.ebuild
index 64908ad..a20769a 100644
--- a/dev-dotnet/NLog/NLog-4.1.3_pre-r201510280.ebuild
+++ b/dev-dotnet/NLog/NLog-4.1.3_pre-r201510280.ebuild
@@ -13,7 +13,7 @@ EGIT_COMMIT="c3eb07ff89523154dc2385c7db0ba9437bff3362"
SRC_URI="${HOMEPAGE}/archive/${EGIT_BRANCH}/${EGIT_COMMIT}.zip -> ${PF}.zip"
S="${WORKDIR}/${NAME}-${EGIT_COMMIT}"
-SLOT="0"
+SLOT="0"
DESCRIPTION=" NLog - Advanced .NET and Silverlight Logging http://nlog-project.org"
LICENSE="BSD" # https://github.com/ArsenShnurkov/NLog/blob/master/LICENSE.txt
diff --git a/dev-dotnet/monotorrent/metadata.xml b/dev-dotnet/monotorrent/metadata.xml
index e01adbb..e1dd760 100644
--- a/dev-dotnet/monotorrent/metadata.xml
+++ b/dev-dotnet/monotorrent/metadata.xml
@@ -2,4 +2,25 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>dotnet</herd>
+ <maintainer> <!-- https://wiki.gentoo.org/wiki/User:Cynede -->
+ <email>cynede@gentoo.org</email>
+ <name>Heather Cynede</name>
+ </maintainer>
+ <upstream>
+ <maintainer status="inactive">
+ <email>unknown</email>
+ <name>unknown</name>
+ </maintainer>
+ <bugs-to>https://github.com/mono/monotorrent/issues/</bugs-to>
+ <remote-id type="github">mono/monotorrent</remote-id>
+ </upstream>
+ <use>
+ <flag name='pkg-config'>create .pc file(s) for .dll(s) installed to gac</flag>
+ </use>
+ <longdescription lang="en">
+ A library for working with torrent protocol
+ </longdescription>
+ <longdescription lang="ru">
+ Библиотека для работы по torrent-протоколу
+ </longdescription>
</pkgmetadata>
diff --git a/dev-dotnet/monotorrent/monotorrent-0.80.ebuild b/dev-dotnet/monotorrent/monotorrent-0.80.ebuild
index dfa84b7..b2c59fe 100644
--- a/dev-dotnet/monotorrent/monotorrent-0.80.ebuild
+++ b/dev-dotnet/monotorrent/monotorrent-0.80.ebuild
@@ -1,40 +1,120 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=2
+EAPI=5
-inherit mono multilib
+inherit mono-env dotnet nupkg
-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"
-
+DESCRIPTION="Monotorrent is an open source C# bittorrent library"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE=""
-RDEPEND=">=dev-lang/mono-2.0.1"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
+KEYWORDS="~amd64 ~x86"
+IUSE="net45 +gac +nupkg pkg-config debug developer"
+
+COMMON_DEPEND=">=dev-lang/mono-4.0.2.5
+"
+
+RDEPEND="${COMMON_DEPEND}
+"
+
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+"
+
+NAME="monotorrent"
+REPOSITORY="https://github.com/ArsenShnurkov/${NAME}"
+LICENSE_URL="${REPOSITORY}/blob/master/src/LICENSE"
+ICONMETA="https://openclipart.org/detail/198771/mono-torrent"
+ICON_URL="https://openclipart.org/download/198771/mono-torrent.svg"
+
+# monotorrent-1.0.0-r201510130
+EGIT_BRANCH="longpath"
+EGIT_COMMIT="e78d386d0785a9a42eeb5865bd58a8887e14b8f2"
+SRC_URI="${REPOSITORY}/archive/${EGIT_BRANCH}/${EGIT_COMMIT}.zip -> ${PF}.zip
+ mirror://gentoo/mono.snk.bz2"
+#S="${WORKDIR}/${NAME}-${EGIT_COMMIT}"
+S="${WORKDIR}/${NAME}-${EGIT_BRANCH}"
# The hack we do to get the dll installed in the GAC makes the unit-tests
# defunct.
RESTRICT="test"
+FILE_TO_BUILD=./src/MonoTorrent.sln
+METAFILETOBUILD="${S}/${FILE_TO_BUILD}"
+
src_prepare() {
+ #enuget_restore "${METAFILETOBUILD}"
+
sed -i \
-e "/InternalsVisibleTo/d" \
MonoTorrent/AssemblyInfo.cs* || die
}
src_compile() {
- emake -j1 ASSEMBLY_COMPILER_COMMAND="/usr/bin/gmcs -keyfile:${WORKDIR}/mono.snk"
+ # emake -j1 ASSEMBLY_COMPILER_COMMAND="/usr/bin/gmcs" -keyfile:${WORKDIR}/mono.snk
+ exbuild "${METAFILETOBUILD}"
+
+ create_nuspec_file
}
src_install() {
egacinstall $(find . -name "MonoTorrent.dll")
+ if use pkg-config; then
+ install_pc_file
+ fi
+}
+
+# replace underscore to dash
+NUGET_VERSION="${PV//_/-}"
+
+create_nuspec_file()
+{
+ REPLACEMENT_TOKENS+="s~$id$~${PN}~g;"
+ REPLACEMENT_TOKENS+="s~$version$~${NUGET_VERSION}~g;"
+ REPLACEMENT_TOKENS+="s~$author$~leaves project~g;"
+ REPLACEMENT_TOKENS+="s~$package_owners$~lasy monkeys~g;"
+ REPLACEMENT_TOKENS+="s~$package_licenseUrl$~${LICENSE_URL}~g;"
+ REPLACEMENT_TOKENS+="s~$package_ProjectUrl$~${HOMEPAGE}~g;"
+ REPLACEMENT_TOKENS+="s~$package_iconUrl$~${ICON_URL}~g;"
+ REPLACEMENT_TOKENS+="s~$description$~${DESCRIPTION}~g;"
+ sed "${REPLACEMENT_TOKENS}" <<EOF >"${S}/${PN}.nuspec" || die
+<?xml version="1.0"?>
+<package >
+ <metadata>
+ <id>$id$</id>
+ <version>$version$</version>
+ <authors>$author$</authors>
+ <owners>$package_owners$</owners>
+ <licenseUrl>$package_licenseUrl$</licenseUrl>
+ <projectUrl>$package_ProjectUrl$</projectUrl>
+ <iconUrl>$package_iconUrl$</iconUrl>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <description>$description$</description>
+ <!--
+ <releaseNotes>$package_releaseNotes$</releaseNotes>
+ <copyright>$package_copyright$</copyright>
+ <tags>$package_tags$</tags>
+ -->
+ <!--
+ <dependencies>
+ <dependency id="SampleDependency" version="1.0" />
+ </dependencies>
+ -->
+ </metadata>
+ <files> <!-- https://docs.nuget.org/create/nuspec-reference -->
+ <file src="bin/$configuration$/*.dll" target="lib\net40\" />
+ </files>
+
+</package>
+EOF
+ # run nuget_pack
+ enuspec -Prop version=${NUGET_VERSION} ./${PN}.nuspec
+}
+
+install_pc_file()
+{
dodir /usr/$(get_libdir)/pkgconfig
ebegin "Installing .pc file"
sed \
^ 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/NLog/, 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