From: "Heather Cynede" <cynede@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/nant/, dev-dotnet/nunit/, eclass/
Date: Tue, 18 Aug 2015 09:35:56 +0000 (UTC) [thread overview]
Message-ID: <1439886366.6d5fcbd2c4d9c41f8fcd519738ebf014a279f875.cynede@gentoo> (raw)
commit: 6d5fcbd2c4d9c41f8fcd519738ebf014a279f875
Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
AuthorDate: Mon Aug 17 15:28:04 2015 +0000
Commit: Heather Cynede <cynede <AT> gentoo <DOT> org>
CommitDate: Tue Aug 18 08:26:06 2015 +0000
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=6d5fcbd2
initial attempt
dev-dotnet/nant/nant-0.93.5019-r201504210.ebuild | 2 +-
dev-dotnet/nunit/metadata.xml | 13 +++++++
.../nunit-3.0.0-r201508170.ebuild} | 32 ++++++++---------
eclass/dotnet.eclass | 31 ----------------
eclass/nuget.eclass | 41 ++++++++++++++++++++++
5 files changed, 71 insertions(+), 48 deletions(-)
diff --git a/dev-dotnet/nant/nant-0.93.5019-r201504210.ebuild b/dev-dotnet/nant/nant-0.93.5019-r201504210.ebuild
index 67adc8f..adde289 100644
--- a/dev-dotnet/nant/nant-0.93.5019-r201504210.ebuild
+++ b/dev-dotnet/nant/nant-0.93.5019-r201504210.ebuild
@@ -3,7 +3,7 @@
# $Id$
EAPI=5
-inherit mono-env dotnet
+inherit mono-env nuget dotnet
NAME="nant"
HOMEPAGE="https://github.com/nant/${NAME}"
diff --git a/dev-dotnet/nunit/metadata.xml b/dev-dotnet/nunit/metadata.xml
new file mode 100644
index 0000000..5c0862c
--- /dev/null
+++ b/dev-dotnet/nunit/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>dotnet</herd>
+ <maintainer>
+ <email>dotnet@gentoo.org</email>
+ <name>dotnet</name>
+ </maintainer>
+ <use>
+ <flag name='developer'>enables debug information for any of debug and release builds</flag>
+ <flag name='nupkg'>creates local nuget package</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-dotnet/nant/nant-0.93.5019-r201504210.ebuild b/dev-dotnet/nunit/nunit-3.0.0-r201508170.ebuild
similarity index 52%
copy from dev-dotnet/nant/nant-0.93.5019-r201504210.ebuild
copy to dev-dotnet/nunit/nunit-3.0.0-r201508170.ebuild
index 67adc8f..dd4cbbe 100644
--- a/dev-dotnet/nant/nant-0.93.5019-r201504210.ebuild
+++ b/dev-dotnet/nunit/nunit-3.0.0-r201508170.ebuild
@@ -3,33 +3,35 @@
# $Id$
EAPI=5
-inherit mono-env dotnet
+inherit mono-env nuget dotnet
-NAME="nant"
-HOMEPAGE="https://github.com/nant/${NAME}"
+NAME="nunit"
+HOMEPAGE="https://github.com/nunit/${NAME}"
-EGIT_COMMIT="45ec8aa9ad3247f340731f4e8b953c498ad3019e"
+EGIT_COMMIT="f23c6a0c27c37472e12dfc6703998fbab7ed6505"
SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.zip -> ${PF}.zip"
S="${WORKDIR}/${NAME}-${EGIT_COMMIT}"
SLOT="0"
-DESCRIPTION=".NET build tool"
-LICENSE="GPL-2"
+DESCRIPTION="NUnit test suite for mono applications"
+LICENSE="MIT" # https://github.com/nunit/nunit/blob/master/LICENSE.txt
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="developer nupkg debug"
-RDEPEND=">=dev-lang/mono-4.0.2.5"
+RDEPEND=">=dev-lang/mono-4.0.2.5
+ dev-dotnet/nant[nupkg]
+"
DEPEND="${RDEPEND}
- virtual/pkgconfig
"
S="${WORKDIR}/${NAME}-${EGIT_COMMIT}"
-SLN_FILE=NAnt.sln
+SLN_FILE=nunit.linux.sln
METAFILETOBUILD="${S}/${SLN_FILE}"
-# This build is not parallel build friendly
-#MAKEOPTS="${MAKEOPTS} -j1"
+src_prepare() {
+ enuget_restore "${METAFILETOBUILD}"
+}
src_compile() {
exbuild "${METAFILETOBUILD}"
@@ -44,12 +46,10 @@ src_install() {
DIR="Release"
fi
- insinto "/usr/share/nant/"
+ insinto "/usr/share/nunit/"
doins build/${DIR}/*
- make_wrapper nant "mono /usr/share/nant/NAnt.exe"
-
- enupkg "${WORKDIR}/NAnt.0.93.5019.nupkg"
+ make_wrapper nunit "mono /usr/share/nunit/NUnit.exe"
- dodoc README.txt
+ enupkg "${WORKDIR}/NUnit.3.0.0.nupkg"
}
diff --git a/eclass/dotnet.eclass b/eclass/dotnet.eclass
index 6222540..2bf9f72 100644
--- a/eclass/dotnet.eclass
+++ b/eclass/dotnet.eclass
@@ -97,37 +97,6 @@ exbuild() {
xbuild /tv:4.0 "/p:TargetFrameworkVersion=v${FRAMEWORK}" "${CARGS}" "${SARGS}" "$@" || die
}
-# @FUNCTION: enuspec
-# @DESCRIPTION: run nuget pack
-enuspec() {
- if use nupkg; then
- if use debug; then
- PROPS=Configuration=Debug
- else
- PROPS=Configuration=Release
- fi
- nuget pack -Properties "${PROPS}" -BasePath "${S}" -OutputDirectory "${WORKDIR}" -NonInteractive -Verbosity detailed "$@" || die
- fi
-}
-
-# @FUNCTION: enupkg
-# @DESCRIPTION: installs .nupkg into local repository
-enupkg() {
- if use nupkg; then
- if [ -d "/var/calculate/remote/distfiles" ]; then
- # Control will enter here if the directory exist.
- # this is necessary to handle calculate linux profiles feature (for corporate users)
- elog "Installing .nupkg into /var/calculate/remote/packages/NuGet"
- insinto /var/calculate/remote/packages/NuGet
- else
- # this is for all normal gentoo-based distributions
- elog "Installing .nupkg into /usr/local/nuget/nupkg"
- insinto /usr/local/nuget/nupkg
- fi
- doins "$@"
- fi
-}
-
# @FUNCTION: egacinstall
# @DESCRIPTION: install package to GAC
egacinstall() {
diff --git a/eclass/nuget.eclass b/eclass/nuget.eclass
index 2df0eb9..c7a3da2 100644
--- a/eclass/nuget.eclass
+++ b/eclass/nuget.eclass
@@ -9,6 +9,46 @@
inherit dotnet
+# @FUNCTION: enuget_restore
+# @DESCRIPTION: run nuget restore
+# accepts path to .sln or .proj or .csproj file to restore as parameter
+enuget_restore() {
+ nuget restore "$@" || die
+}
+
+# @FUNCTION: enuspec
+# @DESCRIPTION: run nuget pack
+# accepts path to .nuspec file as parameter
+enuspec() {
+ if use nupkg; then
+ if use debug; then
+ PROPS=Configuration=Debug
+ else
+ PROPS=Configuration=Release
+ fi
+ nuget pack -Properties "${PROPS}" -BasePath "${S}" -OutputDirectory "${WORKDIR}" -NonInteractive -Verbosity detailed "$@" || die
+ fi
+}
+
+# @FUNCTION: enupkg
+# @DESCRIPTION: installs .nupkg into local repository
+# accepts path to .nupkg file as parameter
+enupkg() {
+ if use nupkg; then
+ if [ -d "/var/calculate/remote/distfiles" ]; then
+ # Control will enter here if the directory exist.
+ # this is necessary to handle calculate linux profiles feature (for corporate users)
+ elog "Installing .nupkg into /var/calculate/remote/packages/NuGet"
+ insinto /var/calculate/remote/packages/NuGet
+ else
+ # this is for all normal gentoo-based distributions
+ elog "Installing .nupkg into /usr/local/nuget/nupkg"
+ insinto /usr/local/nuget/nupkg
+ fi
+ doins "$@"
+ fi
+}
+
# @ECLASS_VARIABLE: NUGET_DEPEND
# @DESCRIPTION Set false to net depend on nuget
: ${NUGET_NO_DEPEND:=}
@@ -28,6 +68,7 @@ fi
# @FUNCTION: nuget_src_unpack
# @DESCRIPTION: Runs nuget.
nuget_src_unpack() {
+ default
nuget install "${NPN}" -Version "${NPV}" -OutputDirectory "${P}"
}
reply other threads:[~2015-08-18 9:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1439886366.6d5fcbd2c4d9c41f8fcd519738ebf014a279f875.cynede@gentoo \
--to=cynede@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox