summaryrefslogtreecommitdiff
path: root/recipes/libgpepimc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/libgpepimc')
-rw-r--r--recipes/libgpepimc/files/get-category-by-name.patch45
-rw-r--r--recipes/libgpepimc/libgpepimc-hildon_0.5.bb27
-rw-r--r--recipes/libgpepimc/libgpepimc.inc24
-rw-r--r--recipes/libgpepimc/libgpepimc_0.2.bb25
-rw-r--r--recipes/libgpepimc/libgpepimc_0.3.bb23
-rw-r--r--recipes/libgpepimc/libgpepimc_0.4.bb23
-rw-r--r--recipes/libgpepimc/libgpepimc_0.5.bb1
-rw-r--r--recipes/libgpepimc/libgpepimc_0.6.bb1
-rw-r--r--recipes/libgpepimc/libgpepimc_0.8.bb1
-rw-r--r--recipes/libgpepimc/libgpepimc_0.9.bb4
-rw-r--r--recipes/libgpepimc/libgpepimc_pc.patch23
-rw-r--r--recipes/libgpepimc/libgpepimc_svn.bb27
12 files changed, 224 insertions, 0 deletions
diff --git a/recipes/libgpepimc/files/get-category-by-name.patch b/recipes/libgpepimc/files/get-category-by-name.patch
new file mode 100644
index 0000000000..a733f40ccf
--- /dev/null
+++ b/recipes/libgpepimc/files/get-category-by-name.patch
@@ -0,0 +1,45 @@
+diff -r 90e7a26811fe db.c
+--- a/db.c Mon Jan 21 02:03:38 2008 +0200
++++ b/db.c Mon Jan 21 02:08:31 2008 +0200
+@@ -182,6 +182,30 @@ gpe_pim_category_name (gint id)
+ }
+
+ /**
++ * gpe_pim_category_id:
++ * @name: Category name
++ *
++ * Get the category ID by name.
++ *
++ * Returns: Category ID or 0 if doesn't exist.
++ */
++gint
++gpe_pim_category_id (const gchar *name)
++{
++ GSList *iter;
++
++ for (iter = categories; iter; iter = iter->next)
++ {
++ struct gpe_pim_category *c = iter->data;
++
++ if (!strcasecmp(c->name, name))
++ return c->id;
++ }
++
++ return 0;
++}
++
++/**
+ * gpe_pim_category_colour:
+ * @id: Category id
+ *
+diff -r 90e7a26811fe gpe/pim-categories.h
+--- a/gpe/pim-categories.h Mon Jan 21 02:03:38 2008 +0200
++++ b/gpe/pim-categories.h Mon Jan 21 02:08:31 2008 +0200
+@@ -36,6 +36,7 @@ extern GSList *gpe_pim_categories_list (
+
+ extern gboolean gpe_pim_category_new (const gchar *title, gint *id);
+ extern const gchar *gpe_pim_category_name (gint id);
++extern gint gpe_pim_category_id (const gchar *name);
+ extern gboolean gpe_pim_category_rename (gint id, gchar *new_name);
+
+ /* colour functions */
diff --git a/recipes/libgpepimc/libgpepimc-hildon_0.5.bb b/recipes/libgpepimc/libgpepimc-hildon_0.5.bb
new file mode 100644
index 0000000000..ccd8aca6f4
--- /dev/null
+++ b/recipes/libgpepimc/libgpepimc-hildon_0.5.bb
@@ -0,0 +1,27 @@
+LICENSE = "LGPL"
+PR = "r0"
+DESCRIPTION = "Common code for GPE PIMs (hildon UI version)"
+SECTION = "gpe/libs"
+PRIORITY = "optional"
+DEPENDS = "libgpewidget-hildon gtk+ sqlite hildon-lgpl"
+PROVIDES = "libgepepimc"
+RPROVIDES = "libgepepimc"
+
+SRC_URI = "${GPE_MIRROR}/libgpepimc-${PV}.tar.bz2"
+
+EXTRA_OECONF = "--enable-hildon"
+S = "${WORKDIR}/libgpepimc-${PV}"
+
+inherit pkgconfig autotools
+
+headers = "pim-categories.h pim-categories-ui.h"
+
+do_stage () {
+ oe_libinstall -so libgpepimc ${STAGING_LIBDIR}
+
+ mkdir -p ${STAGING_INCDIR}/gpe
+ for h in ${headers}; do
+ install -m 0644 ${S}/gpe/$h ${STAGING_INCDIR}/gpe/$h
+ done
+}
+
diff --git a/recipes/libgpepimc/libgpepimc.inc b/recipes/libgpepimc/libgpepimc.inc
new file mode 100644
index 0000000000..3f5a60b7f8
--- /dev/null
+++ b/recipes/libgpepimc/libgpepimc.inc
@@ -0,0 +1,24 @@
+LICENSE = "LGPL"
+PR = "r1"
+DESCRIPTION = "Common code for GPE PIMs"
+SECTION = "gpe/libs"
+PRIORITY = "optional"
+DEPENDS = "libgpewidget gtk+ sqlite"
+PROVIDES = "libgepepimc"
+RPROVIDES = "libgepepimc"
+
+SRC_URI = "${GPE_MIRROR}/libgpepimc-${PV}.tar.bz2"
+
+inherit pkgconfig autotools
+
+headers = "pim-categories.h pim-categories-ui.h"
+
+do_stage () {
+ oe_libinstall -so libgpepimc ${STAGING_LIBDIR}
+
+ mkdir -p ${STAGING_INCDIR}/gpe
+ for h in ${headers}; do
+ install -m 0644 ${S}/gpe/$h ${STAGING_INCDIR}/gpe/$h
+ done
+}
+
diff --git a/recipes/libgpepimc/libgpepimc_0.2.bb b/recipes/libgpepimc/libgpepimc_0.2.bb
new file mode 100644
index 0000000000..be71eaa371
--- /dev/null
+++ b/recipes/libgpepimc/libgpepimc_0.2.bb
@@ -0,0 +1,25 @@
+LICENSE = "LGPL"
+DESCRIPTION = "Common code for GPE PIMs"
+SECTION = "gpe/libs"
+PRIORITY = "optional"
+DEPENDS = "libgpewidget libdisplaymigration gtk+ sqlite"
+
+inherit pkgconfig gpe
+
+SRC_URI += "file://libgpepimc_pc.patch;patch=1"
+
+headers = "pim-categories.h pim-categories-ui.h"
+
+do_stage () {
+ oe_libinstall -so libgpepimc ${STAGING_LIBDIR}
+
+ mkdir -p ${STAGING_INCDIR}/gpe
+ for h in ${headers}; do
+ install -m 0644 ${S}/gpe/$h ${STAGING_INCDIR}/gpe/$h
+ done
+}
+
+do_install () {
+ gpe_do_install
+ oe_runmake PREFIX=${prefix} DESTDIR=${D} install-devel
+}
diff --git a/recipes/libgpepimc/libgpepimc_0.3.bb b/recipes/libgpepimc/libgpepimc_0.3.bb
new file mode 100644
index 0000000000..8115c689cf
--- /dev/null
+++ b/recipes/libgpepimc/libgpepimc_0.3.bb
@@ -0,0 +1,23 @@
+LICENSE = "LGPL"
+DESCRIPTION = "Common code for GPE PIMs"
+SECTION = "gpe/libs"
+PRIORITY = "optional"
+DEPENDS = "libgpewidget libdisplaymigration gtk+ sqlite"
+
+inherit pkgconfig gpe
+
+headers = "pim-categories.h pim-categories-ui.h"
+
+do_stage () {
+ oe_libinstall -so libgpepimc ${STAGING_LIBDIR}
+
+ mkdir -p ${STAGING_INCDIR}/gpe
+ for h in ${headers}; do
+ install -m 0644 ${S}/gpe/$h ${STAGING_INCDIR}/gpe/$h
+ done
+}
+
+do_install () {
+ gpe_do_install
+ oe_runmake PREFIX=${prefix} DESTDIR=${D} install-devel
+}
diff --git a/recipes/libgpepimc/libgpepimc_0.4.bb b/recipes/libgpepimc/libgpepimc_0.4.bb
new file mode 100644
index 0000000000..8115c689cf
--- /dev/null
+++ b/recipes/libgpepimc/libgpepimc_0.4.bb
@@ -0,0 +1,23 @@
+LICENSE = "LGPL"
+DESCRIPTION = "Common code for GPE PIMs"
+SECTION = "gpe/libs"
+PRIORITY = "optional"
+DEPENDS = "libgpewidget libdisplaymigration gtk+ sqlite"
+
+inherit pkgconfig gpe
+
+headers = "pim-categories.h pim-categories-ui.h"
+
+do_stage () {
+ oe_libinstall -so libgpepimc ${STAGING_LIBDIR}
+
+ mkdir -p ${STAGING_INCDIR}/gpe
+ for h in ${headers}; do
+ install -m 0644 ${S}/gpe/$h ${STAGING_INCDIR}/gpe/$h
+ done
+}
+
+do_install () {
+ gpe_do_install
+ oe_runmake PREFIX=${prefix} DESTDIR=${D} install-devel
+}
diff --git a/recipes/libgpepimc/libgpepimc_0.5.bb b/recipes/libgpepimc/libgpepimc_0.5.bb
new file mode 100644
index 0000000000..57b7b22191
--- /dev/null
+++ b/recipes/libgpepimc/libgpepimc_0.5.bb
@@ -0,0 +1 @@
+require libgpepimc.inc
diff --git a/recipes/libgpepimc/libgpepimc_0.6.bb b/recipes/libgpepimc/libgpepimc_0.6.bb
new file mode 100644
index 0000000000..57b7b22191
--- /dev/null
+++ b/recipes/libgpepimc/libgpepimc_0.6.bb
@@ -0,0 +1 @@
+require libgpepimc.inc
diff --git a/recipes/libgpepimc/libgpepimc_0.8.bb b/recipes/libgpepimc/libgpepimc_0.8.bb
new file mode 100644
index 0000000000..57b7b22191
--- /dev/null
+++ b/recipes/libgpepimc/libgpepimc_0.8.bb
@@ -0,0 +1 @@
+require libgpepimc.inc
diff --git a/recipes/libgpepimc/libgpepimc_0.9.bb b/recipes/libgpepimc/libgpepimc_0.9.bb
new file mode 100644
index 0000000000..e8c4664cf8
--- /dev/null
+++ b/recipes/libgpepimc/libgpepimc_0.9.bb
@@ -0,0 +1,4 @@
+require libgpepimc.inc
+PR = "r1"
+
+SRC_URI += " file://get-category-by-name.patch;patch=1"
diff --git a/recipes/libgpepimc/libgpepimc_pc.patch b/recipes/libgpepimc/libgpepimc_pc.patch
new file mode 100644
index 0000000000..7d4f5f7274
--- /dev/null
+++ b/recipes/libgpepimc/libgpepimc_pc.patch
@@ -0,0 +1,23 @@
+diff -u libgpepimc-0.2.orig/libgpepimc.pc.in libgpepimc-0.2/libgpepimc.pc.in
+--- libgpepimc-0.2.orig/libgpepimc.pc.in 2004-02-18 07:33:19.000000000 +1100
++++ libgpepimc-0.2/libgpepimc.pc.in 2004-04-23 15:52:38.000000000 +1000
+@@ -6,6 +6,6 @@
+ Name: libgpevtype
+ Description: GPE PIM Categories Library
+ Version: VERSION
+-Requires: gtk-2.0
++Requires: gtk+-2.0
+ Libs: -L${libdir} -lgpepimc
+ Cflags: -I${includedir}
+diff -u libgpepimc-0.2.orig/libgpepimc-uninstalled.pc.in libgpepimc-0.2/libgpepimc-uninstalled.pc.in
+--- libgpepimc-0.2.orig/libgpepimc-uninstalled.pc.in 2004-02-18 07:33:38.000000000 +1100
++++ libgpepimc-0.2/libgpepimc-uninstalled.pc.in 2004-04-23 15:52:48.000000000 +1000
+@@ -1,6 +1,6 @@
+ Name: libgpevtype
+ Description: GPE PIM Categories Library (not installed)
+ Version: VERSION
+-Requires: gtk-2.0
++Requires: gtk+-2.0
+ Libs: -LBUILDDIR -lgpepimc
+ Cflags: -IBUILDDIR
+Common subdirectories: libgpepimc-0.2.orig/po and libgpepimc-0.2/po
diff --git a/recipes/libgpepimc/libgpepimc_svn.bb b/recipes/libgpepimc/libgpepimc_svn.bb
new file mode 100644
index 0000000000..b195837ed3
--- /dev/null
+++ b/recipes/libgpepimc/libgpepimc_svn.bb
@@ -0,0 +1,27 @@
+DESCRIPTION = "Common code for GPE PIMs"
+SECTION = "gpe/libs"
+PRIORITY = "optional"
+LICENSE = "LGPL"
+DEPENDS = "libgpewidget gtk+ sqlite"
+PROVIDES = "libgepepimc"
+RPROVIDES = "libgepepimc"
+PV = "0.8+svn${SRCDATE}"
+PR = "r0"
+
+inherit pkgconfig autotools
+
+SRC_URI = "${GPE_SVN}"
+
+S = "${WORKDIR}/${PN}"
+
+do_stage () {
+ oe_libinstall -so libgpepimc ${STAGING_LIBDIR}
+ mkdir -p ${STAGING_INCDIR}/gpe
+ for h in ${headers}; do
+ install -m 0644 ${S}/gpe/$h ${STAGING_INCDIR}/gpe/$h
+ done
+}
+
+headers = "pim-categories.h pim-categories-ui.h"
+
+DEFAULT_PREFERENCE = "-1"