commit:     a1f3d7c79bb279fe58494b8a73c01bb593ed484b
Author:     ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
AuthorDate: Sat Aug 22 17:39:21 2015 +0000
Commit:     Heather Cynede <cynede <AT> gentoo <DOT> org>
CommitDate: Sat Aug 22 17:39:21 2015 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=a1f3d7c7

winforms text editor library

 .../files/ICSharpCode.TextEditor.nuspec            |  26 ++++++++++
 .../files/add-keyfile-option-to-csproj.patch       |  11 +++++
 .../icsharpcodetexteditor/files/rsa-4096.snk       | Bin 0 -> 596 bytes
 .../icsharpcodetexteditor-3.2.2-r20150630.ebuild   |  55 +++++++++++++++++++++
 dev-dotnet/icsharpcodetexteditor/metadata.xml      |   6 +++
 5 files changed, 98 insertions(+)

diff --git 
a/dev-dotnet/icsharpcodetexteditor/files/ICSharpCode.TextEditor.nuspec 
b/dev-dotnet/icsharpcodetexteditor/files/ICSharpCode.TextEditor.nuspec
new file mode 100644
index 0000000..8761e2b
--- /dev/null
+++ b/dev-dotnet/icsharpcodetexteditor/files/ICSharpCode.TextEditor.nuspec
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<package>
+  <metadata>
+    <id>ICSharpCode.TextEditor</id>
+    <version>3.2.2</version>
+    <authors>ic#code</authors>
+    <owners>ic#code</owners>
+    <licenseUrl>http://opensource.org/licenses/lgpl-2.1.php</licenseUrl>
+    
<projectUrl>http://www.codeproject.com/Articles/30936/Using-ICSharpCode-TextEditor</projectUrl>
+    
<iconUrl>http://community.sharpdevelop.net/blogs/mattward/SharpDevelop.png</iconUrl>
+    <requireLicenseAcceptance>false</requireLicenseAcceptance>
+    <description>A WinForms control for rendering and editing 
text</description>
+    <releaseNotes>version for mypad-winforms-texteditor.
+    Earlier the editor was a part of SharpDevelop 3.5 - 
.\SharpDevelop\src\Libraries\ICSharpCode.TextEditor\Project
+    Last known location - 
https://github.com/ArsenShnurkov/ICSharpCode.TextEditor
+    </releaseNotes>
+    <copyright>2000-2010 AlphaSierraPapa, 2015 - 
[email protected]</copyright>
+    <tags>swf winforms mono</tags>
+    <dependencies>
+    </dependencies>
+  </metadata>
+  <files>
+    <!-- * is for .dll and .mdb -->
+    <file src="Project/bin/Release/ICSharpCode.TextEditor.*" 
target="lib/net40/" />
+  </files>
+</package>

diff --git 
a/dev-dotnet/icsharpcodetexteditor/files/add-keyfile-option-to-csproj.patch 
b/dev-dotnet/icsharpcodetexteditor/files/add-keyfile-option-to-csproj.patch
new file mode 100644
index 0000000..25ccbd4
--- /dev/null
+++ b/dev-dotnet/icsharpcodetexteditor/files/add-keyfile-option-to-csproj.patch
@@ -0,0 +1,11 @@
+--- work.orig/nuget-Release-2.8.1-MonoDevelop/src/Core/Core.csproj     
2014-10-29 13:28:28.000000000 +0300
++++ work/nuget-Release-2.8.1-MonoDevelop/src/Core/Core.csproj  2015-03-06 
10:55:17.783762949 +0300
+@@ -12,6 +12,8 @@
+     <TargetFrameworkProfile Condition=" '$(MonoBuild)' == '' And 
'$(TargetFrameworkVersion)' == 'v4.0' "></TargetFrameworkProfile>
+     <PlatformTarget>AnyCPU</PlatformTarget>
+     <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
++    <SignAssembly>true</SignAssembly>
++    <AssemblyOriginatorKeyFile>rsa-4096.snk</AssemblyOriginatorKeyFile>
+   </PropertyGroup>
+   <ItemGroup>
+     <EmbeddedResource Include="..\..\Common\CommonResources.resx">

diff --git a/dev-dotnet/icsharpcodetexteditor/files/rsa-4096.snk 
b/dev-dotnet/icsharpcodetexteditor/files/rsa-4096.snk
new file mode 100644
index 0000000..380116c
Binary files /dev/null and 
b/dev-dotnet/icsharpcodetexteditor/files/rsa-4096.snk differ

diff --git 
a/dev-dotnet/icsharpcodetexteditor/icsharpcodetexteditor-3.2.2-r20150630.ebuild 
b/dev-dotnet/icsharpcodetexteditor/icsharpcodetexteditor-3.2.2-r20150630.ebuild
new file mode 100644
index 0000000..cb88636
--- /dev/null
+++ 
b/dev-dotnet/icsharpcodetexteditor/icsharpcodetexteditor-3.2.2-r20150630.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit eutils nuget dotnet
+
+DESCRIPTION="ICSharpCode.TextEditor library"
+LICENSE="MIT"
+
+PROJECTNAME="ICSharpCode.TextEditor"
+HOMEPAGE="https://github.com/ArsenShnurkov/${PROJECTNAME}";
+EGIT_COMMIT="24903d58cddab7d0ff17fc96a8bb25f66e6eea56"
+SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.zip -> ${P}-${PR}.zip"
+
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+DEPEND="|| ( >=dev-lang/mono-3.4.0 <dev-lang/mono-9999 )       "
+RDEPEND="${DEPEND}"
+USE_DOTNET="net45"
+IUSE="${USE_DOTNET} gac nupkg"
+
+S="${WORKDIR}/${PROJECTNAME}-${EGIT_COMMIT}"
+
+METAFILETOBUILD=ICSharpCode.TextEditor.sln
+
+# https://devmanual.gentoo.org/ebuild-writing/variables/
+#
+# PN = Package name, for example vim.
+# P = Package name and version (excluding revision, if any), for example 
vim-6.3.
+# FILESDIR = Path to the ebuild's files/ directory, commonly used for small 
patches and files. Value: "${PORTDIR}/${CATEGORY}/${PN}/files"
+# WORKDIR = Path to the ebuild's root build directory. Value: 
"${PORTAGE_BUILDDIR}/work"
+# S = Path to the temporary build directory, used by src_compile and 
src_install. Default: "${WORKDIR}/${P}".
+
+#src_prepare() {
+# patch is from another project and will not apply to this one. new patch 
should be created for this project
+#      if use gac; then
+#              elog "Setting strong name key"
+#              epatch "${FILESDIR}/add-keyfile-option-to-csproj.patch"
+#      fi
+#}
+
+src_compile() {
+       exbuild ${METAFILETOBUILD}
+       enuspec "${FILESDIR}/ICSharpCode.TextEditor.nuspec"
+}
+
+src_install() {
+       if use gac; then
+               egacinstall Project/bin/Release/ICSharpCode.TextEditor.dll
+       fi
+
+       enupkg "${WORKDIR}/ICSharpCode.TextEditor.3.2.2.nupkg"
+}

diff --git a/dev-dotnet/icsharpcodetexteditor/metadata.xml 
b/dev-dotnet/icsharpcodetexteditor/metadata.xml
new file mode 100644
index 0000000..d74ab10
--- /dev/null
+++ b/dev-dotnet/icsharpcodetexteditor/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+<use>
+</use>
+</pkgmetadata>

Reply via email to