Gentoo Archives: gentoo-commits

From: Mikhail Pukhlikov <cynede@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/nhibernate-iesi-collections/, ...
Date: Thu, 03 Aug 2017 07:58:24
Message-Id: 1500982773.832737d28766bd36de7f904a6e62a014b140b205.cynede@gentoo
1 commit: 832737d28766bd36de7f904a6e62a014b140b205
2 Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com>
3 AuthorDate: Tue Jul 25 11:39:33 2017 +0000
4 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 25 11:39:33 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=832737d2
7
8 dev-dotnet/nhibernate-iesi-collections
9
10 .../files/Iesi.Collections.csproj | 56 ++++++++++++++++++
11 .../nhibernate-iesi-collections/metadata.xml | 8 +++
12 .../nhibernate-iesi-collections-4.0.2.ebuild | 69 ++++++++++++++++++++++
13 3 files changed, 133 insertions(+)
14
15 diff --git a/dev-dotnet/nhibernate-iesi-collections/files/Iesi.Collections.csproj b/dev-dotnet/nhibernate-iesi-collections/files/Iesi.Collections.csproj
16 new file mode 100644
17 index 0000000..c9fb59b
18 --- /dev/null
19 +++ b/dev-dotnet/nhibernate-iesi-collections/files/Iesi.Collections.csproj
20 @@ -0,0 +1,56 @@
21 +<?xml version="1.0" encoding="utf-8"?>
22 +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
23 + <PropertyGroup>
24 + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
25 + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
26 + <ProjectGuid>{FA8AC605-BFA6-4581-9F32-518F4813EA23}</ProjectGuid>
27 + <OutputType>Library</OutputType>
28 + <RootNamespace>Iesi.Collections</RootNamespace>
29 + <AssemblyName>Iesi.Collections</AssemblyName>
30 + <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
31 + <ProductVersion>8.0.30703</ProductVersion>
32 + <SchemaVersion>2.0</SchemaVersion>
33 + <SignAssembly>true</SignAssembly>
34 + <AssemblyOriginatorKeyFile>..\NHibernate.snk</AssemblyOriginatorKeyFile>
35 + </PropertyGroup>
36 + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
37 + <DebugSymbols>true</DebugSymbols>
38 + <DebugType>full</DebugType>
39 + <Optimize>false</Optimize>
40 + <OutputPath>bin\Debug</OutputPath>
41 + <DefineConstants>DEBUG;</DefineConstants>
42 + <ErrorReport>prompt</ErrorReport>
43 + <WarningLevel>4</WarningLevel>
44 + <ConsolePause>false</ConsolePause>
45 + </PropertyGroup>
46 + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
47 + <DebugType>full</DebugType>
48 + <Optimize>true</Optimize>
49 + <OutputPath>bin\Release</OutputPath>
50 + <ErrorReport>prompt</ErrorReport>
51 + <WarningLevel>4</WarningLevel>
52 + <ConsolePause>false</ConsolePause>
53 + </PropertyGroup>
54 + <ItemGroup>
55 + <Reference Include="System" />
56 + </ItemGroup>
57 + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
58 + <ItemGroup>
59 + <Compile Include="AssemblyInfo.cs" />
60 + <Compile Include="AssemblyVersion.cs" />
61 + <Compile Include="Generic\LinkedHashSet.cs" />
62 + <Compile Include="Generic\ReadOnlySet.cs" />
63 + <Compile Include="Generic\SynchronizedSet.cs" />
64 + </ItemGroup>
65 + <Import Project="$(MSBuildExtensionsPath)\MSBuild.Community.Tasks.Targets" />
66 + <Target Name="BeforeBuild">
67 + <PropertyGroup Condition=" '$(VersionNumber)' == '' ">
68 + <VersionNumber>1.0.0.0</VersionNumber>
69 + </PropertyGroup>
70 + <AssemblyInfo CodeLanguage="C#"
71 + OutputFile="AssemblyVersion.cs"
72 + AssemblyVersion="$(VersionNumber)"
73 + AssemblyFileVersion="$(VersionNumber)"
74 + />
75 + </Target>
76 +</Project>
77
78 diff --git a/dev-dotnet/nhibernate-iesi-collections/metadata.xml b/dev-dotnet/nhibernate-iesi-collections/metadata.xml
79 new file mode 100644
80 index 0000000..60328c2
81 --- /dev/null
82 +++ b/dev-dotnet/nhibernate-iesi-collections/metadata.xml
83 @@ -0,0 +1,8 @@
84 +<?xml version="1.0" encoding="UTF-8"?>
85 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
86 +<pkgmetadata>
87 + <maintainer type="project">
88 + <email>dotnet@g.o</email>
89 + <description>Gentoo Dotnet Project</description>
90 + </maintainer>
91 +</pkgmetadata>
92
93 diff --git a/dev-dotnet/nhibernate-iesi-collections/nhibernate-iesi-collections-4.0.2.ebuild b/dev-dotnet/nhibernate-iesi-collections/nhibernate-iesi-collections-4.0.2.ebuild
94 new file mode 100644
95 index 0000000..3cc78b2
96 --- /dev/null
97 +++ b/dev-dotnet/nhibernate-iesi-collections/nhibernate-iesi-collections-4.0.2.ebuild
98 @@ -0,0 +1,69 @@
99 +# Copyright 1999-2016 Gentoo Foundation
100 +# Distributed under the terms of the GNU General Public License v2
101 +# $Id$
102 +
103 +EAPI=6
104 +RESTRICT="mirror"
105 +KEYWORDS="~amd64 ~ppc ~x86"
106 +SLOT="0"
107 +
108 +USE_DOTNET="net45"
109 +IUSE="+${USE_DOTNET} +gac developer debug doc"
110 +
111 +inherit gac dotnet
112 +
113 +GITHUB_ACCOUNT="nhibernate"
114 +GITHUB_PROJECTNAME="iesi.collections"
115 +EGIT_COMMIT="3e183dd3316baedac508d0171b67c3dee05f6da0"
116 +SRC_URI="https://github.com/${GITHUB_ACCOUNT}/${GITHUB_PROJECTNAME}/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz"
117 +S="${WORKDIR}/${GITHUB_PROJECTNAME}-${EGIT_COMMIT}"
118 +
119 +HOMEPAGE="https://www.codeproject.com/Articles/3190/Add-Support-for-quot-Set-quot-Collections-to-NET"
120 +DESCRIPTION='C#, LinkedHashSet<T>, SynchronizedSet<T>, ReadOnlySet<T>'
121 +LICENSE="TODO" # https://github.com/nhibernate/iesi.collections/blob/master/LICENSE.txt
122 +
123 +COMMON_DEPEND=">=dev-lang/mono-5.2.0.196
124 +"
125 +RDEPEND="${COMMON_DEPEND}
126 +"
127 +DEPEND="${COMMON_DEPEND}
128 + >=dev-dotnet/msbuildtasks-1.5.0.240
129 +"
130 +
131 +PROJECT_FILE_DIR="${S}/src/Iesi.Collections"
132 +PROJECT_NAME="Iesi.Collections"
133 +ASSEMBLY_VERSION="${PV}"
134 +
135 +src_prepare() {
136 + cp "${FILESDIR}/${PROJECT_NAME}.csproj" "${PROJECT_FILE_DIR}/" || die
137 + eapply_user
138 +}
139 +
140 +src_compile() {
141 + if use debug; then
142 + CONFIGURATION=Debug
143 + else
144 + CONFIGURATION=Release
145 + fi
146 +
147 + if use developer; then
148 + SARGS=DebugSymbols=True
149 + else
150 + SARGS=DebugSymbols=False
151 + fi
152 +
153 + exbuild_raw /v:detailed /p:TargetFrameworkVersion=v4.5 "/p:Configuration=${CONFIGURATION}" /p:${SARGS} /p:VersionNumber="${ASSEMBLY_VERSION}" "/p:RootPath=${S}" "${PROJECT_FILE_DIR}/${PROJECT_NAME}.csproj"
154 +}
155 +
156 +src_install() {
157 + if use debug; then
158 + CONFIGURATION=Debug
159 + else
160 + CONFIGURATION=Release
161 + fi
162 +
163 + DLLNAME="${PROJECT_FILE_DIR}/bin/${CONFIGURATION}/${PROJECT_NAME}.dll"
164 + sn -R "${DLLNAME}" "${S}/src/NHibernate.snk" || die
165 + egacinstall ${DLLNAME}
166 + einstall_pc_file "${PN}" "${PV}" "${PROJECT_NAME}"
167 +}