Merge lp:~robert-ancell/launchpad-integration/cli-bindings into lp:~ubuntu-core-dev/launchpad-integration/ubuntu

Proposed by Robert Ancell
Status: Rejected
Rejected by: Robert Ancell
Proposed branch: lp:~robert-ancell/launchpad-integration/cli-bindings
Merge into: lp:~ubuntu-core-dev/launchpad-integration/ubuntu
Diff against target: 180 lines (+113/-3)
7 files modified
configure.ac (+25/-1)
debian/changelog (+6/-0)
debian/control (+22/-1)
debian/launchpad-integration1-cil.install (+1/-0)
lib/LaunchpadIntegration.cs (+41/-0)
lib/Makefile.am (+16/-0)
lib/launchpad-integration.c (+2/-1)
To merge this branch: bzr merge lp:~robert-ancell/launchpad-integration/cli-bindings
To post a comment you must log in.
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Abandoning - lpi is dead

Unmerged revisions

119. By Robert Ancell

Add CLI bindings

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'configure.ac'
--- configure.ac 2008-06-13 19:28:24 +0000
+++ configure.ac 2010-01-15 02:08:11 +0000
@@ -1,4 +1,4 @@
1AC_INIT([launchpad-integration], [0.1.20])1AC_INIT([launchpad-integration], [0.1.26])
22
3AC_CONFIG_HEADERS([config.h])3AC_CONFIG_HEADERS([config.h])
4AC_CONFIG_MACRO_DIR([m4])4AC_CONFIG_MACRO_DIR([m4])
@@ -43,6 +43,30 @@
43AC_MSG_RESULT($PYGTK_DEFSDIR)43AC_MSG_RESULT($PYGTK_DEFSDIR)
4444
4545
46###########################
47# Check for Mono support
48###########################
49MONO_REQUIRED_VERSION=1.0
50PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
51
52AC_PATH_PROG(AL, al, no)
53if test "x$AL" = "xno" ; then
54 AC_MSG_ERROR([No al tool found. You need to install Mono.])
55fi
56
57if test "x$has_mono" = "xtrue" ; then
58 AC_PATH_PROG(CSC, gmcs, no)
59fi
60
61if test "x$CSC" = "xno" ; then
62 AC_MSG_ERROR([No Mono compiler found.])
63fi
64AC_SUBST(CSC)
65GTK_SHARP_REQ_VERSION=2.12
66PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTK_SHARP_REQ_VERSION)
67AC_SUBST(GTK_SHARP_LIBS)
68AC_SUBST(GTK_SHARP_CFLAGS)
69
46AC_CONFIG_FILES([70AC_CONFIG_FILES([
47Makefile71Makefile
48lib/Makefile72lib/Makefile
4973
=== modified file 'debian/changelog'
--- debian/changelog 2009-09-24 17:07:57 +0000
+++ debian/changelog 2010-01-15 02:08:11 +0000
@@ -1,3 +1,9 @@
1launchpad-integration (0.1.26) lucid; urgency=low
2
3 * Add CLI bindings
4
5 -- Robert Ancell <robert.ancell@canonical.com> Fri, 15 Jan 2010 12:39:36 +1100
6
1launchpad-integration (0.1.25) karmic; urgency=low7launchpad-integration (0.1.25) karmic; urgency=low
28
3 * Update the url to use for launchpad translations9 * Update the url to use for launchpad translations
410
=== modified file 'debian/control'
--- debian/control 2008-10-16 11:45:19 +0000
+++ debian/control 2010-01-15 02:08:11 +0000
@@ -1,7 +1,17 @@
1Source: launchpad-integration1Source: launchpad-integration
2Priority: optional2Priority: optional
3Maintainer: Sebastien Bacher <seb128@debian.org>3Maintainer: Sebastien Bacher <seb128@debian.org>
4Build-Depends: debhelper (>= 5), cdbs, autotools-dev, libbonoboui2-dev (>= 2.10.1-0ubuntu2), libgtk2.0-dev (>= 2.8.2), python-gtk2-dev, python-gtk2-dbg, python-all-dev, python-all-dbg, python-central (>= 0.5)4Build-Depends: debhelper (>= 5),
5 cdbs,
6 autotools-dev,
7 libbonoboui2-dev (>= 2.10.1-0ubuntu2),
8 libgtk2.0-dev (>= 2.8.2),
9 python-gtk2-dev,
10 python-gtk2-dbg,
11 python-all-dev,
12 python-all-dbg,
13 python-central (>= 0.5),
14 mono-gmcs
5XS-Python-Version: all15XS-Python-Version: all
6Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-core-dev/launchpad-integration/ubuntu16Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-core-dev/launchpad-integration/ubuntu
7Standards-Version: 3.7.217Standards-Version: 3.7.2
@@ -98,3 +108,14 @@
98 .108 .
99 This package contains the python bindings of the shared library, built109 This package contains the python bindings of the shared library, built
100 for the python debug interpreter.110 for the python debug interpreter.
111
112Package: launchpad-integration1-cil
113Priority: optional
114Section: cli-mono
115Architecture: any
116Depends: liblaunchpad-integration1
117Description: CLI bindings for liblaunchpad-integration
118 This package provides the launchpad-integration-sharp assembly that allows CLI (.NET)
119 programs to provide Launchpad menu items.
120 .
121 This package contains assemblies to be used by applications.
101122
=== added file 'debian/launchpad-integration1-cil.install'
--- debian/launchpad-integration1-cil.install 1970-01-01 00:00:00 +0000
+++ debian/launchpad-integration1-cil.install 2010-01-15 02:08:11 +0000
@@ -0,0 +1,1 @@
1debian/tmp/usr/lib/mono/lpi-sharp
02
=== added file 'lib/LaunchpadIntegration.cs'
--- lib/LaunchpadIntegration.cs 1970-01-01 00:00:00 +0000
+++ lib/LaunchpadIntegration.cs 2010-01-15 02:08:11 +0000
@@ -0,0 +1,41 @@
1namespace LaunchpadIntegration
2{
3 using Gtk;
4 using System;
5 using System.Runtime.InteropServices;
6
7 public static class LaunchpadIntegration
8 {
9 [DllImport("liblaunchpad-integration.so")]
10 static extern void launchpad_integration_set_sourcepackagename(string name);
11
12 public static void SetSourcePackageName(string name)
13 {
14 launchpad_integration_set_sourcepackagename(name);
15 }
16
17 [DllImport("liblaunchpad-integration.so")]
18 static extern void launchpad_integration_add_ui(IntPtr ui, string path);
19
20 public static void AddUI(Gtk.UIManager ui, string path)
21 {
22 launchpad_integration_add_ui(ui.Handle, path);
23 }
24
25 [DllImport("liblaunchpad-integration.so")]
26 static extern void launchpad_integration_add_ui_with_separators(IntPtr ui, string path, bool separator_before, bool separator_after);
27
28 public static void AddUIWithSeparators(Gtk.UIManager ui, string path, bool separator_before, bool separator_after)
29 {
30 launchpad_integration_add_ui_with_separators(ui.Handle, path, separator_before, separator_after);
31 }
32
33 [DllImport("liblaunchpad-integration.so")]
34 static extern void launchpad_integration_add_items(IntPtr helpmenu, int position, bool separator_before, bool separator_after);
35
36 public static void AddItems(Gtk.Widget helpmenu, int position, bool separator_before, bool separator_after)
37 {
38 launchpad_integration_add_items(helpmenu.Handle, position, separator_before, separator_after);
39 }
40 }
41}
042
=== modified file 'lib/Makefile.am'
--- lib/Makefile.am 2008-04-07 13:47:19 +0000
+++ lib/Makefile.am 2010-01-15 02:08:11 +0000
@@ -51,3 +51,19 @@
51 --prefix py$* $*.defs) > gen-$*.c \51 --prefix py$* $*.defs) > gen-$*.c \
52 && cp gen-$*.c $*.c \52 && cp gen-$*.c $*.c \
53 && rm -f gen-$*.c53 && rm -f gen-$*.c
54
55# C# stuff
56
57lpisharpdir = $(libdir)/mono/lpi-sharp
58lpisharp_CSSOURCES = $(srcdir)/LaunchpadIntegration.cs
59lpisharp_DATA=$(ASSEMBLY)
60
61ASSEMBLY = $(ASSEMBLY_NAME).dll
62ASSEMBLY_NAME = lpi-sharp
63noinst_DATA = $(ASSEMBLY)
64
65EXTRA_DIST += $(lpisharp_CSSOURCES)
66CLEANFILES += $(ASSEMBLY)
67
68$(ASSEMBLY): $(CSSOURCES)
69 $(CSC) -target:library $(GTK_SHARP_LIBS) $(lpisharp_CSSOURCES) -out:$(ASSEMBLY)
5470
=== modified file 'lib/launchpad-integration.c'
--- lib/launchpad-integration.c 2008-04-07 13:47:19 +0000
+++ lib/launchpad-integration.c 2010-01-15 02:08:11 +0000
@@ -16,7 +16,8 @@
16void16void
17launchpad_integration_set_sourcepackagename (const char *name)17launchpad_integration_set_sourcepackagename (const char *name)
18{18{
19 sourcepackagename = name;19 g_free (sourcepackagename);
20 sourcepackagename = g_strdup (name);
20}21}
2122
2223

Subscribers

People subscribed via source and target branches

to all changes: