[gentoo-commits] proj/dotnet:master commit in: dev-dotnet/conemu-control-winforms/, eclass/, dev-dotnet/dotnetzip-semverd/

2016-09-30 Thread Mikhail Pukhlikov
commit: f1f4574fb3c4c11795e38421ba58597c7c34d57c
Author: ArsenShnurkov  gmail  com>
AuthorDate: Fri Sep 30 05:14:58 2016 +
Commit: Mikhail Pukhlikov  gentoo  org>
CommitDate: Fri Sep 30 05:14:58 2016 +
URL:https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=f1f4574f

.pc file installation for Ionic

 ...mu-control-winforms-1.0.0_p2016051802-r1.ebuild |  2 +-
 .../dotnetzip-semverd-1.9.3-r1.ebuild  | 48 
 eclass/gac.eclass  | 53 --
 3 files changed, 89 insertions(+), 14 deletions(-)

diff --git 
a/dev-dotnet/conemu-control-winforms/conemu-control-winforms-1.0.0_p2016051802-r1.ebuild
 
b/dev-dotnet/conemu-control-winforms/conemu-control-winforms-1.0.0_p2016051802-r1.ebuild
index 1fd1b47..62fc3b1 100644
--- 
a/dev-dotnet/conemu-control-winforms/conemu-control-winforms-1.0.0_p2016051802-r1.ebuild
+++ 
b/dev-dotnet/conemu-control-winforms/conemu-control-winforms-1.0.0_p2016051802-r1.ebuild
@@ -46,5 +46,5 @@ src_install() {
DIR=Release
fi
egacinstall "${S}/ConEmuWinForms/bin/${DIR}/ConEmu.WinForms.dll"
-   einstall_pc_file "${PN}" "ConEmu.WinForms.dll"
+   einstall_pc_file "${PN}" "${PV}" "ConEmu.WinForms.dll"
 }

diff --git a/dev-dotnet/dotnetzip-semverd/dotnetzip-semverd-1.9.3-r1.ebuild 
b/dev-dotnet/dotnetzip-semverd/dotnetzip-semverd-1.9.3-r1.ebuild
new file mode 100644
index 000..7eab427
--- /dev/null
+++ b/dev-dotnet/dotnetzip-semverd/dotnetzip-semverd-1.9.3-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+SLOT="0"
+
+KEYWORDS="~amd64 ~ppc ~x86"
+USE_DOTNET="net45"
+
+inherit gac dotnet
+
+SRC_URI="https://github.com/haf/DotNetZip.Semverd/archive/v1.9.3.tar.gz -> 
${PV}.tar.gz"
+RESTRICT="mirror"
+S="${WORKDIR}/DotNetZip.Semverd-${PV}"
+
+HOMEPAGE="https://github.com/haf/DotNetZip.Semverd";
+DESCRIPTION="create, extract, or update zip files with C# (=DotNetZip+SemVer)"
+LICENSE="MS-PL" # https://github.com/haf/DotNetZip.Semverd/blob/master/LICENSE
+
+IUSE="net45 +gac +nupkg developer debug doc"
+
+COMMON_DEPEND=">=dev-lang/mono-4.0.2.5
+"
+RDEPEND="${COMMON_DEPEND}
+"
+DEPEND="${COMMON_DEPEND}
+"
+
+src_prepare() {
+   eapply "${FILESDIR}/version-${PV}.patch"
+   eapply_user
+}
+
+src_compile() {
+   #exbuild "/p:SignAssembly=true" 
"/p:AssemblyOriginatorKeyFile=${S}/src/Ionic.snk" "src/Zip Reduced/Zip 
Reduced.csproj"
+   exbuild_strong "src/Zip Reduced/Zip Reduced.csproj"
+}
+
+src_install() {
+   if use debug; then
+   DIR="Debug"
+   else
+   DIR="Release"
+   fi
+   egacinstall "src/Zip Reduced/bin/${DIR}/Ionic.Zip.Reduced.dll"
+   einstall_pc_file "${PN}" "${PV}" "Ionic.Zip.Reduced.dll"
+}

diff --git a/eclass/gac.eclass b/eclass/gac.eclass
index 1523301..0c47445 100644
--- a/eclass/gac.eclass
+++ b/eclass/gac.eclass
@@ -13,7 +13,7 @@ case ${EAPI:-0} in
6) ;;
 esac
 
-IUSE+=" +gac"
+IUSE+=" +gac +pkg-config +symlink"
 
 DEPEND+=" dev-lang/mono"
 RDEPEND+=" dev-lang/mono"
@@ -64,30 +64,57 @@ egacdel() {
 # @DESCRIPTION:  installs .pc file
 # The file format contains predefined metadata keywords and freeform variables 
(like ${prefix} and ${exec_prefix})
 # $1 = ${PN}
-# $2 = myassembly.dll
+# $2 = ${PV}
+# $3 = myassembly.dll # should not contain path, it is calculated magically, 
see DLL_FILENAME variable
 einstall_pc_file()
 {
if use pkg-config; then
-   dodir /usr/$(get_libdir)/pkgconfig
-   ebegin "Installing ${PC_FILE_NAME}.pc file"
+   local PC_NAME="$1"
+   local PC_VERSION="$2"
+   local DLL_NAME="$3"
+   local PC_FILENAME="${PC_NAME}-${PC_VERSION}"
+   local PC_DIRECTORY="/usr/$(get_libdir)/pkgconfig"
+   #local PC_DIRECTORY_DELTA="${CATEGORY}/${PN}"
+   local PC_DIRECTORY_VER="${PC_DIRECTORY}/${PC_DIRECTORY_DELTA}"
+   local DLL_FILENAME="\${libdir}/mono/${PC_NAME}/${DLL_NAME}"
+
+   dodir "${PC_DIRECTORY}"
+   dodir "${PC_DIRECTORY_VER}"
+
+   ebegin "Installing ${PC_DIRECTORY_VER}/${PC_FILENAME}.pc file"
+
+   # @Name@: A human-readable name for the library or package. 
This does not affect usage of the pkg-config tool,
+   # which uses the name of the .pc file.
+   # see https://people.freedesktop.org/~dbn/pkg-config-guide.html
+
+   # \${name} variables going directly into .pc file after 
unescaping $ sign
+   #
+   # other variables are not substituted to sed input directly
+   # to protect them from processing by bash
+   # (they only requires sed escaping for replacement path)
sed \
-   -e "s:@LIBDIR@:$(get_libdir):" \
-   -e "s:@PACKAGENAME@:$1:" \

[gentoo-commits] proj/dotnet:master commit in: dev-dotnet/conemu-control-winforms/, eclass/, ...

2016-09-19 Thread Mikhail Pukhlikov
commit: 91dd57dca99c01b951b87d22e23e13e32a5f084f
Author: ArsenShnurkov  gmail  com>
AuthorDate: Sat Sep 10 18:35:39 2016 +
Commit: Mikhail Pukhlikov  gentoo  org>
CommitDate: Sat Sep 10 18:35:39 2016 +
URL:https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=91dd57dc

dependency of GitExtensions

 ...onemu-control-winforms-1.0.0_p2016051802.ebuild | 50 ++
 .../files/add-release-configuration.patch  | 45 +++
 dev-dotnet/conemu-control-winforms/metadata.xml| 21 +
 eclass/gac.eclass  | 32 ++
 4 files changed, 148 insertions(+)

diff --git 
a/dev-dotnet/conemu-control-winforms/conemu-control-winforms-1.0.0_p2016051802.ebuild
 
b/dev-dotnet/conemu-control-winforms/conemu-control-winforms-1.0.0_p2016051802.ebuild
new file mode 100644
index 000..8b27e98
--- /dev/null
+++ 
b/dev-dotnet/conemu-control-winforms/conemu-control-winforms-1.0.0_p2016051802.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+USE_DOTNET="net45"
+inherit gac dotnet
+IUSE+=" +net45 +pkg-config debug"
+
+KEYWORDS="~amd64 ~x86"
+
+DESCRIPTION="console emulator control, embeds a console view in a Windows 
Forms window"
+HOMEPAGE="http://conemu.github.io/";
+SRC_URI="http://download.mono-project.com/sources/mono/mono-4.6.0.150.tar.bz2";
+RESTRICT="mirror"
+
+NAME="conemu-inside"
+HOMEPAGE="https://github.com/Maximus5/${NAME}";
+
+EGIT_COMMIT="b4800195f09b86eca14c4b96141a78136ee1d872"
+SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${NAME}-${EGIT_COMMIT}"
+
+LICENSE="BSD" # 
https://github.com/Maximus5/ConEmu/blob/master/Release/ConEmu/License.txt
+SLOT="0"
+
+src_prepare() {
+   eapply "${FILESDIR}/add-release-configuration.patch"
+   eapply_user
+}
+
+src_compile() {
+   if use debug; then
+   CONFIGURATION=Debug
+   else
+   CONFIGURATION=Release
+   fi
+   exbuild_raw /p:SignAssembly=true 
/p:AssemblyOriginatorKeyFile="${S}/ConEmuWinForms/Snk.Snk" 
/p:VersionNumber=1.0.0.2016051802 /p:Configuration=${CONFIGURATION} 
ConEmuWinForms/ConEmuWinForms.csproj
+}
+
+src_install() {
+   if use debug; then
+   DIR=Debug
+   else
+   DIR=Release
+   fi
+   egacinstall "${S}/ConEmuWinForms/bin/${DIR}/ConEmu.WinForms.dll"
+   einstall_pc_file "${PN}" "${NAME}.dll"
+}

diff --git 
a/dev-dotnet/conemu-control-winforms/files/add-release-configuration.patch 
b/dev-dotnet/conemu-control-winforms/files/add-release-configuration.patch
new file mode 100644
index 000..f46aee0
--- /dev/null
+++ b/dev-dotnet/conemu-control-winforms/files/add-release-configuration.patch
@@ -0,0 +1,45 @@
+diff -ur a/ConEmuWinForms/ConEmuWinForms.csproj 
b/ConEmuWinForms/ConEmuWinForms.csproj
+--- a/ConEmuWinForms/ConEmuWinForms.csproj 2016-05-18 03:51:11.0 
+0300
 b/ConEmuWinForms/ConEmuWinForms.csproj 2016-09-10 21:08:35.859758408 
+0300
+@@ -9,7 +9,6 @@
+ ConEmu.WinForms
+ ConEmu.WinForms
+ v4.0
+-Client
+ 
+ 
+   
+@@ -17,7 +16,19 @@
+ true
+ full
+ false
+-bin\
++bin\Debug
++DEBUG;TRACE
++prompt
++4
++true
++1696;1591
++bin\ConEmu.WinForms.Xml
++  
++  
++true
++pdbonly
++true
++bin\Release
+ TRACE
+ prompt
+ 4
+@@ -88,11 +99,4 @@
+ 
+   
+   
+-  
+-  
+-
+-  This project references NuGet package(s) that are missing on 
this computer. Use NuGet Package Restore to download them.  For more 
information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing 
file is {0}.
+-
+-
+-  
+ 
+\ No newline at end of file

diff --git a/dev-dotnet/conemu-control-winforms/metadata.xml 
b/dev-dotnet/conemu-control-winforms/metadata.xml
new file mode 100644
index 000..438a44a
--- /dev/null
+++ b/dev-dotnet/conemu-control-winforms/metadata.xml
@@ -0,0 +1,21 @@
+
+http://www.gentoo.org/dtd/metadata.dtd";>
+
+   
+   dot...@gentoo.org
+   Gentoo Dotnet Project
+   
+   
+   https://github.com/gentoo/dotnet/issues
+   Maximus5/conemu-inside
+   
+   
+   create .pc file(s) for .dll(s) 
installed to gac
+   
+   
+   This is a console emulator control that embeds a fully 
functional console view in a Windows Forms window.
+   It is capable of running any console application with full 
interactivity and advanced console functions.
+   Applications will detect it as an actual console and will not 
fall back
+   to the output redirection mode with reduced interactivity or 
formatting.
+   
+

diff --git a/eclass/gac.eclass b/eclass/gac.eclass
index c5b7e85..1523301 100644
--- a/eclass/gac.eclass
+++ b/eclass/gac.eclass
@@ -59,3 +59,35 @@ egacdel() {