commit: 70a35474a23e91025f72820a9699b1acedc57a86
Author: Arsen.Shnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
AuthorDate: Wed Jun 15 12:10:13 2016 +0000
Commit: Heather Cynede <cynede <AT> gentoo <DOT> org>
CommitDate: Wed Jun 15 12:10:13 2016 +0000
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=70a35474
mypad winforms text editor
...0001-.csproj-dependency-.nupkg-dependency.patch | 24 +++++
.../files/0001-remove-project-from-solution.patch | 26 +++++
app-editors/mypad/metadata.xml | 6 ++
app-editors/mypad/mypad-1.0.3_p201606130.ebuild | 107 +++++++++++++++++++++
net-irc/smuxi/smuxi-1.0.5.ebuild | 2 +-
5 files changed, 164 insertions(+), 1 deletion(-)
diff --git
a/app-editors/mypad/files/0001-.csproj-dependency-.nupkg-dependency.patch
b/app-editors/mypad/files/0001-.csproj-dependency-.nupkg-dependency.patch
new file mode 100644
index 0000000..0c8868b
--- /dev/null
+++ b/app-editors/mypad/files/0001-.csproj-dependency-.nupkg-dependency.patch
@@ -0,0 +1,24 @@
+--- a/MyPad/MyPad.csproj
++++ b/MyPad/MyPad.csproj
+@@ -58,6 +58,9 @@
+ </Reference>
+ <Reference Include="System.Configuration" />
+ <Reference Include="System.ServiceModel" />
++ <Reference Include="ICSharpCode.TextEditor">
++
<HintPath>..\..\..\NuGet\ICSharpCode.TextEditor.3.2.2\lib\net40\ICSharpCode.TextEditor</HintPath>
++ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Dialogs\AboutDialog.cs">
+@@ -271,10 +210,4 @@
+ </Properties>
+ </MonoDevelop>
+ </ProjectExtensions>
+- <ItemGroup>
+- <ProjectReference
Include="..\..\ICSharpCode.TextEditor.git\Project\ICSharpCode.TextEditor.csproj">
+- <Project>{2D18BE89-D210-49EB-A9DD-2246FBB3DF6D}</Project>
+- <Name>ICSharpCode.TextEditor</Name>
+- </ProjectReference>
+- </ItemGroup>
+ </Project>
+\ No newline at end of file
diff --git a/app-editors/mypad/files/0001-remove-project-from-solution.patch
b/app-editors/mypad/files/0001-remove-project-from-solution.patch
new file mode 100644
index 0000000..fa57633
--- /dev/null
+++ b/app-editors/mypad/files/0001-remove-project-from-solution.patch
@@ -0,0 +1,26 @@
+--- a/MyPad.sln
++++ b/MyPad.sln
+@@ -9,8 +9,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution
Items", "Solution
+ LICENSE.md = LICENSE.md
+ EndProjectSection
+ EndProject
+-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.TextEditor",
"..\ICSharpCode.TextEditor.git\Project\ICSharpCode.TextEditor.csproj",
"{2D18BE89-D210-49EB-A9DD-2246FBB3DF6D}"
+-EndProject
+ Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+@@ -19,14 +17,6 @@ Global
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+- {2D18BE89-D210-49EB-A9DD-2246FBB3DF6D}.Debug|Any CPU.ActiveCfg
= Debug|Any CPU
+- {2D18BE89-D210-49EB-A9DD-2246FBB3DF6D}.Debug|Any CPU.Build.0 =
Debug|Any CPU
+- {2D18BE89-D210-49EB-A9DD-2246FBB3DF6D}.Debug|x86.ActiveCfg =
Debug|Any CPU
+- {2D18BE89-D210-49EB-A9DD-2246FBB3DF6D}.Debug|x86.Build.0 =
Debug|Any CPU
+- {2D18BE89-D210-49EB-A9DD-2246FBB3DF6D}.Release|Any
CPU.ActiveCfg = Release|Any CPU
+- {2D18BE89-D210-49EB-A9DD-2246FBB3DF6D}.Release|Any CPU.Build.0
= Release|Any CPU
+- {2D18BE89-D210-49EB-A9DD-2246FBB3DF6D}.Release|x86.ActiveCfg =
Release|Any CPU
+- {2D18BE89-D210-49EB-A9DD-2246FBB3DF6D}.Release|x86.Build.0 =
Release|Any CPU
+ {7ED3012C-DB58-48C7-B59E-72C963418170}.Debug|Any CPU.ActiveCfg
= Debug|Any CPU
+ {7ED3012C-DB58-48C7-B59E-72C963418170}.Debug|Any CPU.Build.0 =
Debug|Any CPU
+ {7ED3012C-DB58-48C7-B59E-72C963418170}.Debug|x86.ActiveCfg =
Debug|x86
diff --git a/app-editors/mypad/metadata.xml b/app-editors/mypad/metadata.xml
new file mode 100644
index 0000000..d74ab10
--- /dev/null
+++ b/app-editors/mypad/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>
diff --git a/app-editors/mypad/mypad-1.0.3_p201606130.ebuild
b/app-editors/mypad/mypad-1.0.3_p201606130.ebuild
new file mode 100644
index 0000000..315ff25
--- /dev/null
+++ b/app-editors/mypad/mypad-1.0.3_p201606130.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+
+inherit eutils gnome2-utils dotnet
+
+DESCRIPTION="mypad text editor"
+LICENSE="MIT"
+
+PROJECTNAME="mypad-winforms-texteditor"
+HOMEPAGE="https://github.com/ArsenShnurkov/${PROJECTNAME}"
+EGIT_COMMIT="c1c79094eb5339309e3767f64d4e87f6214e7faa"
+SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.zip -> ${P}-${PR}.zip"
+
+SLOT="1"
+IUSE="net45 debug developer"
+USE_DOTNET="net45"
+
+KEYWORDS="~amd64 ~x86"
+
+ALLPEND="|| ( >=dev-lang/mono-4 <dev-lang/mono-9999 )
+ || ( dev-dotnet/icsharpcodetexteditor[nupkg]
dev-dotnet/icsharpcodetexteditor[gac] )
+ "
+
+# The DEPEND ebuild variable should specify any dependencies which are
+# required to unpack, patch, compile or install the package
+DEPEND="${ALLPEND}
+ dev-dotnet/nuget
+ "
+
+# The RDEPEND ebuild variable should specify any dependencies which are
+# required at runtime.
+# when installing from a binary package, only RDEPEND will be checked.
+RDEPEND="${ALLPEND}
+ "
+
+S="${WORKDIR}/${PROJECTNAME}-${EGIT_COMMIT}"
+
+# METAFILETOBUILD=${PROJECTNAME}.sln
+METAFILETOBUILD=MyPad.sln
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+src_prepare() {
+# elog "Patching"
+ eapply "${FILESDIR}/0001-.csproj-dependency-.nupkg-dependency.patch"
+ eapply "${FILESDIR}/0001-remove-project-from-solution.patch"
+ elog "NuGet restore"
+ /usr/bin/nuget restore ${METAFILETOBUILD} || die
+ eapply_user
+}
+
+src_compile() {
+ # https://bugzilla.xamarin.com/show_bug.cgi?id=9340
+ exbuild ${METAFILETOBUILD}
+}
+
+src_install() {
+ local BINDIR=""
+ if use debug; then
+ BINDIR=MyPad/bin/Debug
+ else
+ BINDIR=MyPad/bin/Release
+ fi
+
+ elog "Installing executable"
+ insinto /usr/lib/mypad-${PV}/
+ newins "${BINDIR}/MyPad.exe" MyPad.exe
+ make_wrapper mypad "mono /usr/lib/mypad-${PV}/MyPad.exe"
+ # Don't dlls should be in GAC ?
+ doins "${BINDIR}/NDepend.Path.dll"
+ doins "${BINDIR}/NDepend.Path.Interfaces.dll"
+
+ elog "Installing syntax coloring schemes for editor"
+ dodir /usr/lib/mypad-${PV}/Modes
+ insinto /usr/lib/mypad-${PV}/Modes
+ doins $BINDIR/Modes/*.xshd
+
+ elog "Preparing data directory"
+ # actually this should be in the user home folder
+ dodir /usr/lib/mypad-${PV}/Data
+
+ elog "Configuring templating engine"
+ # actually this should be in the user home folder
+ dosym /usr/lib/mypad-${PV} /usr/lib/mypad-${PV}/bin
+ insinto /usr/lib/mypad-${PV}
+ doins $BINDIR/*.aspx
+ doins $BINDIR/*.config
+
+ elog "Installing desktop icon"
+ local ICON_NAME=AtomFeedIcon.svg
+ local FULL_ICON_NAME=MyPad/Resources/${ICON_NAME}
+ newicon -s scalable "${FULL_ICON_NAME}" "${ICON_NAME}"
+ make_desktop_entry "/usr/bin/mypad" "${DESCRIPTION}"
"/usr/share/icons/hicolor/scalable/apps/${ICON_NAME}"
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/net-irc/smuxi/smuxi-1.0.5.ebuild b/net-irc/smuxi/smuxi-1.0.5.ebuild
index 774b752..00c69bf 100644
--- a/net-irc/smuxi/smuxi-1.0.5.ebuild
+++ b/net-irc/smuxi/smuxi-1.0.5.ebuild
@@ -66,7 +66,7 @@ src_install() {
insinto /usr/share/icons/hicolor/scalable/apps
local ICON_NAME=smuxi.svg
newicon -s scalable "${DISTDIR}/${ICON_NAME}" "${ICON_NAME}"
- make_desktop_entry "/usr/local/bin/smuxi-frontend-gnome" "Smuxi"
"/usr/share/icons/hicolor/scalable/apps/${ICON_NAME}"
+ make_desktop_entry "/usr/bin/smuxi-frontend-gnome" "Smuxi"
"/usr/share/icons/hicolor/scalable/apps/${ICON_NAME}"
}
pkg_postinst() {