aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsenShnurkov <ArsenShnurkov@users.noreply.github.com>2018-01-13 18:33:19 +0300
committerArsenShnurkov <ArsenShnurkov@users.noreply.github.com>2018-01-13 18:33:19 +0300
commitab0cb6eabec5aaea2642e15ce1f209e851769173 (patch)
treebf25586bd7dd260873f7226c746ec425f45f6adf /dev-util
parentchange commit's sha1 and create file digest for Manifest (diff)
downloaddotnet-ab0cb6eabec5aaea2642e15ce1f209e851769173.tar.gz
dotnet-ab0cb6eabec5aaea2642e15ce1f209e851769173.tar.bz2
dotnet-ab0cb6eabec5aaea2642e15ce1f209e851769173.zip
change exbuild to emsbuild
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/nant/nant-0.93.5019_p2016101703.ebuild27
1 files changed, 18 insertions, 9 deletions
diff --git a/dev-util/nant/nant-0.93.5019_p2016101703.ebuild b/dev-util/nant/nant-0.93.5019_p2016101703.ebuild
index e72f081..0ca7df2 100644
--- a/dev-util/nant/nant-0.93.5019_p2016101703.ebuild
+++ b/dev-util/nant/nant-0.93.5019_p2016101703.ebuild
@@ -2,11 +2,20 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=6
+EAPI="6"
+KEYWORDS="~amd64 ~x86"
RESTRICT="mirror"
-inherit mono-env nupkg
+SLOT="0"
+if [ "${SLOT}" != "0" ]; then
+ APPENDIX="-${SLOT}"
+fi
+
+USE_DOTNET="net45"
+IUSE="+${USE_DOTNET} developer nupkg debug"
+
+inherit versionator msbuild nupkg
HOMEPAGE="https://github.com/nant/${NAME}"
DESCRIPTION=".NET build tool"
@@ -22,12 +31,6 @@ GITHUB_ZIP="https://api.github.com/repos/${GITHUBACC}/${GITHUBREPO}/zipball/${EG
SRC_URI="${GITHUB_ZIP}"
S="${WORKDIR}/${GITFILENAME}"
-SLOT="0"
-
-KEYWORDS="~amd64 ~x86"
-IUSE="+net45 developer nupkg debug"
-USE_DOTNET="net45"
-
RDEPEND=">=dev-lang/mono-4.4.0.40
!dev-dotnet/nant
nupkg? ( dev-dotnet/nuget )"
@@ -46,8 +49,14 @@ src_unpack() {
mv "${WORKDIR}/${GITHUBACC}-${GITHUBREPO}-"* "${WORKDIR}/${GITFILENAME}" || die
}
+src_prepare() {
+ dotnet_pkg_setup
+ find ${S} -type f -iname "*.csproj" -exec sed -i "s/Microsoft.CSharp.Targets/Microsoft.CSharp.targets/g" {} \; || die
+ eapply_user
+}
+
src_compile() {
- exbuild "${METAFILETOBUILD}"
+ emsbuild "${METAFILETOBUILD}"
enuspec "${FILESDIR}/${SLN_FILE}.nuspec"
}