--- rkward-0.5.3.orig/debian/changelog
+++ rkward-0.5.3/debian/changelog
@@ -0,0 +1,342 @@
+rkward (0.5.3-2) unstable; urgency=low
+
+  * correct usage of hyphens vs. minus signs in the man page
+  * correct the watch file
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Tue, 18 May 2010 14:30:00 +0200
+
+rkward (0.5.3-1) unstable; urgency=low
+
+  * new upstream release
+    closes: #556321 (failed to link against thread-library, explicitly)
+  * add watch file (thanks to Julien Lavergne and Scott Howard)
+    closes: #569114
+  * remove svncopy.sh-script included in upstream release tarball by accident
+  * remove obsolete runtime dependency on php5-cli
+  * add dependency on ${misc:Depends} as recommended by debhelper
+  * bump standards version to 3.8.4 (no changes needed)
+  * add Homepage field
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Fri, 30 Apr 2010 14:30:00 +0200
+
+rkward (0.5.2-1) unstable; urgency=low
+
+  * new upstream release
+    closes: #551306 (added support for the new dynamic help system)
+  * Add "DM-Upload-Allowed: yes" in control
+  * bump standards version to 3.8.3 (no changes needed)
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Mon, 26 Oct 2009 14:30:00 +0200
+
+rkward (0.5.1-2) unstable; urgency=low
+
+  * drop alternative depend on php4-cli as this is no longer part of any
+    current debian based distribution
+  * more accurate detection of patch-needing Ubuntu
+    Hardy systems (thanks to Meik Michalke)
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Tue, 18 Aug 2009 14:30:00 +0200
+
+rkward (0.5.1-1) unstable; urgency=low
+
+  * new upstream release
+  * bump standards version to 3.8.2 (no changes needed)
+  * dropped notice on development status from description
+  * added notice on differing copyright and additional
+    LGPL licence of some files
+  * better version detection (thanks to Meik Michalke)
+  * added conditional patch to support Ubuntu hardy (thanks to Meik Michalke)
+  * decrease debhelper compat level to 6, in order to support Ubuntu hardy
+  * revert to using dh_clean -k in order to comply with compat level 6
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Tue, 04 Aug 2009 14:30:00 +0200
+
+rkward (0.5.0d-3) unstable; urgency=low
+
+  * build-depend on libx11-dev
+    closes: #529024
+  * use dh_prep instead of deprecated dh_clean -k
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Mon, 19 May 2009 14:30:00 +0200
+
+rkward (0.5.0d-2) unstable; urgency=low
+
+  * bumped standards version to 3.8.1
+  * increased debhelper compat-level to 7
+  * upload to unstable (repeat closes because 0.5.0d-1 was not uploaded)
+    closes: #520969
+    closes: #491110
+    closes: #501649
+    closes: #527649 (included missing Rdevices.h; actually fixed in 0.5.0c)
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Sun, 11 May 2009 14:30:00 +0200
+
+rkward (0.5.0d-1) unstable; urgency=low
+
+  * new upstream release
+  * upload to unstable (repeat closes because 0.5.0c-1 was not uploaded)
+    closes: #520969
+    closes: #491110
+    closes: #501649
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Sun, 10 May 2009 21:30:00 +0200
+
+rkward (0.5.0c-1) experimental; urgency=low
+
+  * new upstream release
+    closes: #520969 (added support for R 2.9.0)
+  * query kde4-config to set the correct installation paths
+    closes: #491110 (resource files were not found)
+    closes: #501649 (plugin files were not found)
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Wed, 30 Mar 2009 20:30:00 +0200
+
+rkward (0.5.0b-1) unstable; urgency=low
+
+  * new upstream release
+    closes: #475175
+    closes: #463348
+    closes: #475982
+    closes: #455709
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Sun, 20 Apr 2008 21:30:00 +0200
+
+rkward (0.5.0a-1) experimental; urgency=low
+
+  * new upstream release
+  * remove some obsolete comments in rules
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Wed, 23 Jan 2008 16:30:00 +0200
+
+rkward (0.5.0-1) experimental; urgency=low
+
+  * new upstream release
+    closes: #455709
+  * adjusted to build with KDE4 libraries / CMake
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Mon, 21 Jan 2008 20:30:00 +0200
+
+rkward (0.4.9a-1) unstable; urgency=low
+
+  * new upstream release
+    closes: #475175
+    closes: #463348
+    closes: #475982
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Sun, 20 Apr 2008 21:30:00 +0200
+
+rkward (0.4.9-2) unstable; urgency=low
+
+  * remove --ignore-missing-info parameter again (dpkg-shlibdeps 1.14.12 
+    does not need it, anymore)
+  * when uploaded to main archive, this
+    closes: #460745
+  * bumped standards to 3.7.3 (no changes necessary)
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Wed, 16 Jan 2008 17:30:00 +0200
+
+rkward (0.4.9-1) unstable; urgency=low
+
+  * new upstream release
+  * add --ignore-missing-info paramater to dpkg-shlibdeps, as libR.so will not be found
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Mon, 14 Jan 2008 20:30:00 +0200
+
+rkward (0.4.8a-2) unstable; urgency=low
+
+  * quote the R CMD config calls, as they may also contain compiler arguments 
+    (thanks to Meik Michalke for a patch)
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Thu, 14 Nov 2007 13:30:00 +0200
+
+rkward (0.4.8a-1) unstable; urgency=low
+
+  * new upstream release
+  * document --disable-stack-check and --debugger options in the manual page
+  * use the compilers specified by R CMD config
+    closes: #450618
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Sun, 11 Nov 2007 13:30:00 +0200
+
+rkward (0.4.8-1) unstable; urgency=low
+
+  * new upstream release
+    closes: #417519
+  * adjust rkward.menu to new naming policy
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Wed, 03 Oct 2007 13:30:00 +0200
+
+rkward (0.4.7a-2) unstable; urgency=low
+
+  * force gcc 4.2 to match r-base-core
+    closes: #432377
+  * merge upstream fix for R 2.6
+    closes: #442059
+  * changed distclean rule in debian/rules to only ignore missing Makefiles 
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Fri, 14 Sep 2007 13:30:00 +0200
+
+rkward (0.4.7a-1) unstable; urgency=low
+
+  * new upstream release
+    closes: #422541
+  * the code to generate the correct r-base-core dependencies should now be POSIX shell compliant
+  * remove unused (and uncommented) dh_* scripts from rules
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Mon, 07 May 2007 13:30:00 +0200
+
+rkward (0.4.7-2) unstable; urgency=low
+
+  * explicitely create installation directory for rkward R package
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Wed, 11 Apr 2007 15:30:00 +0200
+
+rkward (0.4.7-1) unstable; urgency=low
+
+  * new upstream release
+    closes: #415561 (filename completion)
+    closes: #418686 (failure to work with R 2.5.0)
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Wed, 11 Apr 2007 13:30:00 +0200
+
+rkward (0.4.6-1) unstable; urgency=low
+
+  * new upstream release
+  * update r-base-core dependencies
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Thu, 15 Feb 2007 19:30:00 +0200
+
+rkward (0.4.5-1) unstable; urgency=low
+
+  * new upstream release
+  * provide entry in debian menu (Apps/Math)
+    closes: #405376
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Sun, 21 Jan 2007 19:00:00 +0200
+
+rkward (0.4.2-3) unstable; urgency=low
+
+  * this version is not meant to be uploaded to the main archives!
+  * fix compilation on sarge
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Wed, 13 Dec 2006 17:30:00 +0200
+
+rkward (0.4.2-2) unstable; urgency=low
+
+  * migrate to unstable
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Wed, 06 Dec 2006 20:00:00 +0200
+
+rkward (0.4.2-1) experimental; urgency=low
+
+  * new upstream release
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Tue, 04 Dec 2006 16:45:00 +0200
+
+rkward (0.4.1-1) unstable; urgency=low
+
+  * new upstream release
+  * depend on either php4-cli or php5-cli
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Mon, 06 Nov 2006 16:30:00 +0200
+
+rkward (0.4.0-2) unstable; urgency=low
+
+  * fix automatic build on 64bit architectures
+    closes: #394112
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Fri, 20 Oct 2006 14:00:00 +0200
+
+rkward (0.4.0-1) unstable; urgency=low
+
+  * new upstream release
+  * remove obsoleted workaround for installation of rkward R package
+  * cope with switch from CVS to SVN
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Tue, 17 Oct 2006 14:40:00 +0200
+
+rkward (0.3.7-1) unstable; urgency=low
+
+  * new upstream release
+  * use confiure option --with-r-libdir to make sure the rkward R package is installed in /usr/lib/R/site-library/
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Sun, 17 Sep 2006 16:40:00 +0200
+
+rkward (0.3.6-4) unstable; urgency=low
+
+  * fix automatic build on alpha machines 
+    patch provided by Martin Michlmayr <tbm@cyrius.com>
+    closes: #374005
+  * bumbed to standards 3.7.2
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Sun, 18 Jun 2006 16:25:00 +0200
+
+rkward (0.3.6-3) unstable; urgency=low
+
+  * first version to be uploaded to debian
+    closes: #333392
+  * Added Homepage to control file (changed by R.M.Rutschmann <rudi@debian.org>)
+  * fix detection of r-base-core dependency when compiled with r-base-core >= 2.3.0
+  * clean up rules somewhat
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Tue, 25 Apr 2006 12:45:00 +0200
+
+rkward (0.3.6-2) unstable; urgency=low
+
+  * link manpage directly in installation instead of debian-dir
+  * use --show-format instead of -f in call to dpkg-query (to work on stable)
+  * delete any debian/CVS subdir included by accident during clean
+  * add newline to copyright file
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Mon, 24 Apr 2006 14:45:00 +0200
+
+rkward (0.3.6-1) unstable; urgency=low
+
+  * new upstream release
+  * clean up manpage
+  * debian dir is not longer included in upstream; create non-native package
+  * create symlink rkward.bin.1 to rkward.1 and remove linitian expection (no man page)
+  * use ${shlibs:Depends} for runtime dependencies
+  * make sure to require correct version of r-base-core
+  * specify --with-r-home in ./configure, in case there is more than one version of R installed
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Sun, 23 Apr 2006 19:45:00 +0200
+
+rkward (0.3.5) unstable; urgency=low
+
+  * new upstream release
+  * add lintian exception for rkward.bin (no man page)
+  * remove call to build-help.pl during postinst postrm
+  * use --disable-rpath in ./configure
+  * remove /usr/sbin from dirs
+  * use standards version 3.6.2
+  * add man page
+  * remove redundant build-dependency on libqt3-mt-dev
+  * break long lines in description
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Sun, 16 Apr 2006 15:45:00 +0200
+
+rkward (0.3.4) unstable; urgency=low
+
+  * new upstream release
+  * debian directory is now included in official release
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Tue, 08 Nov 2005 16:00:33 +0200
+
+rkward (0.3.3) unstable; urgency=low
+
+  * new upstream release
+  * Adjusted depends for R (2.1.0)
+  * added run-time depend for libstdc++6
+  * correct path for KDE help files
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Mon, 10 Oct 2005 11:20:33 +0200
+
+rkward (0.3.2) unstable; urgency=low
+
+  * new upstream release
+  * Initial Release.
+  * removing r.xml highlighting definition in order to avoid conflict with verison shipped with katepart
+
+ -- Thomas Friedrichsmeier <tfry@users.sourceforge.net>  Tue, 26 Apr 2005 00:00:33 +0200
+
--- rkward-0.5.3.orig/debian/rules
+++ rkward-0.5.3/debian/rules
@@ -0,0 +1,152 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Based on the sample debian/rules of dh_make
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# Determine the installed distribution and release number
+# Will be used to determine if certain tweaks are needed, see below
+# NOTE: /etc/lsb-release is part of package base-files, *only on Ubuntu*, not on Debian.
+# For now this is ok, as we only need special handling for Ubuntu Hardy at this time.
+DISTRO = $(shell grep "DISTRIB_ID" /etc/lsb-release | awk -F= '{print $$2}' ; grep "DISTRIB_RELEASE" /etc/lsb-release | awk -F= '{print $$2}')
+
+# Ubuntu 8.04 uses a different PATH for KDE 4 apps and needs some patching
+ifeq ("$(DISTRO)","Ubuntu 8.04")
+	export PATH := $(PATH):/usr/lib/kde4/bin
+	# If the following variables are set, patches are applied
+	PATCHTARGET = patch-ubuntu804
+	UNPATCHTARGET = unpatch
+endif
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+#we need to know the R version
+RVERS = $(shell dpkg-query -W --showformat='$${Version}' r-base-core)
+RMAJOR = $(shell echo $(RVERS) | awk -F. '{print $$1}')
+RMINOR = $(shell echo $(RVERS) | awk -F. '{print $$2}')
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+config.status: $(PATCHTARGET) # Will only be called if set, see above
+	dh_testdir
+
+	mkdir -p $(CURDIR)/build
+
+	# Some installations of R need a specific version of the compiler(s)
+	# R CMD config provides info on which compiler to use
+	cd $(CURDIR)/build && \
+	CC="`/usr/bin/R CMD config CC`" \
+	CXX="`/usr/bin/R CMD config CXX`" \
+	F77="`/usr/bin/R CMD config F77`" \
+	cmake .. \
+		-DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
+		-DDATA_INSTALL_DIR=`kde4-config --install data` \
+		-DHTML_INSTALL_DIR=`kde4-config --install html` \
+		-DKCFG_INSTALL_DIR=`kde4-config --install kcfg` \
+		-DINFO_INSTALL_DIR=/usr/share/info \
+		-DMAN_INSTALL_DIR=/usr/share/man \
+		-DKDE_DEFAULT_HOME=`kde4-config --localprefix` \
+		-DCMAKE_SKIP_RPATH=true \
+		-DKDE4_USE_ALWAYS_FULL_RPATH=false \
+		-DCMAKE_CXX_FLAGS="$(CXXFLAGS)" \
+		-DCMAKE_C_FLAGS="$(CFLAGS)" \
+		-DCMAKE_VERBOSE_MAKEFILE=ON \
+		-DKDE4_DISABLE_MULTIMEDIA=ON \
+		-DR_EXECUTABLE=/usr/bin/R/ \
+		-DR_LIBDIR=/usr/lib/R/site-library/
+
+build: build-stamp
+
+build-stamp: config.status
+	dh_testdir
+
+	# Add here commands to compile the package.
+	cd $(CURDIR)/build && $(MAKE)
+
+	touch build-stamp
+
+clean: $(UNPATCHTARGET) # Will only be called if set, see above
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+	# remove any .svn subdir included by accident
+	rm -rf $(CURDIR)/debian/.svn
+	rm -rf $(CURDIR)/debian/patches/.svn
+	# only for rkward 0.5.3: remove script included in upsteram tarball by accident
+	rm -f $(CURDIR)/rkward/plugins/svncopy.sh
+
+	# Add here commands to clean up after the build process.
+	rm -rf $(CURDIR)/build/
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Add here commands to install the package into debian/rkward.
+	cd $(CURDIR)/build && $(MAKE) install DESTDIR=$(CURDIR)/debian/rkward
+	# dirty hack to get rid of conflicting r.xml file without adjusting all makefiles
+	rm -vf $(CURDIR)/debian/rkward/`kde4-config --install data`/katepart/syntax/r.xml
+	
+	# remove unneeded R package files
+	rm -vf $(CURDIR)/debian/rkward/usr/lib/R/site-library/R.css $(CURDIR)/debian/rkward/usr/lib/R/site-library/rkward/COPYING
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+	dh_installman debian/rkward.1
+	# Link manpage for rkward.bin to rkward
+	ln -sf rkward.1.gz debian/rkward/usr/share/man/man1/rkward.bin.1.gz
+	dh_link
+	dh_strip
+	# do not compress KDE HTML help
+	dh_compress -Xusr/share/doc/kde/HTML
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	# unfortunately, the r-base-core dependency can not be found by dh_shlibdeps, so we need to get at the version manually
+	@if [ "$(RMAJOR)" -eq "2" ] && [ "$(RMINOR)" -ge "9" ] ; then \
+		echo "rvers=r-base-core (>= 2.9.0)" >> $(CURDIR)/debian/rkward.substvars ; \
+	else \
+		if [ "$(RMAJOR)" -eq "2" ] && [ "$(RMINOR)" -ge "8" ] ; then \
+		echo "rvers=r-base-core (<< 2.9.0), r-base-core (>= 2.8.0)" >> $(CURDIR)/debian/rkward.substvars ; \
+	else \
+		if [ "$(RMAJOR)" -eq "2" ] && [ "$(RMINOR)" -ge "7" ] ; then \
+		echo "rvers=r-base-core (<< 2.8.0), r-base-core (>= 2.7.0)" >> $(CURDIR)/debian/rkward.substvars ; \
+	fi ; fi ; fi
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+patch-ubuntu804:
+	dpatch apply 10_hardy_menu
+	dpatch cat-all >patch-stamp
+ 
+unpatch:
+	dpatch deapply-all
+	rm -rf patch-stamp debian/patched
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install patch-ubuntu804 unpatch
--- rkward-0.5.3.orig/debian/dirs
+++ rkward-0.5.3/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/lib/R/site-library/
--- rkward-0.5.3.orig/debian/README.Debian
+++ rkward-0.5.3/debian/README.Debian
@@ -0,0 +1,7 @@
+RKWard for Debian
+--------------
+
+RKWard usually ships its own version of the kate syntax-highlighting definition for R. The version shipped by RKWard is - at the time of this writing - better than the one shipped with kate in some respects. Due to packaging conflicts, however, this improved syntax highlighting definition can NOT be included in the rkward package.
+You may want to fetch the definition manually from RKWard-SVN and install to /usr/share/apps/katepart/syntax/r.xml.
+
+-- Thomas Friedrichsmeier <tfry@users.sourceforge.net>, Apr-29-2005
--- rkward-0.5.3.orig/debian/rkward.menu
+++ rkward-0.5.3/debian/rkward.menu
@@ -0,0 +1 @@
+?package(rkward):needs="x11" section="Applications/Science/Mathematics" title="RKWard" command="/usr/bin/rkward"
--- rkward-0.5.3.orig/debian/watch
+++ rkward-0.5.3/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/rkward/rkward-(.*)\.tar\.gz
--- rkward-0.5.3.orig/debian/control
+++ rkward-0.5.3/debian/control
@@ -0,0 +1,19 @@
+Source: rkward
+Section: math
+Priority: optional
+Maintainer: Thomas Friedrichsmeier <tfry@users.sourceforge.net>
+DM-Upload-Allowed: yes
+Build-Depends: debhelper (>= 6.0.0), kdelibs5-dev, cmake, libphonon-dev, r-base-dev (>= 2.7.0), libx11-dev
+Standards-Version: 3.8.4
+Homepage: http://rkward.sourceforge.net
+
+Package: rkward
+Architecture: any
+Depends: ${rvers}, ${shlibs:Depends}, ${misc:Depends}
+Recommends: r-base-html
+Description: a KDE frontend to the R statistics language
+ RKWard aims to become an easy to use, transparent frontend to R,
+ a powerful system for statistical computation and graphics.
+ Besides a convenient GUI for the most important statistical functions,
+ future versions will also provide seamless integration with an
+ office-suite.
--- rkward-0.5.3.orig/debian/docs
+++ rkward-0.5.3/debian/docs
@@ -0,0 +1,2 @@
+README
+TODO
--- rkward-0.5.3.orig/debian/compat
+++ rkward-0.5.3/debian/compat
@@ -0,0 +1 @@
+6
--- rkward-0.5.3.orig/debian/rkward.1
+++ rkward-0.5.3/debian/rkward.1
@@ -0,0 +1,59 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH RKWARD 1 "11-10-2005"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+rkward \(hy A KDE frontend to R
+.SH SYNOPSIS
+.B rkward
+.RI [ options ] " [file]"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B rkward
+command.
+.PP
+.SH OPTIONS
+A summary of options is included below.
+For a complete description, invoke rkward \-\-help or refer to http://rkward.sourceforge.net .
+.TP
+.B \-\-help
+Show summary of options.
+.TP
+.B \-v, \-\-version
+Show version of program.
+.TP
+.B \-\-evaluate <Rcode>
+The given R code is evaluated after RKWard has started, and after any specified workspace is loaded. Mostly useful for automated testing.
+.TP
+.B \-\-debug-level <level>
+Verbosity of debug output. 0-5, where 0 is no output, 5 is all output including function trace information. Default it 2
+.TP
+.B \-\-debug-flags <flags>
+Allows to configure, which sections of code to debug. Flags are given as a binary number. Refer to the source files for documentation, as this really is an internal option
+.TP
+.B \-\-debugger <command>
+Run RKWard through the specified debugger command. To add command line options to the debugger command, enclose them in single quotes ('') together with the command.
+.TP
+.B \-\-disable-stack-check
+Disable the R C stack checking mechanism. If you see the error message "C stack usage too close to the limit", this option may serve as a workaround.
+.SH SEE ALSO
+.BR R (1),
+.br
+.SH AUTHOR
+RKWard was written by Thomas Friedrichsmeier and the RKWard team. See http://rkward.sourceforge.net .
+.PP
+This manual page was written by Thomas Friedrichsmeier <tfry@users.sourceforge.net>,
+for the Debian project (but may be used by others).
--- rkward-0.5.3.orig/debian/copyright
+++ rkward-0.5.3/debian/copyright
@@ -0,0 +1,13 @@
+This package was debianized by Thomas Friedrichsmeier <tfry@users.sourceforge.net> on
+Tue, 26 Apr 2005 00:00:33 +0200.
+
+It was downloaded from http://rkward.sourceforge.net
+
+Copyright: 2002 - 2010 Thomas Friedrichsmeier and the RKWard team
+License:
+You are free to distribute this software under the terms of the GNU General Public License.
+On Debian systems, the complete text of the GNU General Public License can be found in the file `/usr/share/common-licenses/GPL'.
+
+Files: rkward/qwinhost.cpp.orig rkward/qwinhost.cpp rkward/qwinhost.h.orig rkward/qwinhost.h
+Copyright: (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+License: LPGL-2.1
--- rkward-0.5.3.orig/debian/patches/00list
+++ rkward-0.5.3/debian/patches/00list
@@ -0,0 +1 @@
+10_hardy_menu.dpatch
--- rkward-0.5.3.orig/debian/patches/10_hardy_menu.dpatch
+++ rkward-0.5.3/debian/patches/10_hardy_menu.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 00_hardy_menu_patch.dpatch by m.eik michalke <m@reaktanz.de>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: A patch for the menu entry in Ubuntu 8.04
+
+@DPATCH@
+diff -urNad rkward-0.5.0d-rc1~/rkward/rkward.desktop rkward-0.5.0c/rkward/rkward.desktop
+--- rkward-0.5.0d-rc1~/rkward/rkward.desktop	2009-03-30 11:40:58.000000000 +0200
++++ rkward-0.5.0d-rc1/rkward/rkward.desktop	2009-03-30 23:32:09.000000000 +0200
+@@ -5,7 +5,7 @@
+ Comment[pl]=Graficzny interfejs dla projektu R
+ Comment[fr]=Interface graphique pour R
+ Icon=rkward
+-Exec=rkward -caption "%c" %i
++Exec=/usr/lib/kde4/bin/rkward -caption "%c" %i
+ Terminal=false
+ Type=Application
+ DocPath=rkward/index.html
