--- cwidget-0.5.16.orig/debian/rules
+++ cwidget-0.5.16/debian/rules
@@ -0,0 +1,91 @@
+#!/usr/bin/make -f
+
+# We need fno-strict-aliasing because otherwise g++ throws an
+# inscrutable error; I'd rather fix the root cause, but I can't find
+# it.
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ export CXXFLAGS=-g -O0 -fno-inline -fno-strict-aliasing
+else
+ export CXXFLAGS=-g -O2 -fno-strict-aliasing
+endif
+
+configure: configure-stamp
+configure-stamp:
+ ./configure --prefix=/usr
+
+ touch configure-stamp
+
+build-arch: build-stamp-arch
+build-stamp-arch: configure-stamp
+ dh_testdir
+
+ $(MAKE)
+ $(MAKE) check
+
+ touch build-stamp-arch
+
+build-indep: build-stamp-indep
+build-stamp-indep: configure-stamp
+ dh_testdir
+
+ $(MAKE) doc
+
+ touch build-stamp-indep
+
+build: build-arch build-indep
+
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp-indep build-stamp-arch configure-stamp
+
+ [ ! -f Makefile ] || $(MAKE) distclean
+
+ -rm -r doc/ikiwiki/.ikiwiki
+ dh_clean
+
+
+install: build-arch
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+
+ $(MAKE) install DESTDIR=`pwd`/debian/tmp gnulocaledir=`pwd`/debian/tmp/usr/share/locale
+
+
+binary-arch: install
+ dh_testdir -a
+ dh_testroot -a
+ dh_install -a
+ dh_installdocs -a
+ dh_installexamples -plibcwidget-dev src/cwidget/testcwidget.cc
+ dh_installchangelogs -a
+
+ dh_strip -a --dbg-package=libcwidget3-dbg
+ dh_compress -a
+ dh_fixperms -a
+ dh_makeshlibs -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+ dh_installdeb -a
+ dh_md5sums -a
+ dh_builddeb -a
+
+binary-indep: build-indep
+ dh_testdir -i
+ dh_testroot -i
+ dh_install -i
+ dh_installdocs -i
+ dh_installchangelogs -i
+
+ dh_compress -i
+ dh_fixperms -i
+ dh_shlibdeps -i
+ dh_gencontrol -i
+ dh_installdeb -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+binary: binary-arch binary-indep
--- cwidget-0.5.16.orig/debian/compat
+++ cwidget-0.5.16/debian/compat
@@ -0,0 +1 @@
+5
--- cwidget-0.5.16.orig/debian/control
+++ cwidget-0.5.16/debian/control
@@ -0,0 +1,72 @@
+Source: cwidget
+Priority: extra
+Section: libs
+Homepage: http://cwidget.alioth.debian.org
+Vcs-Git: git://git.debian.org/git/cwidget/debian
+Vcs-Browser: http://git.debian.org/?p=cwidget/debian/.git;a=summary
+Maintainer: Daniel Burrows <dburrows@debian.org>
+Build-Depends: debhelper (>= 5.0.0), libsigc++-2.0-dev,
+ libncursesw5-dev, gettext, g++ (>= 4:3.2.2-0), libcppunit-dev
+Build-Depends-Indep: doxygen, ikiwiki (>= 1.34), libhtml-scrubber-perl, perlmagick
+Standards-Version: 3.7.2.2
+
+Package: libcwidget3
+Architecture: any
+Priority: important
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Suggests: libcwidget-dev
+Description: high-level terminal interface library for C++ (runtime files)
+ libcwidget is a modern user interface library modeled on GTK+ and Qt,
+ but using curses as its display layer and with widgets that are
+ tailored to a terminal environment.
+ .
+ This package contains the files that are required to run programs
+ compiled against libcwidget.
+
+Package: libcwidget3-dbg
+Architecture: any
+Priority: extra
+Section: debug
+Depends: libcwidget3 (= ${binary:Version}), ${misc:Depends}
+Suggests: libcwidget-dev
+Description: high-level terminal interface library for C++ (debugging files)
+ libcwidget is a modern user interface library modeled on GTK+ and Qt,
+ but using curses as its display layer and with widgets that are
+ tailored to a terminal environment.
+ .
+ This package contains debugging symbols for libcwidget-dbg. It is
+ only needed if you want to generate useful backtraces for programs
+ using cwidget.
+
+Package: libcwidget-dev
+Architecture: any
+Priority: extra
+Section: libdevel
+Depends: libcwidget3 (= ${binary:Version}), libsigc++-2.0-dev, libncursesw5-dev, pkg-config, ${misc:Depends}
+Suggests: libcwidget-doc
+Description: high-level terminal interface library for C++ (development files)
+ libcwidget is a modern user interface library modeled on GTK+ and Qt,
+ but using curses as its display layer and with widgets that are
+ tailored to a terminal environment.
+ .
+ This package contains files that are needed to write or compile
+ software that uses libcwidget.
+ .
+ WARNING: this is a newly created library whose development is closely
+ tied to the development of aptitude. Its API may be incomplete and
+ is likely to change considerably version-over-version! You may want
+ to avoid cwidget for stable projects.
+
+Package: libcwidget-doc
+Architecture: all
+Priority: extra
+Section: doc
+Depends: ${misc:Depends}
+Recommends: iceweasel | www-browser
+Suggests: libcwidget-dev
+Description: high-level terminal interface library for C++ (documentation)
+ libcwidget is a modern user interface library modeled on GTK+ and Qt,
+ but using curses as its display layer and with widgets that are
+ tailored to a terminal environment.
+ .
+ This package contains documentation for libcwidget, in HTML format.
--- cwidget-0.5.16.orig/debian/copyright
+++ cwidget-0.5.16/debian/copyright
@@ -0,0 +1,5 @@
+Copyright 1999-2007 Daniel Burrows <dburrows@debian.org>
+
+The upstream Web site for cwidget is http://cwidget.alioth.debian.org .
+
+License: GPL (/usr/share/common-licenses/GPL)
\ No newline at end of file
--- cwidget-0.5.16.orig/debian/changelog
+++ cwidget-0.5.16/debian/changelog
@@ -0,0 +1,247 @@
+cwidget (0.5.16-3) unstable; urgency=low
+
+ * Disable strict aliasing to prevent g++ from erroring out in the build.
+ "Fixing" it this way is a horrible hack, but the error message is
+ entirely incomprehensible, I can't figure out which code, if any, is
+ at fault here, and my attempts to fix it by phrasing the code
+ differently have failed. (Closes: #561157, #526674)
+
+ * Add misc:Depends entries on the Depends lines.
+
+ -- Daniel Burrows <dburrows@debian.org> Sun, 17 Jan 2010 14:22:37 -0800
+
+cwidget (0.5.16-2) unstable; urgency=low
+
+ * Try a less subtle approach to fixing the threading test cases on hppa.
+ (Closes: #557982)
+
+ -- Daniel Burrows <dburrows@debian.org> Mon, 30 Nov 2009 15:10:53 -0800
+
+cwidget (0.5.16-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Daniel Burrows <dburrows@debian.org> Sun, 29 Nov 2009 18:45:42 -0800
+
+cwidget (0.5.15-1) unstable; urgency=low
+
+ * New upstream version.
+
+ + Hopefully fixes the FTBFS on hppa (Closes: #546171).
+
+ -- Daniel Burrows <dburrows@debian.org> Sun, 29 Nov 2009 12:50:15 -0800
+
+cwidget (0.5.14-1) unstable; urgency=low
+
+ * New upstream version.
+
+ + Fix a divide-by-zero in the column fragment code. (Closes: #556185)
+
+ -- Daniel Burrows <dburrows@debian.org> Tue, 17 Nov 2009 12:33:11 -0800
+
+cwidget (0.5.13-1) unstable; urgency=low
+
+ * New upstream version.
+
+ * Move libcwidget3-dbg into the "debug" section as per the new archive
+ layout.
+
+ * Remove doc/ikiwiki/.ikiwiki in "clean".
+
+ * Add perlmagick to Build-Depends-Indep. (Closes: #497877)
+
+ -- Daniel Burrows <dburrows@debian.org> Sat, 05 Sep 2009 09:46:41 -0700
+
+cwidget (0.5.12-4) unstable; urgency=low
+
+ * Backport a fix for a nasty deadlock that was causing aptitude to
+ freeze up after running dpkg. (Closes: #511708)
+
+ -- Daniel Burrows <dburrows@debian.org> Tue, 27 Jan 2009 23:18:01 -0800
+
+cwidget (0.5.12-3) unstable; urgency=low
+
+ * Fix the string truncation fix so that it doesn't enter an infinite
+ loop and use up all the available memory when the output string is
+ empty.
+
+ -- Daniel Burrows <dburrows@debian.org> Sat, 06 Sep 2008 16:22:07 -0700
+
+cwidget (0.5.12-2) unstable; urgency=low
+
+ * Backport a fix for a string truncation bug from HEAD (Closes: #496119).
+
+ * Fix the URL to the packaging VCS (Closes: #492584).
+
+ -- Daniel Burrows <dburrows@debian.org> Sun, 31 Aug 2008 22:01:53 -0700
+
+cwidget (0.5.12-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Daniel Burrows <dburrows@debian.org> Sat, 28 Jun 2008 08:58:24 -0700
+
+cwidget (0.5.11-1) unstable; urgency=low
+
+ * New upstream version; really fixes the backspacing problem.
+
+ -- Daniel Burrows <dburrows@debian.org> Sat, 12 Apr 2008 08:03:45 -0700
+
+cwidget (0.5.10-1) unstable; urgency=low
+
+ * New upstream version.
+
+ - Treat KEY_DC, KEY_BACKSPACE, and character 127 as equivalent in
+ key_matches(). (Closes: #452651)
+
+ -- Daniel Burrows <dburrows@debian.org> Fri, 11 Apr 2008 22:13:27 -0700
+
+cwidget (0.5.9-1) unstable; urgency=low
+
+ * New upstream version.
+
+ - Compiles with libsigc++ version 2.2.
+
+ -- Daniel Burrows <dburrows@debian.org> Fri, 21 Mar 2008 17:03:00 -0700
+
+cwidget (0.5.8-2) unstable; urgency=low
+
+ * Upload to unstable.
+
+ * Build-depend on ikiwiki (>= 1.34) for goodstuff. (Closes: #471997)
+
+ * Eliminate the last few missing #includes (in the test cases,
+ Closes: #461682)
+
+ Note that in order to build or use cwidget with g++-4.3, you will need a
+ version of libsigc++ that supports g++-4.3 (>= 2.0.18-1).
+
+ * Put the documentation in Programming/C++, not the nonexistant
+ section Apps/Programming.
+
+ -- Daniel Burrows <dburrows@debian.org> Fri, 21 Mar 2008 14:51:07 -0700
+
+cwidget (0.5.8-1) experimental; urgency=low
+
+ * New upstream version.
+ - ABI change due to the changes below.
+ - Remove all references to hash_map; use std::map instead.
+ - Fix all compilation errors with g++ 4.3. (Closes: #461682)
+
+ -- Daniel Burrows <dburrows@debian.org> Sun, 20 Jan 2008 09:37:11 -0800
+
+cwidget (0.5.7-1) experimental; urgency=low
+
+ * New Upstream Version.
+
+ * ABI change again; create libcwidget2* packages.
+
+ * Fix several threading errors in handling input, particularly when
+ cwidget was temporarily suspended and then resumed.
+
+ (Closes: #461342) and possibly more, but I'll have to ask the
+ reporters.
+
+ * If a byte sequence read from stdin can't be decoded in the current
+ locale, beep at the user instead of throwing a fatal
+ exception. (Closes: #460722)
+
+ -- Daniel Burrows <dburrows@debian.org> Sat, 19 Jan 2008 10:26:00 -0800
+
+cwidget (0.5.6.1-3) unstable; urgency=low
+
+ * Apply patch from Michael Daenzer to support building with
+ dpkg-buildpackage -j (Closes: #456678).
+
+ * ikiwiki now depends only on what the core engine needs, and so some of
+ the plugins that cwidget users are no longer available in a build
+ environment without explicitly installing them.
+
+ Add libhtml-scrubber-perl to Build-Depends (Closes: #458654).
+
+ -- Daniel Burrows <dburrows@debian.org> Sun, 06 Jan 2008 08:58:49 -0800
+
+cwidget (0.5.6.1-2) unstable; urgency=low
+
+ * Rename debian/libcwidget0.install to debian/libcwidget1.install so the
+ library actually gets installed.
+
+ -- Daniel Burrows <dburrows@debian.org> Sat, 15 Dec 2007 22:24:48 -0800
+
+cwidget (0.5.6.1-1) unstable; urgency=low
+
+ * New upstream version.
+
+ * Rename libcwidget0 and libcwidget0-dbg to libcwidget1 and
+ libcwidget1-dbg.
+
+ * Declare libcwidget-doc to be in section doc, to make lintian happy.
+
+ * No longer conflict/provide/replace libcwidget-dbg; those relationships
+ were added because libcwidget0-dbg fully replaced libcwidget-dbg, but
+ libcwidget1-dbg is not related to libcwidget-dbg.
+
+ -- Daniel Burrows <dburrows@debian.org> Sat, 15 Dec 2007 18:46:50 -0800
+
+cwidget (0.5.6-1) unstable; urgency=low
+
+ * New upstream version.
+
+ * ABI change; the SONAME is now libcwidget.so.1.
+
+ * If stdin is closed, abort the main loop with an exception instead
+ of spinning forever. (Closes: #451770)
+
+ * Add a missing #include <stdarg.h>; fixes building on stable and on
+ some other platforms. (Closes: #452979)
+
+ * Add a build dependency on cppunit so 'make check' does something
+ useful.
+
+ * Add a build dependency on ikiwiki so we can build all the
+ documentation.
+
+ -- Daniel Burrows <dburrows@debian.org> Sat, 15 Dec 2007 18:07:37 -0800
+
+cwidget (0.5.5-4) unstable; urgency=low
+
+ * Fix a related but different bug in Makefile.am. (Closes: #451400)
+
+ -- Daniel Burrows <dburrows@debian.org> Sat, 24 Nov 2007 21:35:51 -0800
+
+cwidget (0.5.5-3) unstable; urgency=low
+
+ * Actually fix Makefile.in. (Closes: #451400)
+
+ * Add Homepage and VCS-* fields to the control file.
+
+ -- Daniel Burrows <dburrows@debian.org> Sat, 24 Nov 2007 08:21:57 -0800
+
+cwidget (0.5.5-2) unstable; urgency=low
+
+ * Do a quick fix for a Makefile bug (a better fix is already present in
+ the upstream repository). (Closes: #451400)
+
+ * Rename the debug package from libcwidget-dbg to libcwidget0-dbg, since
+ obviously once the soname changes we'll need a separate debug package.
+
+ -- Daniel Burrows <dburrows@debian.org> Mon, 19 Nov 2007 21:08:10 -0800
+
+cwidget (0.5.5-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Daniel Burrows <dburrows@debian.org> Thu, 15 Nov 2007 21:23:56 -0800
+
+cwidget (0.5.4-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Daniel Burrows <dburrows@debian.org> Mon, 12 Nov 2007 17:15:18 -0800
+
+cwidget (0.5.3-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Daniel Burrows <dburrows@debian.org> Fri, 09 Nov 2007 07:02:45 -0800
+
--- cwidget-0.5.16.orig/debian/libcwidget-dev.install
+++ cwidget-0.5.16/debian/libcwidget-dev.install
@@ -0,0 +1,6 @@
+debian/tmp/usr/include/cwidget
+debian/tmp/usr/lib/libcwidget.so
+debian/tmp/usr/lib/libcwidget.a
+debian/tmp/usr/lib/libcwidget.la
+debian/tmp/usr/lib/pkgconfig
+debian/tmp/usr/lib/cwidget
--- cwidget-0.5.16.orig/debian/libcwidget3.install
+++ cwidget-0.5.16/debian/libcwidget3.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/libcwidget.so.*
--- cwidget-0.5.16.orig/debian/libcwidget-doc.docs
+++ cwidget-0.5.16/debian/libcwidget-doc.docs
@@ -0,0 +1 @@
+doc/html
\ No newline at end of file
--- cwidget-0.5.16.orig/debian/libcwidget-doc.doc-base
+++ cwidget-0.5.16/debian/libcwidget-doc.doc-base
@@ -0,0 +1,12 @@
+Document: cwidget-doc
+Title: CWidget API Documentation
+Author: Daniel Burrows
+Abstract: This documentation, autogenerated by doxygen, describes
+ the programming interface to the CWidget UI library. CWidget is
+ a high-level C++ library for programs that provide a terminal-based
+ user interface.
+Section: Programming/C++
+
+Format: HTML
+Index: /usr/share/doc/libcwidget-doc/html/index.html
+Files: /usr/share/doc/libcwidget-doc/html/*.html
--- cwidget-0.5.16.orig/debian/libcwidget-dev.docs
+++ cwidget-0.5.16/debian/libcwidget-dev.docs
@@ -0,0 +1 @@
+README
\ No newline at end of file