From 6ebac73deda3d4116c9edee654375e0a2a4f17e8 Mon Sep 17 00:00:00 2001 From: ArsenShnurkov Date: Fri, 13 Oct 2017 13:16:58 +0300 Subject: dependencies added --- app-shells/pash/files/template.csproj | 47 +++++++++++++++ app-shells/pash/pash-0.0_p2016060606.ebuild | 89 +++++++++++++++++++++++++---- dev-util/tartool/tartool-1.0.0.0.ebuild | 2 +- 3 files changed, 127 insertions(+), 11 deletions(-) create mode 100644 app-shells/pash/files/template.csproj 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 @@ + + + + Debug + AnyCPU + v4.6 + $(AssemblyName) + $(OutputType) + + + bin\Debug + true + full + false + DEBUG + + + bin\Release + true + pdbonly + true + + + + + + + + + + + + + + + + + + 1.0.0.0 + + + + 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 #' "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die + sed -i 's#^.*-- Reference --.*$#&\n#' "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die + sed -i 's#^.*-- Reference --.*$#&\n#' "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die + sed -i 's#^.*-- Reference --.*$#&\n#' "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die + sed -i 's#^.*-- Reference --.*$#&\n#' "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die + cp "${FILESDIR}/template.csproj" "${S}/${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" || die + sed -i 's#^.*-- Reference --.*$#&\n#' "${S}/${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" || die + sed -i 's#^.*-- Reference --.*$#&\n#' "${S}/${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" || die + sed -i 's#^.*-- Reference --.*$#&\n#' "${S}/${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" || die + sed -i 's#^.*-- ProjectReference --.*$#&\n#' "${S}/${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" || die + cp "${FILESDIR}/template.csproj" "${S}/${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" || die + sed -i 's#^.*-- Reference --.*$#&\n#' "${S}/${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" || die + sed -i 's#^.*-- Reference --.*$#&\n#' "${S}/${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" || die + sed -i 's#^.*-- Reference --.*$#&\n#' "${S}/${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" || die + sed -i 's#^.*-- ProjectReference --.*$#&\n#' "${S}/${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" || die + cp "${FILESDIR}/template.csproj" "${S}/${PROJECT5_PATH}/${PROJECT5_NAME}.csproj" || die + sed -i 's#^.*-- ProjectReference --.*$#&\n#' "${S}/${PROJECT5_PATH}/${PROJECT5_NAME}.csproj" || die + sed -i 's#^.*-- ProjectReference --.*$#&\n#' "${S}/${PROJECT5_PATH}/${PROJECT5_NAME}.csproj" || die + sed -i 's#^.*-- ProjectReference --.*$#&\n#' "${S}/${PROJECT5_PATH}/${PROJECT5_NAME}.csproj" || die + sed -i 's#^.*-- ProjectReference --.*$#&\n#' "${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 -- cgit v1.2.3-65-gdbad