summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/leafpad
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 14:14:24 (GMT)
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 14:29:45 (GMT)
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-sato/leafpad
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-sato/leafpad')
-rw-r--r--meta/recipes-sato/leafpad/files/leafpad.desktop10
-rw-r--r--meta/recipes-sato/leafpad/files/owl-menu.patch61
-rw-r--r--meta/recipes-sato/leafpad/leafpad_0.8.17.bb28
3 files changed, 99 insertions, 0 deletions
diff --git a/meta/recipes-sato/leafpad/files/leafpad.desktop b/meta/recipes-sato/leafpad/files/leafpad.desktop
new file mode 100644
index 0000000..c7e2d5b
--- /dev/null
+++ b/meta/recipes-sato/leafpad/files/leafpad.desktop
@@ -0,0 +1,10 @@
1[Desktop Entry]
2Name=Notes
3Exec=/usr/bin/leafpad
4Comment=Text Editor
5Icon=accessories-text-editor
6Terminal=false
7Type=Application
8Categories=GTK;Utility;TextEditor;
9X-MB-SingleInstance=true
10StartupNotify=true
diff --git a/meta/recipes-sato/leafpad/files/owl-menu.patch b/meta/recipes-sato/leafpad/files/owl-menu.patch
new file mode 100644
index 0000000..acfc880
--- /dev/null
+++ b/meta/recipes-sato/leafpad/files/owl-menu.patch
@@ -0,0 +1,61 @@
1--- tmp/src/menu.c.orig 2007-04-23 12:08:41.000000000 +0100
2+++ tmp/src/menu.c 2007-04-23 12:08:41.000000000 +0100
3@@ -152,7 +152,7 @@
4 }
5
6 accel_group = gtk_accel_group_new();
7- ifactory = gtk_item_factory_new(GTK_TYPE_MENU_BAR, "<main>", accel_group);
8+ ifactory = gtk_item_factory_new(GTK_TYPE_MENU, "<main>", accel_group);
9 gtk_item_factory_set_translate_func(ifactory, menu_translate, NULL, NULL);
10 gtk_item_factory_create_items(ifactory, nmenu_items, menu_items, NULL);
11 gtk_window_add_accel_group(GTK_WINDOW(window), accel_group);
12
13--- tmp/src/window.c.orig 2007-04-23 12:14:07.000000000 +0100
14+++ tmp/src/window.c 2007-04-23 12:14:07.000000000 +0100
15@@ -18,6 +18,8 @@
16 */
17
18 #include "leafpad.h"
19+#include <libowl/owlwindowmenu.h>
20+
21 /*
22 static void cb_scroll_event(GtkAdjustment *adj, GtkWidget *view)
23 {
24@@ -52,7 +54,6 @@
25 gtk_container_add(GTK_CONTAINER(window), vbox);
26
27 menubar = create_menu_bar(window);
28- gtk_box_pack_start(GTK_BOX(vbox), menubar, FALSE, FALSE, 0);
29
30 sw = gtk_scrolled_window_new(NULL, NULL);
31 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw),
32
33--- tmp/src/main.c.orig 2007-04-23 12:15:03.000000000 +0100
34+++ tmp/src/main.c 2007-04-23 12:15:03.000000000 +0100
35@@ -244,6 +244,7 @@
36 Conf *conf;
37 GtkItemFactory *ifactory;
38 gchar *stdin_data = NULL;
39+ GtkWidget *menu;
40
41 bindtextdomain(PACKAGE, LOCALEDIR);
42 bind_textdomain_codeset(PACKAGE, "UTF-8");
43@@ -293,7 +294,10 @@
44 conf->autoindent);
45
46 gtk_widget_show_all(pub->mw->window);
47+ owl_set_window_menu (GTK_WINDOW(pub->mw->window),
48+ GTK_MENU(pub->mw->menubar));
49+
50 g_free(conf->fontname);
51 g_free(conf);
52
53
54--- tmp/src/Makefile.am.orig 2007-04-23 12:17:54.000000000 +0100
55+++ tmp/src/Makefile.am 2007-04-23 12:17:54.000000000 +0100
56@@ -27,4 +27,4 @@
57 i18n.h
58
59 leafpad_CFLAGS = $(GTK_CFLAGS) $(GNOMEPRINT_CFLAGS)
60-leafpad_LDADD = $(GTK_LIBS) $(INTLLIBS) $(GNOMEPRINT_LIBS)
61+leafpad_LDADD = $(GTK_LIBS) $(INTLLIBS) $(GNOMEPRINT_LIBS) -lowl
diff --git a/meta/recipes-sato/leafpad/leafpad_0.8.17.bb b/meta/recipes-sato/leafpad/leafpad_0.8.17.bb
new file mode 100644
index 0000000..5407b9e
--- /dev/null
+++ b/meta/recipes-sato/leafpad/leafpad_0.8.17.bb
@@ -0,0 +1,28 @@
1DESCRIPTION = "Simple GTK+ Text Editor"
2HOMEPAGE = "http://tarot.freeshell.org/leafpad/"
3BUGTRACKER = ""
4
5LICENSE = "GPLv2 & GPLv2+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
7 file://src/leafpad.h;endline=20;md5=d3d6a89f5e61e8b13bdea537511ba1fa \
8 file://src/utils.c;endline=20;md5=0d2cc6584ba3202448bb274f62739571"
9
10DEPENDS = "gtk+ intltool-native"
11DEPENDS_append_poky = " libowl"
12SRC_URI = "http://savannah.nongnu.org/download/${PN}/${PN}-${PV}.tar.gz \
13 file://leafpad.desktop"
14PR = "r0"
15
16SRC_URI_append_poky += " file://owl-menu.patch;apply=yes "
17
18inherit autotools pkgconfig
19
20EXTRA_OECONF = " --enable-chooser --disable-gtktest --disable-print"
21
22do_install_append () {
23 install -d ${D}/${datadir}
24 install -d ${D}/${datadir}/applications
25 install -m 0644 ${WORKDIR}/leafpad.desktop ${D}/${datadir}/applications
26}
27
28FILES_${PN} += "${datadir}/applications/leafpad.desktop"