aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsenShnurkov <ArsenShnurkov@users.noreply.github.com>2017-10-13 13:16:58 +0300
committerArsenShnurkov <ArsenShnurkov@users.noreply.github.com>2017-10-13 15:19:11 +0300
commit6ebac73deda3d4116c9edee654375e0a2a4f17e8 (patch)
tree321bec1a9c8b3df0f54f149170e8573fbc4f98c3
parentforgotten dependency added (diff)
downloaddotnet-6ebac73deda3d4116c9edee654375e0a2a4f17e8.tar.gz
dotnet-6ebac73deda3d4116c9edee654375e0a2a4f17e8.tar.bz2
dotnet-6ebac73deda3d4116c9edee654375e0a2a4f17e8.zip
dependencies added
-rw-r--r--app-shells/pash/files/template.csproj47
-rw-r--r--app-shells/pash/pash-0.0_p2016060606.ebuild89
-rw-r--r--dev-util/tartool/tartool-1.0.0.0.ebuild2
3 files changed, 127 insertions, 11 deletions
diff --git a/app-shells/pash/files/template.csproj b/app-shells/pash/files/template.csproj
new file mode 100644
index 0000000..9c49b91
--- /dev/null
+++ b/app-shells/pash/files/template.csproj
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
+ <AssemblyName>$(AssemblyName)</AssemblyName>
+ <OutputType>$(OutputType)</OutputType>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <OutputPath>bin\Debug</OutputPath>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <DefineConstants>DEBUG</DefineConstants>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <OutputPath>bin\Release</OutputPath>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <!-- Reference -->
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="**/*.cs" />
+ <Compile Include="AssemblyVersion.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <!-- ProjectReference -->
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(MSBuildExtensionsPath)\MSBuild.Community.Tasks.Targets" />
+ <Target Name="BeforeBuild">
+ <PropertyGroup Condition=" '$(VersionNumber)' == '' ">
+ <VersionNumber>1.0.0.0</VersionNumber>
+ </PropertyGroup>
+ <AssemblyInfo CodeLanguage="C#"
+ OutputFile="AssemblyVersion.cs"
+ AssemblyVersion="$(VersionNumber)"
+ AssemblyFileVersion="$(VersionNumber)"
+ />
+ </Target>
+</Project>
diff --git a/app-shells/pash/pash-0.0_p2016060606.ebuild b/app-shells/pash/pash-0.0_p2016060606.ebuild
index 3081245..0e02efd 100644
--- a/app-shells/pash/pash-0.0_p2016060606.ebuild
+++ b/app-shells/pash/pash-0.0_p2016060606.ebuild
@@ -22,23 +22,92 @@ EGIT_COMMIT="8d6a48f5ed70d64f9b49e6849b3ee35b887dc254"
SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.tar.gz -> ${P}-${PR}.tar.gz"
S="${WORKDIR}/${PROJECTNAME}-${EGIT_COMMIT}"
-CDEPEND="|| ( >=dev-lang/mono-5.4.0.167 <dev-lang/mono-9999 )"
-RDEPEND="${CDEPEND}"
-DEPEND="${CDEPEND}"
+CDEPEND="|| ( >=dev-lang/mono-5.4.0.167 <dev-lang/mono-9999 )
+ dev-dotnet/irony-framework
+ "
+RDEPEND="${CDEPEND}
+ "
+DEPEND="${CDEPEND}
+ "
-METAFILETOBUILD=${PROJECTNAME}.proj
+PROJECT1_PATH=Source/Microsoft.PowerShell.Security
+PROJECT1_NAME=Microsoft.PowerShell.Security
+PROJECT1_OUT=Microsoft.PowerShell.Security
+
+PROJECT2_PATH=Source/System.Management
+PROJECT2_NAME=System.Management
+PROJECT2_OUT=System.Management
+
+PROJECT3_PATH=Source/Microsoft.PowerShell.Commands.Utility
+PROJECT3_NAME=Microsoft.PowerShell.Commands.Utility
+PROJECT3_OUT=Microsoft.PowerShell.Commands.Utility
+
+PROJECT4_PATH=Source/Microsoft.PowerShell.Commands.Management
+PROJECT4_NAME=Microsoft.Commands.Management
+PROJECT4_OUT=Microsoft.PowerShell.Commands.Management
+
+PROJECT5_PATH=Source/PashConsole
+PROJECT5_NAME=PashConsole
+PROJECT5_OUT=PashConsole
+
+src_prepare() {
+ cp "${FILESDIR}/template.csproj" "${S}/${PROJECT1_PATH}/${PROJECT1_NAME}.csproj" || die
+ cp "${FILESDIR}/template.csproj" "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die
+ sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="Irony" />#' "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die
+ sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="Microsoft.CSharp" />#' "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die
+ sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.Data" />#' "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die
+ sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.Xml" />#' "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die
+ sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.Configuration" />#' "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die
+ cp "${FILESDIR}/template.csproj" "${S}/${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" || die
+ sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.Data" />#' "${S}/${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" || die
+ sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.Xml" />#' "${S}/${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" || die
+ sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.Net" />#' "${S}/${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" || die
+ sed -i 's#^.*-- ProjectReference --.*$#&\n<ProjectReference Include="../${PROJECT1_PATH}/${PROJECT1_NAME}.csproj" />#' "${S}/${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" || die
+ cp "${FILESDIR}/template.csproj" "${S}/${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" || die
+ sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.Data" />#' "${S}/${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" || die
+ sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.Xml" />#' "${S}/${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" || die
+ sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.ServiceProcess" />#' "${S}/${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" || die
+ sed -i 's#^.*-- ProjectReference --.*$#&\n<ProjectReference Include="../${PROJECT1_PATH}/${PROJECT1_NAME}.csproj" />#' "${S}/${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" || die
+ cp "${FILESDIR}/template.csproj" "${S}/${PROJECT5_PATH}/${PROJECT5_NAME}.csproj" || die
+ sed -i 's#^.*-- ProjectReference --.*$#&\n<ProjectReference Include="../${PROJECT1_PATH}/${PROJECT1_NAME}.csproj" />#' "${S}/${PROJECT5_PATH}/${PROJECT5_NAME}.csproj" || die
+ sed -i 's#^.*-- ProjectReference --.*$#&\n<ProjectReference Include="../${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" />#' "${S}/${PROJECT5_PATH}/${PROJECT5_NAME}.csproj" || die
+ sed -i 's#^.*-- ProjectReference --.*$#&\n<ProjectReference Include="../${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" />#' "${S}/${PROJECT5_PATH}/${PROJECT5_NAME}.csproj" || die
+ sed -i 's#^.*-- ProjectReference --.*$#&\n<ProjectReference Include="../${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" />#' "${S}/${PROJECT5_PATH}/${PROJECT5_NAME}.csproj" || die
+ eapply_user
+}
src_compile() {
- emsbuild "${METAFILETOBUILD}"
+ emsbuild "/p:AssemblyName=${PROJECT1_OUT}" "/p:OutputType=Library" "${S}/${PROJECT1_PATH}/${PROJECT1_NAME}.csproj"
+ emsbuild "/p:AssemblyName=${PROJECT1_OUT}" "/p:OutputType=Library" "${S}/${PROJECT1_PATH}/${PROJECT2_NAME}.csproj"
+ emsbuild "/p:AssemblyName=${PROJECT1_OUT}" "/p:OutputType=Library" "${S}/${PROJECT1_PATH}/${PROJECT3_NAME}.csproj"
+ emsbuild "/p:AssemblyName=${PROJECT1_OUT}" "/p:OutputType=Library" "${S}/${PROJECT1_PATH}/${PROJECT4_NAME}.csproj"
+ emsbuild "/p:AssemblyName=${PROJECT1_OUT}" "/p:OutputType=Exe" "${S}/${PROJECT1_PATH}/${PROJECT5_NAME}.csproj"
}
src_install() {
- insinto /usr/lib/pash/
- doins Source/PashConsole/bin/Release/Pash.exe
- doins Source/PashConsole/bin/Release/*.dll
+ if [ "${SLOT}"="0" ] ;
+ then
+ SLOTTEDDIR="/usr/share/${PN}"
+ else
+ SLOTTEDDIR="/usr/share/${PN}-${SLOT}"
+ fi
+ insinto "${SLOTTEDDIR}"
+
+ if use debug; then
+ DIR="Debug"
+ else
+ DIR="Release"
+ fi
+ doins Source/PashConsole/bin/${DIR}/Pash.exe
+ doins Source/PashConsole/bin/${DIR}/*.dll
if use developer; then
- doins Source/PashConsole/bin/Release/*.pdb
+ doins Source/PashConsole/bin/${DIR}/*.pdb
+ fi
+ if use debug; then
+ make_wrapper --debug pash "mono ${SLOTTEDDIR}/Pash.exe"
+ else
+ make_wrapper pash "mono ${SLOTTEDDIR}/Pash.exe"
fi
- make_wrapper pash "mono /usr/lib/pash/Pash.exe"
}
+
diff --git a/dev-util/tartool/tartool-1.0.0.0.ebuild b/dev-util/tartool/tartool-1.0.0.0.ebuild
index 890dff7..d5492bf 100644
--- a/dev-util/tartool/tartool-1.0.0.0.ebuild
+++ b/dev-util/tartool/tartool-1.0.0.0.ebuild
@@ -62,7 +62,7 @@ src_compile() {
}
src_install() {
- if [ "${SLOT}" == "0" ] ;
+ if [ "${SLOT}"="0" ] ;
then
SLOTTEDDIR="/usr/share/${PN}/"
else