blob: 9ff1ecf7b9429a1b5fc729fda3d76f0c97a6edb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
RESTRICT="mirror"
KEYWORDS="~amd64"
SLOT="0"
USE_DOTNET="net45"
IUSE="+${USE_DOTNET} +gac developer debug doc"
inherit gac dotnet
GITHUB_ACCOUNT="dotnet"
GITHUB_PROJECTNAME="corefx"
EGIT_COMMIT="247068fbd97c534dc13b3b9d037f67b03dbe57a5"
SRC_URI="https://github.com/${GITHUB_ACCOUNT}/${GITHUB_PROJECTNAME}/archive/${EGIT_COMMIT}.tar.gz -> ${GITHUB_PROJECTNAME}-${GITHUB_ACCOUNT}-${PV}.tar.gz"
S="${WORKDIR}/${GITHUB_PROJECTNAME}-${EGIT_COMMIT}"
HOMEPAGE="https://github.com/dotnet/corefx/tree/master/src/System.Reflection.Metadata"
DESCRIPTION="part of CoreFX"
LICENSE="MIT" # https://github.com/dotnet/corefx/blob/master/LICENSE.TXT
COMMON_DEPEND=">=dev-lang/mono-5.2.0.196
dev-dotnet/system-collections-immutable
"
RDEPEND="${COMMON_DEPEND}
"
DEPEND="${COMMON_DEPEND}
dev-dotnet/buildtools
>=dev-dotnet/msbuildtasks-1.5.0.240
"
PROJ1=System.Reflection.Metadata
PROJ1_DIR=src/${PROJ1}/src
src_prepare() {
cp "${FILESDIR}/mono-${PROJ1}.csproj" "${S}/${PROJ1_DIR}/" || die
eapply_user
}
src_compile() {
if use debug; then
CONFIGURATION=Debug
else
CONFIGURATION=Release
fi
if use developer; then
SARGS=DebugSymbols=True
else
SARGS=DebugSymbols=False
fi
VER=2.0.0.0
KEY="${FILESDIR}/mono.snk"
exbuild_raw /v:detailed /p:TargetFrameworkVersion=v4.6 "/p:Configuration=${CONFIGURATION}" /p:${SARGS} "/p:VersionNumber=${VER}" "/p:RootPath=${S}" "/p:SignAssembly=true" "/p:AssemblyOriginatorKeyFile=${KEY}" "${S}/${PROJ1_DIR}/mono-${PROJ1}.csproj"
sn -R "${PROJ1_DIR}/bin/${CONFIGURATION}/${PROJ1}.dll" "${KEY}" || die
}
src_install() {
if use debug; then
CONFIGURATION=Debug
else
CONFIGURATION=Release
fi
egacinstall "${PROJ1_DIR}/bin/${CONFIGURATION}/${PROJ1}.dll"
einstall_pc_file "${PN}" "${PV}" "${PROJ1}"
}
|