--- wpeditor-2.18.orig/debian/control +++ wpeditor-2.18/debian/control @@ -0,0 +1,30 @@ +Source: wpeditor +Section: libs +Priority: optional +Maintainer: Ubuntu Mobile Developers +XSBC-Original-Maintainer: Ahmad Qureshi +Build-Depends: debhelper (>= 5), dpatch, autoconf, automake, libtool, libgtk2.0-dev +Standards-Version: 3.8.0 +Homepage: http://maemo.org/packages/view/wpeditor-dev/ + +Package: libwpeditor0 +Architecture: any +Depends: ${shlibs:Depends} +Description: WordPad Text Editor library + wpeditor (for WordPad Text Editor) is a library that provides a number of + GTK+ widgets that allow the input of text, including formatting information + also known as rich text. + . + This package provides the shared library. + +Package: libwpeditor-dev +Section: libdevel +Architecture: all +Depends: libwpeditor0 (>= ${binary:Version}) +Description: WordPad Text Editor library - development files + wpeditor (for WordPad Text Editor) is a library that provides a number of + GTK+ widgets that allow the input of text, including formatting information + also known as rich text. + . + This package provides the development headers. + --- wpeditor-2.18.orig/debian/wpeditor0.dirs +++ wpeditor-2.18/debian/wpeditor0.dirs @@ -0,0 +1 @@ +usr/lib --- wpeditor-2.18.orig/debian/libwpeditor0.dirs +++ wpeditor-2.18/debian/libwpeditor0.dirs @@ -0,0 +1 @@ +usr/lib --- wpeditor-2.18.orig/debian/watch +++ wpeditor-2.18/debian/watch @@ -0,0 +1,2 @@ +version=3 +opts="uversionmangle=s/([\d\.]+)-\d/$1/" http://repository.maemo.org/pool/maemo4.1/free/w/wpeditor/wpeditor_([\d\.-]+).tar.gz --- wpeditor-2.18.orig/debian/libwpeditor-dev.install +++ wpeditor-2.18/debian/libwpeditor-dev.install @@ -0,0 +1,3 @@ +usr/lib/*.so +usr/lib/pkgconfig/wpeditor.pc +usr/include/wpeditor/*.h --- wpeditor-2.18.orig/debian/rules +++ wpeditor-2.18/debian/rules @@ -0,0 +1,69 @@ +#!/usr/bin/make -f + +include /usr/share/dpatch/dpatch.make + +configure: configure-stamp +configure-stamp: patch-stamp + ./autogen.sh + ./configure --prefix=/usr + touch $@ + +clean: clean-patched unpatch +clean-patched: + $(RM) *-stamp debian/files debian/*substvars + $(RM) -r debian/libwpeditor0 debian/libwpeditor-dev + [ ! -f Makefile ] || $(MAKE) clean + +build: build-stamp +build-stamp: configure-stamp + $(MAKE) + touch $@ + +install: install-stamp +install-stamp: build-stamp + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + touch $@ + +binary: binary-arch binary-indep + +binary-arch: build install + dh_installdirs -a + dh_installdocs -a + dh_installchangelogs -a + dh_install -a --sourcedir=debian/tmp + dh_link -a + dh_strip -a + dh_compress -a + dh_fixperms -a + dh_makeshlibs -a + dh_shlibdeps -a + dh_installdeb -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary-indep: + dh_installdirs -i + dh_installdocs -i + dh_installchangelogs -i + dh_install -i --sourcedir=debian/tmp + dh_link -i + dh_strip -i + dh_compress -i + dh_fixperms -i + dh_makeshlibs -i + dh_shlibdeps -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +UPSTREAM_VERSION ?= $(shell uscan --force-download --dehs | grep upstream-version | cut -d\> -f2 | cut -d\< -f1) + +get-orig-source: + tar zxf ../wpeditor_$(UPSTREAM_VERSION).orig.tar.gz + rm -rf wpeditor-$(UPSTREAM_VERSION)/debian + tar cf - wpeditor-$(UPSTREAM_VERSION) | gzip -9fn > ../wpeditor_$(UPSTREAM_VERSION).orig.tar.gz + +.PHONY: configure build install clean binary-arch binary-indep binary + --- wpeditor-2.18.orig/debian/compat +++ wpeditor-2.18/debian/compat @@ -0,0 +1 @@ +5 --- wpeditor-2.18.orig/debian/wpeditor0.install +++ wpeditor-2.18/debian/wpeditor0.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* --- wpeditor-2.18.orig/debian/wpeditor-dev.install +++ wpeditor-2.18/debian/wpeditor-dev.install @@ -0,0 +1,3 @@ +usr/lib/*.so +usr/lib/pkgconfig/wpeditor.pc +usr/include/wpeditor/*.h --- wpeditor-2.18.orig/debian/changelog +++ wpeditor-2.18/debian/changelog @@ -0,0 +1,18 @@ +wpeditor (2.18-0ubuntu3) quantal; urgency=low + + * debian/control: Added Homepage field. + + -- Radu Stoica Fri, 14 Sep 2012 22:06:02 +0300 + +wpeditor (2.18-0ubuntu2) oneiric; urgency=low + + * Rebuild, libxcb-render-util0 is gone. + + -- Matthias Klose Fri, 02 Sep 2011 14:49:34 +0200 + +wpeditor (2.18-0ubuntu1) intrepid; urgency=low + + * Initial Release. (LP: #249921) + + -- Steve Kowalik Wed, 23 Jul 2008 12:06:32 +1000 + --- wpeditor-2.18.orig/debian/copyright +++ wpeditor-2.18/debian/copyright @@ -0,0 +1,36 @@ +This package was debianized by Ouyang Qi +Fri, 18 Jul 2006 14:00:00 +0300 + +Upstream Author: Ouyang Qi + +It was downloaded from http://repository.maemo.org/pool/maemo4.1/free/w/wpeditor/ + +Copyright: +Copyright (C) 2006 Nokia Corporation + +Parts of gtksourceiter.{c,h} have been copied from the gedit and glimmer +projects, which are Copyright (C) 2000 - 2005 Paolo Maggi and Copyright (C) + 2002, 2003 Jeroen Zwartepoorte + +Parts of wptextview.c are based on gtktextview.c from GTK - The GIMP Toolkit, +which is Copyright (C) 2000 Red Hat, Inc. + +License: +This software is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public License +as published by the Free Software Foundation; either version 2.1 of +the License, or (at your option) any later version. + +This software is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this software; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +02110-1301 USA + +On Debian/Ubuntu systems the full text of the LGPL version 2.1 can be found +/usr/share/common-licenses/LGPL-2.1. + --- wpeditor-2.18.orig/debian/libwpeditor0.install +++ wpeditor-2.18/debian/libwpeditor0.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* --- wpeditor-2.18.orig/debian/README.source +++ wpeditor-2.18/debian/README.source @@ -0,0 +1,4 @@ +This package utilises dpatch to apply patches, which means patches are +not applied until build time, and can be applied using dpatch-edit-patch, or +debian/rules patch-stamp. + --- wpeditor-2.18.orig/debian/patches/portability_fixes.dpatch +++ wpeditor-2.18/debian/patches/portability_fixes.dpatch @@ -0,0 +1,88 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## portability_fixes.dpatch by Steve Kowalik +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Various portability fixes + +@DPATCH@ +--- wpeditor-2.12/src/wphtmlparser.c 2007-07-23 22:35:05.000000000 +1000 ++++ wpeditor-2.12/src/wphtmlparser.c 2007-12-04 23:23:43.000000000 +1100 +@@ -740,7 +740,7 @@ + MAX_TAG_LENGTH) + { + *parser->last_tag_pos = tolower(*pos); +- *parser->last_tag_pos++; ++ (*parser->last_tag_pos)++; + } + pos++; + } +--- wpeditor-2.12/src/wptextbuffer.c 2007-09-27 20:49:41.000000000 +1000 ++++ wpeditor-2.12/src/wptextbuffer.c 2007-12-04 23:23:04.000000000 +1100 +@@ -1680,7 +1680,7 @@ + static gboolean + check_tag_type(GtkTextTag * tag, gint base, gint * nr) + { +- gint val = (gint) g_object_get_data(G_OBJECT(tag), WPT_ID); ++ gint val = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(tag), WPT_ID)); + gboolean result = val >= base && val <= base + 999; + if (result && nr) + *nr = val - base; +@@ -1695,7 +1695,7 @@ + static gboolean + check_tag_fontsize_type(GtkTextTag * tag) + { +- gint val = (gint) g_object_get_data(G_OBJECT(tag), WPT_ID); ++ gint val = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(tag), WPT_ID)); + return (val >= WPT_FONT_SIZE && val <= WPT_FONT_SIZE + 999) || + (val >= WPT_SUB_SRPT && val <= WPT_SUB_SRPT + 999) || + (val >= WPT_SUP_SRPT && val <= WPT_SUP_SRPT + 999); +@@ -2534,7 +2534,7 @@ + { + g_return_val_if_fail(WP_IS_TEXT_BUFFER(buffer), FALSE); + WPTextBufferPrivate *priv = buffer->priv; +- gboolean enable = (gboolean) data; ++ gboolean enable = (gboolean) GPOINTER_TO_INT(data); + + // wp_undo_reset_mergeable(buffer->priv->undo); + +@@ -2586,11 +2586,11 @@ + return TRUE; + break; + case WPT_FONT: +- priv->fmt.font = (gint) data; ++ priv->fmt.font = GPOINTER_TO_INT(data); + priv->fmt.cs.font = TRUE; + break; + case WPT_FONT_SIZE: +- priv->fmt.font_size = (gint) data; ++ priv->fmt.font_size = GPOINTER_TO_INT(data); + priv->fmt.cs.font_size = TRUE; + break; + case WPT_FORECOLOR: +@@ -2801,7 +2801,7 @@ + } + else if (tag->rise_set) + { +- n = (gint) g_object_get_data(G_OBJECT(tag), WPT_ID); ++ n = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(tag), WPT_ID)); + if (n >= WPT_SUB_SRPT) + { + fmt->text_position = TEXT_POSITION_SUBSCRIPT; +@@ -3685,7 +3685,7 @@ + return TP_STRIKE; + else if (tag->rise_set) + { +- *id = (gint) g_object_get_data(G_OBJECT(tag), WPT_ID); ++ *id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(tag), WPT_ID)); + if (*id >= WPT_SUB_SRPT) + { + *id -= WPT_SUB_SRPT; +@@ -3730,7 +3730,7 @@ + { + GSList *tmp; + GtkTextTag *tag; +- GdkColor color; ++ GdkColor color = { 0 }; + gint id, info; + gchar *s; + gint result = 0; --- wpeditor-2.18.orig/debian/patches/configure_generation.dpatch +++ wpeditor-2.18/debian/patches/configure_generation.dpatch @@ -0,0 +1,16 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## configure_generation.dpatch by Steve Kowalik +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Don't output files in debian using autoconf + +@DPATCH@ +diff -Nur -x '*.orig' -x '*~' wpeditor-2.18/configure.ac wpeditor-2.18.new/configure.ac +--- wpeditor-2.18/configure.ac 2007-06-26 18:55:26.000000000 +1000 ++++ wpeditor-2.18.new/configure.ac 2008-07-19 03:43:01.000000000 +1000 +@@ -39,5 +39,4 @@ + Makefile + src/Makefile + wpeditor.pc +-debian/wpeditor-dev.install + ]) --- wpeditor-2.18.orig/debian/patches/00list +++ wpeditor-2.18/debian/patches/00list @@ -0,0 +1,2 @@ +configure_generation.dpatch +portability_fixes.dpatch