summaryrefslogtreecommitdiff
path: root/extra/gtksourceview-sharp-2.0
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/gtksourceview-sharp-2.0
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/gtksourceview-sharp-2.0')
-rw-r--r--extra/gtksourceview-sharp-2.0/PKGBUILD31
-rw-r--r--extra/gtksourceview-sharp-2.0/gtksourceview-sharp-2.0.install24
-rw-r--r--extra/gtksourceview-sharp-2.0/gtksourceview-sharp2-gnome-print.patch57
3 files changed, 112 insertions, 0 deletions
diff --git a/extra/gtksourceview-sharp-2.0/PKGBUILD b/extra/gtksourceview-sharp-2.0/PKGBUILD
new file mode 100644
index 000000000..1f51ac1f0
--- /dev/null
+++ b/extra/gtksourceview-sharp-2.0/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 22404 2008-12-26 18:25:17Z jgc $
+# Maintainer: tobias <tobias@archlinux.org>
+# Contributor: Brice Carpentier <brice@daknet.org>
+
+pkgname=gtksourceview-sharp-2.0
+pkgver=0.12
+pkgrel=1
+pkgdesc="a C# binding to gtksourceview"
+url="http://www.mono-project.com/"
+depends=('gtksourceview' 'gtk-sharp-2>=2.12.7' 'gnome-sharp>=2.24.0')
+makedepends=('monodoc')
+conflicts=('gtksourceview-sharp')
+provides=('gtksourceview-sharp')
+source=(http://ftp.novell.com/pub/mono/sources/gtksourceview-sharp2/${pkgname}-${pkgver}.tar.bz2
+ gtksourceview-sharp2-gnome-print.patch)
+license=('LGPL2')
+arch=('i686' 'x86_64')
+
+build() {
+ export MONO_SHARED_DIR="${srcdir}/weird"
+ mkdir -p "${MONO_SHARED_DIR}"
+
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -Np0 -i "${srcdir}/gtksourceview-sharp2-gnome-print.patch" || return 1
+ autoreconf || return 1
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make GACUTIL="/usr/bin/gacutil /root ${pkgdir}/usr/lib" \
+ DESTDIR="${pkgdir}" install || return 1
+ rm -rf "${pkgdir}/usr/share/gtksourceview-1.0"
+}
diff --git a/extra/gtksourceview-sharp-2.0/gtksourceview-sharp-2.0.install b/extra/gtksourceview-sharp-2.0/gtksourceview-sharp-2.0.install
new file mode 100644
index 000000000..4d9d891f6
--- /dev/null
+++ b/extra/gtksourceview-sharp-2.0/gtksourceview-sharp-2.0.install
@@ -0,0 +1,24 @@
+post_install() {
+ echo "recreating monodoc index ... this could take a while..."
+ monodoc --make-index > /dev/null 2>&1
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ /bin/true
+}
+
+post_remove() {
+ echo "recreating monodoc index ... this could take a while..."
+ monodoc --make-index > /dev/null 2>&1
+}
+
+op=$1
+shift
+
+$op $*
diff --git a/extra/gtksourceview-sharp-2.0/gtksourceview-sharp2-gnome-print.patch b/extra/gtksourceview-sharp-2.0/gtksourceview-sharp2-gnome-print.patch
new file mode 100644
index 000000000..618f3f94e
--- /dev/null
+++ b/extra/gtksourceview-sharp-2.0/gtksourceview-sharp2-gnome-print.patch
@@ -0,0 +1,57 @@
+--- configure.in 2008-02-26 16:30:05.000000000 -0700
++++ configure.in 2008-09-05 13:36:30.000000000 -0600
+@@ -69,6 +69,16 @@
+ gtksharp_prefix=`pkg-config --variable=prefix gtk-sharp-2.0`
+ AC_SUBST(gtksharp_prefix)
+
++PKG_CHECK_MODULES(GNOMEPRINT_SHARP, gnome-print-sharp-2.18, use_gnomeprint=yes, use_gnomeprint=no)
++if test "x$use_gnomeprint" = "xyes" ; then
++GNOMEPRINT_SHARP_REQUIRES=gnome-print-sharp-2.18
++else
++GNOMEPRINT_SHARP_REQUIRES=
++fi
++AC_SUBST(GNOMEPRINT_SHARP_CFLAGS)
++AC_SUBST(GNOMEPRINT_SHARP_LIBS)
++AC_SUBST(GNOMEPRINT_SHARP_REQUIRES)
++
+ PKG_CHECK_MODULES(GTKSOURCEVIEW, gtksourceview-1.0 >= 1.0.0)
+ AC_SUBST(GTKSOURCEVIEW_LIBS)
+ gtksourceview_prefix=`pkg-config --variable=prefix gtksourceview-1.0`
+--- gtksourceview/Makefile.am 2008-02-26 16:30:05.000000000 -0700
++++ gtksourceview/Makefile.am 2008-09-05 13:14:53.000000000 -0600
+@@ -2,7 +2,7 @@
+ LIBRARY= $(LIBRARY_NAME).dll
+ APIS= gtksourceview-api.xml
+
+-ASSEMBLIES= /pkg:gnome-sharp-2.0
++ASSEMBLIES= $(GTK_SHARP_LIBS) $(GNOMEPRINT_SHARP_LIBS)
+
+ EXTRA_DIST = $(sources) $(customs) Gtk.metadata gtksourceview-api.raw AssemblyInfo.cs.in
+
+@@ -21,7 +21,7 @@
+ $(GAPI_FIXUP) --api=gtksourceview-api.xml --metadata=$(srcdir)/Gtk.metadata
+
+ generated-stamp: $(APIS) $(customs) $(sources) Gtk.metadata
+- $(GAPI_CODEGEN) $(GTK_SHARP_CFLAGS) --generate $(APIS) \
++ $(GAPI_CODEGEN) $(GTK_SHARP_CFLAGS) $(GNOMEPRINT_SHARP_CFLAGS) --generate $(APIS) \
+ --outdir=generated --customdir=. --assembly-name=gtksourceview-sharp && touch generated-stamp
+
+ sources = \
+--- gtksourceview-sharp-2.0.pc.in 2008-02-26 16:30:05.000000000 -0700
++++ gtksourceview-sharp-2.0.pc.in 2008-09-05 13:22:33.000000000 -0600
+@@ -6,5 +6,5 @@
+ Name: GtkSourceView#
+ Description: GtkSourceView# - gtksourceview .NET Binding
+ Version: @VERSION@
+-Requires: gnome-sharp-2.0
++Requires: gnome-sharp-2.0 @GNOMEPRINT_SHARP_REQUIRES@
+ Libs: -r:${prefix}/lib/mono/gtksourceview-sharp-2.0/gtksourceview-sharp.dll
+--- sample/Makefile.am 2008-02-26 16:30:05.000000000 -0700
++++ sample/Makefile.am 2008-09-05 13:35:34.000000000 -0600
+@@ -10,5 +10,5 @@
+ $(CSC) -out:$@ $(srcdir)/SourceViewTest.cs -r:../gtksourceview/gtksourceview-sharp.dll -pkg:gtk-sharp-2.0
+
+ $(PRINT): $(srcdir)/PrintSample.cs
+- $(CSC) -out:$@ $(srcdir)/PrintSample.cs -r:../gtksourceview/gtksourceview-sharp.dll -pkg:gtk-sharp-2.0 -pkg:gnome-sharp-2.0
++ $(CSC) -out:$@ $(srcdir)/PrintSample.cs -r:../gtksourceview/gtksourceview-sharp.dll -pkg:gtk-sharp-2.0 -pkg:gnome-sharp-2.0 $(GNOMEPRINT_SHARP_LIBS)
+