monodevelop-0.6 + dotnet-gecko-sharp-0.7 + dotnet-gtksourceview-sharp + dotnet-gtk-sharp + monodoc

Irek Słonina br at linuxnews.pl
Thu May 12 01:54:43 CEST 2005


Uaktualniłem parę speców/paczy jak w temacie by monodevelop-0.6 zaczęło 
działać.
Jeśli chodzi o dotnet-gecko-sharp-0.7 to pewnie powinno mu się zrobić 
DEVEL wzorem dotnet-gtk-sharp-1.9.x i dotnet-gtksourceview-0.7.
Byłbym wdzięczny gdyby to ktoś dodał, u mnie działa.. mam nadzieję że o 
niczym nie zapomniałem.
Z góry dzięki.

--
Irek Słonina
-------------- next part --------------
diff -aurN SPECS.orig/dotnet-gecko-sharp.spec SPECS/dotnet-gecko-sharp.spec
--- SPECS.orig/dotnet-gecko-sharp.spec	2005-05-12 01:15:48.176003312 +0200
+++ SPECS/dotnet-gecko-sharp.spec	2005-05-12 01:19:24.817068864 +0200
@@ -2,26 +2,25 @@
 Summary:	Gecko# - A Gtk# Mozilla binding
 Summary(pl):	Gecko# - wiązanie Gtk# dla Mozilli
 Name:		dotnet-gecko-sharp
-Version:	0.6
-Release:	2
+Version:	0.7
+Release:	0.9
 Epoch:		0
 License:	GPL
 Group:		Libraries
-Source0:	http://www.go-mono.com/archive/1.0.6/gecko-sharp-%{version}.tar.gz
-# Source0-md5:	9ce9bb08125f7c7eecf8bd696a3345bd
-Patch0:		%{name}-mint.patch
+Source0:	http://www.go-mono.com/archive/1.1.5/gecko-sharp-%{version}.tar.gz
+# Source0-md5:	316ccf9f11a23248ec3d97cb7bd61cc1
+Patch0:		%{name}-gtk-1.9.3-compat.patch
 URL:		http://www.mono-project.com/
 BuildRequires:	autoconf
 BuildRequires:	automake
-# just gtk-sharp
-BuildRequires:	dotnet-gtk-sharp-devel >= 0.98
+BuildRequires:	dotnet-gtk-sharp-devel >= 1.9.3
+BuildRequires:	mono-csharp >= 1.1.0
 BuildRequires:	gtk+2-devel >= 2.0.0
-BuildRequires:	mono-csharp >= 0.96
 BuildRequires:	pkgconfig
 BuildRequires:	sed >= 4.0
 BuildConflicts:	gecko-sharp < 0.2
 Requires:	mozilla-embedded
-Requires:	dotnet-gtk-sharp >= 0.98
+Requires:	dotnet-gtk-sharp >= 1.9.3
 Provides:	dotnet-gecko
 Provides:	gecko-sharp = %{version}
 Obsoletes:	dotnet-gecko
@@ -51,7 +50,7 @@
 Pliki programistyczne Gecko#.
 
 %prep
-%setup -q -n gecko-sharp-%{version}
+%setup -q -n gecko-sharp-2.0-%{version}
 %patch0 -p1
 
 %build
@@ -83,8 +82,8 @@
 
 %files devel
 %defattr(644,root,root,755)
-%{_libdir}/mono/gecko-sharp
-%{_pkgconfigdir}/gecko-sharp.pc
+%{_pkgconfigdir}/*
+%{_libdir}/mono/gecko-sharp-2.0
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
diff -aurN SOURCES.orig/dotnet-gecko-sharp-gtk-1.9.3-compat.patch SOURCES/dotnet-gecko-sharp-gtk-1.9.3-compat.patch
--- SOURCES.orig/dotnet-gecko-sharp-gtk-1.9.3-compat.patch	1970-01-01 01:00:00.000000000 +0100
+++ SOURCES/dotnet-gecko-sharp-gtk-1.9.3-compat.patch	2005-05-12 01:16:18.228434648 +0200
@@ -0,0 +1,18 @@
+diff -aur gecko-sharp-2.0-0.7-orig/gtkmozembed/WebControl.custom gecko-sharp-2.0-0.7/gtkmozembed/WebControl.custom
+--- gecko-sharp-2.0-0.7-orig/gtkmozembed/WebControl.custom	2005-02-06 16:53:36.000000000 -0500
++++ gecko-sharp-2.0-0.7/gtkmozembed/WebControl.custom	2005-05-07 09:16:59.000000000 -0400
+@@ -72,12 +72,12 @@
+ 
+ public WebControl(string aPath, string aDir) : base (IntPtr.Zero)
+ {
+-	gtk_moz_embed_set_profile_path(aPath, aDir);
++	SetProfilePath (aPath, aDir);
+ 	Raw = gtk_moz_embed_new ();
+ }
+ 
+ public WebControl() : base (IntPtr.Zero)
+ {
+-	gtk_moz_embed_set_profile_path("gecko-sharp", "DummyProfile");
++	SetProfilePath ("gecko-sharp", "DummyProfile");
+ 	Raw = gtk_moz_embed_new();
+ }
diff -aurN SOURCES.orig/dotnet-gecko-sharp-mint.patch SOURCES/dotnet-gecko-sharp-mint.patch
--- SOURCES.orig/dotnet-gecko-sharp-mint.patch	2005-05-12 01:16:29.509719632 +0200
+++ SOURCES/dotnet-gecko-sharp-mint.patch	1970-01-01 01:00:00.000000000 +0100
@@ -1,74 +0,0 @@
-diff -Nuard gecko-sharp-0.5.orig/configure.in gecko-sharp-0.5/configure.in
---- gecko-sharp-0.5.orig/configure.in	2004-06-14 23:42:35.000000000 +0200
-+++ gecko-sharp-0.5/configure.in	2004-07-02 10:27:42.069003672 +0200
-@@ -14,11 +14,11 @@
- fi
- AC_MSG_RESULT($from_cvs)
- 
--AC_PATH_PROG(MONO, mono)
-+dnl AC_PATH_PROG(MONO, mono)
- AC_PATH_PROG(MCS, mcs)
--if test "x$MONO" = "x" ; then
--  AC_MSG_ERROR([Can't find "mono" in your PATH])
--fi
-+dnl if test "x$MONO" = "x" ; then
-+dnl  AC_MSG_ERROR([Can't find "mono" in your PATH])
-+dnl fi
- if test "x$MCS" = "x" ; then
-   AC_MSG_ERROR([Can't find "mcs" in your PATH])
- fi
-@@ -40,7 +40,26 @@
- GTK_REQUIRED_VERSION=2.0.0
- MONO_REQUIRED_VERSION=0.95
- 
--PKG_CHECK_MODULES(BASE_DEPENDENCIES, gtk+-2.0 >= $GTK_REQUIRED_VERSION gmodule-2.0 >= $GTK_REQUIRED_VERSION  mono >= $MONO_REQUIRED_VERSION) 
-+PKG_CHECK_MODULES(BASE_DEPENDENCIES, gtk+-2.0 >= $GTK_REQUIRED_VERSION gmodule-2.0 >= $GTK_REQUIRED_VERSION) 
-+
-+PKG_CHECK_MODULES(BASE_DEPENDENCIES_RUNTIME, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
-+PKG_CHECK_MODULES(BASE_DEPENDENCIES_RUNTIME, mint >= $MONO_REQUIRED_VERSION, has_mint=true, has_mint=false)
-+
-+if test "x$has_mono" = "xtrue"; then
-+    echo "using mono"
-+    RUNTIME="mono --debug"
-+else
-+    if test "x$has_mint" = "xtrue"; then
-+        echo "using mint"
-+	RUNTIME="mint"
-+    else
-+	AC_MSG_ERROR([Unable to find mono or mint packages]);
-+    fi
-+fi
-+AC_SUBST(RUNTIME)
-+
-+BASE_DEPENDENCIES_CFLAGS="$BASE_DEPENDENCIES_CFLAGS $BASE_DEPENDENCIES_RUNTIME_CFLAGS"
-+BASE_DEPENDENCIES_LIBS="$BASE_DEPENDENCIES_LIBS $BASE_DEPENDENCIES_RUNTIME_LIBS"
- 
- AC_SUBST(BASE_DEPENDENCIES_CFLAGS)
- AC_SUBST(BASE_DEPENDENCIES_LIBS)
-diff -Nuard gecko-sharp-0.5.orig/gecko-sharp.pc.in gecko-sharp-0.5/gecko-sharp.pc.in
---- gecko-sharp-0.5.orig/gecko-sharp.pc.in	2004-06-16 06:28:07.000000000 +0200
-+++ gecko-sharp-0.5/gecko-sharp.pc.in	2004-07-02 10:28:00.600186504 +0200
-@@ -1,6 +1,6 @@
- prefix=@prefix@
- exec_prefix=${prefix}
--libdir=${exec_prefix}/lib
-+libdir=@libdir@
- 
- Name: Gecko#
- Description: Gecko# - A Gtk# Mozilla binding
-diff -Nuard gecko-sharp-0.5.orig/gtkmozembed/Makefile.am gecko-sharp-0.5/gtkmozembed/Makefile.am
---- gecko-sharp-0.5.orig/gtkmozembed/Makefile.am	2004-06-14 18:50:51.000000000 +0200
-+++ gecko-sharp-0.5/gtkmozembed/Makefile.am	2004-07-02 10:28:49.293783952 +0200
-@@ -31,10 +31,10 @@
- $(API): $(srcdir)/$(RAW_API) $(srcdir)/$(METADATA)
- 	cp $(srcdir)/$(RAW_API) $(API)
- 	chmod u+w $(API)
--	mono $(GTKSHARP_PREFIX)/bin/gapi-fixup.exe --api=$(srcdir)/$(API) --metadata=$(srcdir)/$(METADATA)
-+	$(RUNTIME) $(GTKSHARP_PREFIX)/bin/gapi-fixup.exe --api=$(srcdir)/$(API) --metadata=$(srcdir)/$(METADATA)
- 
- generated-stamp: $(API)
--	 mono $(GTKSHARP_PREFIX)/bin/gapi_codegen.exe --generate $(srcdir)/$(API) --include $(INCLUDE_APIS) --outdir=generated --customdir=$(srcdir) --assembly-name=gecko-sharp && touch generated-stamp
-+	 $(RUNTIME) $(GTKSHARP_PREFIX)/bin/gapi_codegen.exe --generate $(srcdir)/$(API) --include $(INCLUDE_APIS) --outdir=generated --customdir=$(srcdir) --assembly-name=gecko-sharp && touch generated-stamp
- 
- gecko-sharp.snk: $(top_srcdir)/gecko-sharp.snk
- 	cp $(top_srcdir)/gecko-sharp.snk .
-------------- next part --------------
diff -aurN SPECS.orig/dotnet-gtk-sharp.spec SPECS/dotnet-gtk-sharp.spec
--- SPECS.orig/dotnet-gtk-sharp.spec	2005-05-12 01:22:56.345911592 +0200
+++ SPECS/dotnet-gtk-sharp.spec	2005-05-12 01:22:52.388513208 +0200
@@ -33,6 +33,7 @@
 BuildRequires:	pkgconfig
 BuildRequires:	rpm-perlprov
 %if %{with gnome}
+BuildRequires:	gnome-panel-devel
 BuildRequires:	gtkhtml-devel >= 3.6.2
 BuildRequires:	libgnomecanvas-devel >= 2.4.0
 %{?with_gda:BuildRequires:	libgnomedb-devel >= 1.0.0}
-------------- next part --------------
diff -aurN SPECS.orig/monodevelop.spec SPECS/monodevelop.spec
--- SPECS.orig/monodevelop.spec	2005-05-12 01:26:51.653139456 +0200
+++ SPECS/monodevelop.spec	2005-05-12 01:26:38.373158320 +0200
@@ -4,34 +4,35 @@
 Summary(pl):	IDE dla Mono
 Name:		monodevelop
 Version:	0.6
-Release:	1
+Release:	1.9
 License:	GPL
 Group:		Development/Tools
 Source0:	http://mono2.ximian.com/archive/%{monoversion}/%{name}-%{version}.tar.gz
 # Source0-md5:	0cf7524360913394ea7fa1bc434b7f0c
 Patch0:		%{name}-MOZILLA_FIVE_HOME.patch
 Patch1:		%{name}-locale_names.patch
-Patch2:		%{name}-libdir.patch
+Patch2:		%{name}-mimedb_update.patch
 Patch3:		%{name}-desktop.patch
 URL:		http://www.monodevelop.com/
 BuildRequires:	ORBit2-devel >= 2.8.3
 BuildRequires:	autoconf
 BuildRequires:	automake >= 1:1.7
-BuildRequires:	dotnet-gtk-sharp-devel >= 1.0
-BuildRequires:	dotnet-gtksourceview-sharp-devel >= 0.5
+BuildRequires:	dotnet-gecko-sharp-devel >= 0.7
+BuildRequires:	dotnet-gtk-sharp-devel >= 1.9.2
+BuildRequires:	dotnet-gtksourceview-sharp-devel >= 0.7
+BuildRequires:	gettext-devel
 BuildRequires:	intltool
 BuildRequires:	libtool
 BuildRequires:	mono-csharp >= 1.0
 BuildRequires:	monodoc >= 1.0
-BuildRequires:	dotnet-gecko-sharp-devel >= 0.5
 BuildRequires:	sed >= 4.0
 BuildRequires:	shared-mime-info
 Requires:	mono
 Requires:	monodoc
 Requires:	mozilla-embedded
-Requires:	dotnet-gtksourceview-sharp
-Requires:	dotnet-gecko-sharp
-Requires:	dotnet-gtk-sharp
+Requires:	dotnet-gecko-sharp >= 0.7
+Requires:	dotnet-gtk-sharp >= 1.9.2
+Requires:	dotnet-gtksourceview-sharp >= 0.7
 Requires(post,postun):	shared-mime-info
 Obsoletes:	MonoDevelop
 ExcludeArch:	alpha
@@ -85,7 +86,7 @@
 %patch2 -p1
 %patch3 -p1
 # ignore errors from it
-sed -e 's/update-mime-database/-&/' -i Makefile.am
+#sed -e 's/update-mime-database/-&/' -i Makefile
 
 mv po/ja{_JP,}.po
 
@@ -96,7 +97,7 @@
 %{__autoheader}
 %{__automake}
 %{__autoconf}
-%configure
+%configure --disable-update-mimedb --disable-update-desktopdb
 %{__make}
 
 %install
diff -aurN SOURCES.orig/monodevelop-desktop.patch SOURCES/monodevelop-desktop.patch
--- SOURCES.orig/monodevelop-desktop.patch	2005-05-12 01:28:19.618766648 +0200
+++ SOURCES/monodevelop-desktop.patch	2005-05-12 01:27:39.019938608 +0200
@@ -1,20 +1,20 @@
-diff -urN monodevelop-0.5.1.orig/monodevelop.desktop monodevelop-0.5.1/monodevelop.desktop
---- monodevelop-0.5.1.orig/monodevelop.desktop	2004-11-17 15:04:30.764794792 +0100
-+++ monodevelop-0.5.1/monodevelop.desktop	2004-11-17 15:09:57.228164816 +0100
-@@ -3,14 +3,17 @@
+--- monodevelop.desktop.orig	2005-05-12 00:51:29.869105912 +0200
++++ monodevelop.desktop	2005-05-12 00:51:36.030169288 +0200
+@@ -3,7 +3,9 @@
  Encoding=UTF-8
  Name=MonoDevelop
  GenericName=Integrated Development Environment
 -Comment=Integrated Development Environment
-+GenericName[pl]=Zintegrowane środowisko programistyczne
++GenericName[pl]-Zintegrowane środowisko programistyczne
 +Comment=Mono IDE
 +Comment[pl]=IDE dla Mono
  Exec=monodevelop
  TryExec=monodevelop
  Icon=monodevelop.png
- StartupNotify=true
+@@ -11,7 +13,8 @@
  Terminal=false
  Type=Application
+ MimeType=text/x-csharp;application/x-mds;application/x-mdp;application/x-cmbx;application/x-prjx;
 -Categories=Application;Development;
 +Categories=GTK;Development;IDE;
  X-GNOME-Bugzilla-Bugzilla=Ximian
diff -aurN SOURCES.orig/monodevelop-locale_names.patch SOURCES/monodevelop-locale_names.patch
--- SOURCES.orig/monodevelop-locale_names.patch	2005-05-12 01:28:19.619766496 +0200
+++ SOURCES/monodevelop-locale_names.patch	2005-05-12 01:27:39.038935720 +0200
@@ -5,20 +5,20 @@
  fi
  
  
--ALL_LINGUAS="da es fr ja_JP pt_BR"
-+ALL_LINGUAS="da es fr ja pt_BR"
+-ALL_LINGUAS="da es fr ja_JP pt_BR tr"
++ALL_LINGUAS="da es fr ja pt_BR tr"
  GETTEXT_PACKAGE=monodevelop
  
  
 diff -ur monodevelop-0.5.orig/configure.in monodevelop-0.5/configure.in
---- monodevelop-0.5.orig/configure.in	2004-09-19 23:25:42.000000000 +0200
-+++ monodevelop-0.5/configure.in	2004-09-19 23:50:48.000000000 +0200
+--- monodevelop-0.6.orig/configure.in	2004-09-19 23:25:42.000000000 +0200
++++ monodevelop-0.6/configure.in	2004-09-19 23:50:48.000000000 +0200
 @@ -119,7 +119,7 @@
  AM_CONDITIONAL(ENABLE_XDGMIME, test "x$enable_xdgmime" = "xyes")
  
  dnl Intl
--ALL_LINGUAS="da es fr ja_JP pt_BR"
-+ALL_LINGUAS="da es fr ja pt_BR"
+-ALL_LINGUAS="da es fr ja_JP pt_BR tr"
++ALL_LINGUAS="da es fr ja pt_BR tr"
  GETTEXT_PACKAGE=monodevelop
  AC_SUBST(GETTEXT_PACKAGE)
  AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
diff -aurN SOURCES.orig/monodevelop-mint.patch SOURCES/monodevelop-mint.patch
--- SOURCES.orig/monodevelop-mint.patch	2005-05-12 01:27:39.058932680 +0200
+++ SOURCES/monodevelop-mint.patch	1970-01-01 01:00:00.000000000 +0100
@@ -1,467 +0,0 @@
-diff -Nuard monodevelop-0.5.orig/configure.in monodevelop-0.5/configure.in
---- monodevelop-0.5.orig/configure.in	2004-06-29 21:18:46.000000000 +0200
-+++ monodevelop-0.5/configure.in	2004-07-04 10:58:07.051839656 +0200
-@@ -12,9 +12,14 @@
- AC_PATH_PROG(MONO, mono)
- AC_PATH_PROG(MCS, mcs)
- AC_PATH_PROG(XDGMIME, update-mime-database, no)
-+
- if test "x$MONO" = "x" ; then
--  AC_MSG_ERROR([Can't find "mono" in your PATH])
-+  AC_PATH_PROG(MINT, mint)
-+  if test "x$MINT" = "x" ; then
-+	AC_MSG_ERROR([Can't find "mono" or "mint" in your PATH])
-+  fi
- fi
-+
- if test "x$MCS" = "x" ; then
-   AC_MSG_ERROR([Can't find "mcs" in your PATH])
- fi
-@@ -28,13 +33,38 @@
- fi
- 
- dnl unmanaged hard dependencies
--MONO_REQUIRED_VERSION=1.0
- GNOMEVFS_REQUIRED_VERSION=2.0
- PKG_CHECK_MODULES(UNMANAGED_DEPENDENCIES,
--mono >= $MONO_REQUIRED_VERSION
- gnome-vfs-2.0 >= $GNOMEVFS_REQUIRED_VERSION
- )
- 
-+MONO_REQUIRED_VERSION=1.0
-+PKG_CHECK_MODULES(UNMANAGED_DEPENDENCIES_MONO,mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
-+PKG_CHECK_MODULES(UNMANAGED_DEPENDENCIES_MINT,mint >= $MONO_REQUIRED_VERSION, has_mint=true, has_mint=false)
-+
-+if test "x$has_mono" = "xtrue"; then
-+    if test `uname -s` = "Darwin"; then
-+	AC_PATH_PROG(RUNTIME, mono, no)
-+	AC_PATH_PROG(CSC, mcs, no)
-+	LIB_PREFIX=
-+	LIB_SUFFIX=.dylib
-+    else
-+	AC_PATH_PROG(RUNTIME, mono, no)
-+	AC_PATH_PROG(CSC, mcs, no)
-+	RUNTIME="$RUNTIME --debug"
-+	LIB_PREFIX=.so
-+	LIB_SUFFIX=
-+    fi
-+else
-+    if test "x$has_mint" = "xtrue"; then
-+	AC_PATH_PROG(RUNTIME, mint, no)
-+	AC_PATH_PROG(CSC, mcs, no)
-+	LIB_PREFIX=.so
-+	LIB_SUFFIX=
-+    fi
-+fi
-+
-+
- dnl hard dependencies
- GTKSHARP_REQUIRED_VERSION=1.0
- GTKSOURCEVIEWSHARP_REQUIRED_VERSION=0.5
-@@ -165,6 +195,8 @@
- po/Makefile.in
- src/AddIns/prj2make-sharp-lib/Makefile
- src/AddIns/prj2make-sharp-lib/AssemblyInfo.cs
-+src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs
-+src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs
- ])
- 
- echo "---"
-diff -Nuard monodevelop-0.5.orig/Makefile.am monodevelop-0.5/Makefile.am
---- monodevelop-0.5.orig/Makefile.am	2004-06-27 06:04:20.000000000 +0200
-+++ monodevelop-0.5/Makefile.am	2004-07-04 10:17:22.675441352 +0200
-@@ -43,7 +43,7 @@
- run: runmd
- 
- runmd: $(PROGRAM)
--	cd build/bin && LD_LIBRARY_PATH=`echo "$(LD_LIBRARY_PATH):$(MOZILLA_HOME)" | sed 's/^://g'` mono --debug MonoDevelop.exe
-+	cd build/bin && LD_LIBRARY_PATH=`echo "$(LD_LIBRARY_PATH):$(MOZILLA_HOME)" | sed 's/^://g'` $(RUNTIME) MonoDevelop.exe
- 
- pad: $(MONOPAD)
- 
-diff -Nuard monodevelop-0.5.orig/monodevelop.in monodevelop-0.5/monodevelop.in
---- monodevelop-0.5.orig/monodevelop.in	2004-06-27 06:03:48.000000000 +0200
-+++ monodevelop-0.5/monodevelop.in	2004-07-04 10:13:21.858051160 +0200
-@@ -50,19 +50,19 @@
- 
- case x$1 in
-     x--profile)
--    mono --profile ./MonoDevelop.exe $@
-+    @RUNTIME@ --profile ./MonoDevelop.exe $@
- 	exit 0
-     ;;
-     x--debug)
--    mono --debug ./MonoDevelop.exe $@
-+    @RUNTIME@ --debug ./MonoDevelop.exe $@
- 	exit 0
-     ;;
- 	x--trace)
--    mono --trace ./MonoDevelop.exe $@
-+    @RUNTIME@ --trace ./MonoDevelop.exe $@
- 	exit 0;
- 	;;
- esac
- 
- # should not use --debug when we are more stable
--mono --debug ./MonoDevelop.exe $@
-+ at RUNTIME@ ./MonoDevelop.exe $@
- 
-diff -Nuard monodevelop-0.5.orig/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs monodevelop-0.5/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs
---- monodevelop-0.5.orig/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs	2004-06-27 06:02:55.000000000 +0200
-+++ monodevelop-0.5/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs	1970-01-01 01:00:00.000000000 +0100
-@@ -1,106 +0,0 @@
--// <file>
--//     <copyright see="prj:///doc/copyright.txt"/>
--//     <license see="prj:///doc/license.txt"/>
--//     <owner name="Mike KrĂźger" email="mike at icsharpcode.net"/>
--//     <version value="$version"/>
--// </file>
--
--using System;
--using System.IO;
--using System.Diagnostics;
--using System.Collections;
--using System.Reflection;
--using System.Resources;
--using System.Xml;
--using System.CodeDom.Compiler;
--using System.Threading;
--
--using MonoDevelop.Internal.Project;
--using MonoDevelop.Gui;
--using MonoDevelop.Core.Services;
--using MonoDevelop.Services;
--
--namespace CSharpBinding
--{
--	/// <summary>
--	/// This class describes the main functionalaty of a language codon
--	/// </summary>
--	public class CSharpBindingExecutionManager
--	{
--		public void Debug (IProject project)
--		{
--			FileUtilityService fileUtilityService = (FileUtilityService) ServiceManager.GetService (typeof (FileUtilityService));
--			string directory = fileUtilityService.GetDirectoryNameWithSeparator(((CSharpCompilerParameters)project.ActiveConfiguration).OutputDirectory);
--			string exe = ((CSharpCompilerParameters)project.ActiveConfiguration).OutputAssembly + ".exe";
--
--			IDebuggingService dbgr = (IDebuggingService) ServiceManager.GetService (typeof (IDebuggingService));
--			if (dbgr != null)
--				dbgr.Run (new string[] { Path.Combine (directory, exe) } );
--		}
--
--		public void Execute(string filename)
--		{
--			string exe = Path.ChangeExtension(filename, ".exe");
--			ProcessStartInfo psi = new ProcessStartInfo("mono", "--debug " + exe);
--			psi.WorkingDirectory = Path.GetDirectoryName(exe);
--			psi.UseShellExecute = false;
--			try {
--				Process p = new Process();
--				p.StartInfo = psi;
--				p.Start();
--			} catch (Exception) {
--				throw new ApplicationException("Can not execute " + "\"" + exe + "\"\n(Try restarting MonoDevelop or start your app manually)");
--			}
--		}
--		
--		public void Execute(IProject project)
--		{
--			CSharpCompilerParameters parameters = (CSharpCompilerParameters)project.ActiveConfiguration;
--			FileUtilityService fileUtilityService = (FileUtilityService)ServiceManager.GetService(typeof(FileUtilityService));
--			
--			string directory = fileUtilityService.GetDirectoryNameWithSeparator(((CSharpCompilerParameters)project.ActiveConfiguration).OutputDirectory);
--			string exe = ((CSharpCompilerParameters)project.ActiveConfiguration).OutputAssembly + ".exe";
--			string args = ((CSharpCompilerParameters)project.ActiveConfiguration).CommandLineParameters;
--			
--			ProcessStartInfo psi;
--			if (parameters.ExecuteScript != null && parameters.ExecuteScript.Length > 0) {
--				//Console.WriteLine("EXECUTE SCRIPT!!!!!!");
--				psi = new ProcessStartInfo("\"" + parameters.ExecuteScript + "\"");
--				psi.UseShellExecute = false;
--			} else {
--				string runtimeStarter = "mono --debug ";
--				
--				switch (parameters.NetRuntime) {
--					case NetRuntime.Mono:
--						runtimeStarter = "mono --debug ";
--						break;
--					case NetRuntime.MonoInterpreter:
--						runtimeStarter = "mint ";
--						break;
--				}
--				
--				//if (parameters.CompileTarget != CompileTarget.WinExe && parameters.PauseConsoleOutput) {
--					psi = new ProcessStartInfo("xterm",
--						string.Format (
--						@"-e ""{0} '{1}{2}' {3} ; echo; read -p 'press any key to continue...' -n1""",
--						runtimeStarter, directory, exe, args));
--					psi.UseShellExecute = false;
--				//} else {
--				//	psi = new ProcessStartInfo(runtimeStarter, "\"" + directory + exe + "\" " + args);
--				//	psi.UseShellExecute = false;
--				//}
--			}
--			
--			try {
--				psi.WorkingDirectory = Path.GetDirectoryName(directory);
--				psi.UseShellExecute  =  false;
--				
--				Process p = new Process();
--				p.StartInfo = psi;
--				p.Start();
--			} catch (Exception) {
--				throw new ApplicationException("Can not execute " + "\"" + directory + exe + "\"\n(Try restarting MonoDevelop or start your app manually)");
--			}
--		}
--	}
--}
-diff -Nuard monodevelop-0.5.orig/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs.in monodevelop-0.5/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs.in
---- monodevelop-0.5.orig/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs.in	1970-01-01 01:00:00.000000000 +0100
-+++ monodevelop-0.5/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs.in	2004-07-04 10:48:17.906403376 +0200
-@@ -0,0 +1,107 @@
-+// <file>
-+//     <copyright see="prj:///doc/copyright.txt"/>
-+//     <license see="prj:///doc/license.txt"/>
-+//     <owner name="Mike KrĂźger" email="mike at icsharpcode.net"/>
-+//     <version value="$version"/>
-+// </file>
-+
-+using System;
-+using System.IO;
-+using System.Diagnostics;
-+using System.Collections;
-+using System.Reflection;
-+using System.Resources;
-+using System.Xml;
-+using System.CodeDom.Compiler;
-+using System.Threading;
-+
-+using MonoDevelop.Internal.Project;
-+using MonoDevelop.Gui;
-+using MonoDevelop.Core.Services;
-+using MonoDevelop.Services;
-+
-+namespace CSharpBinding
-+{
-+	/// <summary>
-+	/// This class describes the main functionalaty of a language codon
-+	/// </summary>
-+	public class CSharpBindingExecutionManager
-+	{
-+		public void Debug (IProject project)
-+		{
-+			FileUtilityService fileUtilityService = (FileUtilityService) ServiceManager.GetService (typeof (FileUtilityService));
-+			string directory = fileUtilityService.GetDirectoryNameWithSeparator(((CSharpCompilerParameters)project.ActiveConfiguration).OutputDirectory);
-+			string exe = ((CSharpCompilerParameters)project.ActiveConfiguration).OutputAssembly + ".exe";
-+
-+			IDebuggingService dbgr = (IDebuggingService) ServiceManager.GetService (typeof (IDebuggingService));
-+			if (dbgr != null)
-+				dbgr.Run (new string[] { Path.Combine (directory, exe) } );
-+		}
-+
-+		public void Execute(string filename)
-+		{
-+			string exe = Path.ChangeExtension(filename, ".exe");
-+			
-+			ProcessStartInfo psi = new ProcessStartInfo("@RUNTIME@ " + exe);
-+			psi.WorkingDirectory = Path.GetDirectoryName(exe);
-+			psi.UseShellExecute = false;
-+			try {
-+				Process p = new Process();
-+				p.StartInfo = psi;
-+				p.Start();
-+			} catch (Exception) {
-+				throw new ApplicationException("Can not execute " + "\"" + exe + "\"\n(Try restarting MonoDevelop or start your app manually)");
-+			}
-+		}
-+		
-+		public void Execute(IProject project)
-+		{
-+			CSharpCompilerParameters parameters = (CSharpCompilerParameters)project.ActiveConfiguration;
-+			FileUtilityService fileUtilityService = (FileUtilityService)ServiceManager.GetService(typeof(FileUtilityService));
-+			
-+			string directory = fileUtilityService.GetDirectoryNameWithSeparator(((CSharpCompilerParameters)project.ActiveConfiguration).OutputDirectory);
-+			string exe = ((CSharpCompilerParameters)project.ActiveConfiguration).OutputAssembly + ".exe";
-+			string args = ((CSharpCompilerParameters)project.ActiveConfiguration).CommandLineParameters;
-+			
-+			ProcessStartInfo psi;
-+			if (parameters.ExecuteScript != null && parameters.ExecuteScript.Length > 0) {
-+				//Console.WriteLine("EXECUTE SCRIPT!!!!!!");
-+				psi = new ProcessStartInfo("\"" + parameters.ExecuteScript + "\"");
-+				psi.UseShellExecute = false;
-+			} else {
-+				string runtimeStarter = "mono --debug ";
-+				
-+				switch (parameters.NetRuntime) {
-+					case NetRuntime.Mono:
-+						runtimeStarter = "mono --debug ";
-+						break;
-+					case NetRuntime.MonoInterpreter:
-+						runtimeStarter = "mint ";
-+						break;
-+				}
-+				
-+				//if (parameters.CompileTarget != CompileTarget.WinExe && parameters.PauseConsoleOutput) {
-+					psi = new ProcessStartInfo("xterm",
-+						string.Format (
-+						@"-e ""{0} '{1}{2}' {3} ; echo; read -p 'press any key to continue...' -n1""",
-+						runtimeStarter, directory, exe, args));
-+					psi.UseShellExecute = false;
-+				//} else {
-+				//	psi = new ProcessStartInfo(runtimeStarter, "\"" + directory + exe + "\" " + args);
-+				//	psi.UseShellExecute = false;
-+				//}
-+			}
-+			
-+			try {
-+				psi.WorkingDirectory = Path.GetDirectoryName(directory);
-+				psi.UseShellExecute  =  false;
-+				
-+				Process p = new Process();
-+				p.StartInfo = psi;
-+				p.Start();
-+			} catch (Exception) {
-+				throw new ApplicationException("Can not execute " + "\"" + directory + exe + "\"\n(Try restarting MonoDevelop or start your app manually)");
-+			}
-+		}
-+	}
-+}
-diff -Nuard monodevelop-0.5.orig/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs monodevelop-0.5/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs
---- monodevelop-0.5.orig/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs	2004-06-27 06:02:53.000000000 +0200
-+++ monodevelop-0.5/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs	1970-01-01 01:00:00.000000000 +0100
-@@ -1,59 +0,0 @@
--using System;
--using System.IO;
--using System.Diagnostics;
--using System.Collections;
--using System.Reflection;
--using System.Resources;
--using System.Xml;
--using System.CodeDom.Compiler;
--using System.Threading;
--
--using MonoDevelop.Internal.Project;
--using MonoDevelop.Gui;
--using MonoDevelop.Core.Services;
--
--namespace NemerleBinding
--{
--	public class NemerleBindingExecutionServices
--	{	
--		
--		public void Execute(string filename)
--		{
--			throw new ApplicationException("No ExecuteFile");
--		}
--		
--		public void Execute(IProject project)
--		{
--			
--			NemerleParameters p = (NemerleParameters)project.ActiveConfiguration;
--			FileUtilityService fus = (FileUtilityService)ServiceManager.GetService(typeof(FileUtilityService));
--			string exe;
--			
--			if (p.ExecuteScript == String.Empty)
--			{
--				exe	= "mono --debug";
--			} else
--			{
--				exe = p.ExecuteScript;
--			}
--			
--			exe += " " + p.OutputAssembly + ".exe " + p.Parameters;
--			
--			try {
--				ProcessStartInfo psi = new ProcessStartInfo("xterm",
--					string.Format (
--					@"-e ""{0} ;echo;read -p 'press any key to continue...' -n1""",
--					exe));
--				psi.WorkingDirectory = fus.GetDirectoryNameWithSeparator(p.OutputDirectory);
--				psi.UseShellExecute = false;
--				
--				Process pr = new Process();
--				pr.StartInfo = psi;
--				pr.Start();
--			} catch (Exception) {
--				throw new ApplicationException("Can not execute");
--			}
--		}
--				
--	}
--}
-diff -Nuard monodevelop-0.5.orig/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs.in monodevelop-0.5/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs.in
---- monodevelop-0.5.orig/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs.in	1970-01-01 01:00:00.000000000 +0100
-+++ monodevelop-0.5/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs.in	2004-07-04 10:48:14.086984016 +0200
-@@ -0,0 +1,59 @@
-+using System;
-+using System.IO;
-+using System.Diagnostics;
-+using System.Collections;
-+using System.Reflection;
-+using System.Resources;
-+using System.Xml;
-+using System.CodeDom.Compiler;
-+using System.Threading;
-+
-+using MonoDevelop.Internal.Project;
-+using MonoDevelop.Gui;
-+using MonoDevelop.Core.Services;
-+
-+namespace NemerleBinding
-+{
-+	public class NemerleBindingExecutionServices
-+	{	
-+		
-+		public void Execute(string filename)
-+		{
-+			throw new ApplicationException("No ExecuteFile");
-+		}
-+		
-+		public void Execute(IProject project)
-+		{
-+			
-+			NemerleParameters p = (NemerleParameters)project.ActiveConfiguration;
-+			FileUtilityService fus = (FileUtilityService)ServiceManager.GetService(typeof(FileUtilityService));
-+			string exe;
-+			
-+			if (p.ExecuteScript == String.Empty)
-+			{
-+				exe	= "@RUNTIME@ ";
-+			} else
-+			{
-+				exe = p.ExecuteScript;
-+			}
-+			
-+			exe += " " + p.OutputAssembly + ".exe " + p.Parameters;
-+			
-+			try {
-+				ProcessStartInfo psi = new ProcessStartInfo("xterm",
-+					string.Format (
-+					@"-e ""{0} ;echo;read -p 'press any key to continue...' -n1""",
-+					exe));
-+				psi.WorkingDirectory = fus.GetDirectoryNameWithSeparator(p.OutputDirectory);
-+				psi.UseShellExecute = false;
-+				
-+				Process pr = new Process();
-+				pr.StartInfo = psi;
-+				pr.Start();
-+			} catch (Exception) {
-+				throw new ApplicationException("Can not execute");
-+			}
-+		}
-+				
-+	}
-+}
-diff -Nuard monodevelop-0.5.orig/src/Libraries/SharpRefactory/Makefile.am monodevelop-0.5/src/Libraries/SharpRefactory/Makefile.am
---- monodevelop-0.5.orig/src/Libraries/SharpRefactory/Makefile.am	2004-06-27 06:03:38.000000000 +0200
-+++ monodevelop-0.5/src/Libraries/SharpRefactory/Makefile.am	2004-07-04 10:17:38.544028960 +0200
-@@ -125,7 +125,7 @@
- 	@ $(CSC) /out:$@ /r:$(DLL) src/Main.cs
- 
- run : test-parser.exe
--	@ MONO_PATH=`dirname $(DLL)` mono --debug test-parser.exe $(TEST_SOURCE)
-+	@ MONO_PATH=`dirname $(DLL)` $(RUNTIME) test-parser.exe $(TEST_SOURCE)
- 
- assemblydir = $(libdir)/monodevelop/bin
- assembly_DATA = $(DLL)
-------------- next part --------------
diff -aurN SPECS.orig/monodoc.spec SPECS/monodoc.spec
--- SPECS.orig/monodoc.spec	2005-05-12 01:34:24.179345016 +0200
+++ SPECS/monodoc.spec	2005-05-12 01:34:17.192407192 +0200
@@ -7,7 +7,7 @@
 Summary(pl):	Dokumentacja klas Mono wraz z narzędziami do jej generowania i przeglądania
 Name:		monodoc
 Version:	1.0.6
-Release:	3
+Release:	4
 License:	GPL
 Group:		Development/Tools
 Source0:	http://www.go-mono.com/archive/%{version}/%{name}-%{version}.tar.gz
@@ -18,11 +18,23 @@
 URL:		http://www.go-mono.com/
 BuildRequires:	autoconf
 BuildRequires:	automake
+
+%if %{with dotnet2}
+BuildRequires:	dotnet-gtk-sharp-devel >= 1.9.0
+%else
 # wants {gtk,gtkhtml,glade}-sharp
 BuildRequires:	dotnet-gtk-sharp-gnome-devel >= 0.98
+%endif
+
 BuildRequires:	mono-csharp >= 0.96
 BuildRequires:	pkgconfig
+
+%if %{with dotnet2}
+Requires:	dotnet-gtk-sharp >= 1.9.0 
+%else
 Requires:	dotnet-gtk-sharp-gnome >= 0.98
+%endif
+
 Requires:	mono >= 0.96
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
diff -aurN SOURCES.orig/monodoc-gtk_sharp_2.patch SOURCES/monodoc-gtk_sharp_2.patch
--- SOURCES.orig/monodoc-gtk_sharp_2.patch	2005-05-12 01:35:44.485136680 +0200
+++ SOURCES/monodoc-gtk_sharp_2.patch	2005-05-12 01:35:32.778916296 +0200
@@ -32,3 +32,19 @@
  	PKG_CHECK_MODULES(BASE_DEPENDENCIES_RUNTIME, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
  	PKG_CHECK_MODULES(BASE_DEPENDENCIES_RUNTIME, mint >= $MONO_REQUIRED_VERSION, has_mint=true, has_mint=false)
  	if test "x$has_mono" = "xtrue"; then
+--- monodoc-1.0.6.orig/monodoc.pc	2005-02-07 18:36:41.000000000 +0100
++++ monodoc-1.0.6/monodoc.pc	2005-05-10 18:02:06.066482408 +0200
+@@ -5,4 +5,4 @@
+ Name: Monodoc
+ Description: Monodoc - Mono Documentation Browser
+ Version: 1.0.6
+-Libs: /r:${libdir}/mono/gtk-sharp/monodoc.dll 
++Libs: /r:${libdir}/mono/gtk-sharp-2.0/monodoc.dll 
+--- monodoc-1.0.6.orig/monodoc.pc.in	2004-11-13 20:56:52.000000000 +0100
++++ monodoc-1.0.6/monodoc.pc.in	2005-05-10 18:01:56.099997544 +0200
+@@ -5,4 +5,4 @@
+ Name: Monodoc
+ Description: Monodoc - Mono Documentation Browser
+ Version: @VERSION@
+-Libs: /r:${libdir}/mono/gtk-sharp/monodoc.dll 
++Libs: /r:${libdir}/mono/gtk-sharp-2.0/monodoc.dll 
-------------- next part --------------
diff -aurN SPECS.orig/dotnet-gtksourceview-sharp.spec SPECS/dotnet-gtksourceview-sharp.spec
--- SPECS.orig/dotnet-gtksourceview-sharp.spec	2005-05-12 01:40:34.838996184 +0200
+++ SPECS/dotnet-gtksourceview-sharp.spec	2005-05-12 01:40:29.176856960 +0200
@@ -85,6 +85,7 @@
 %{_datadir}/gapi-2.0/*
 %{_pkgconfigdir}/*
 %{_libdir}/monodoc/sources/gtksourceview-sharp-*
+%{_libdir}/mono/gtksourceview-sharp/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog


More information about the pld-devel-pl mailing list