path: root/ubuntu
diff options
authorSlávek Banko <>2019-02-24 15:27:32 +0100
committerSlávek Banko <>2019-02-24 15:27:32 +0100
commit36f8fe535ea852baa93dcdd9cf1a71241e7b04e2 (patch)
tree95e44f63c69c7b5019029fd5a3b5ea1e9de191d9 /ubuntu
parent598dd003cf7926d87db817e29df47cbf195f936b (diff)
DEB kbarcode: Switch to cmake.
The man page has been moved to the main tree. Signed-off-by: Slávek Banko <>
Diffstat (limited to 'ubuntu')
8 files changed, 22 insertions, 235 deletions
diff --git a/ubuntu/maverick/applications/kbarcode/debian/cdbs/ b/ubuntu/maverick/applications/kbarcode/debian/cdbs/
index 9f8f97776..60310a01a 100644
--- a/ubuntu/maverick/applications/kbarcode/debian/cdbs/
+++ b/ubuntu/maverick/applications/kbarcode/debian/cdbs/
@@ -10,6 +10,7 @@ _cdbs_class_debian-qt-kde := 1
# Note: This _must_ be included before, or it won't work.
common-configure-arch common-configure-indep:: debian/stamp-cvs-make
+ifndef _cdbs_class_cmake
cp -Rp /usr/share/aclocal/libtool.m4 admin/
ifneq "$(wildcard /usr/share/libtool/config/" ""
cp -Rp /usr/share/libtool/config/ admin/
@@ -18,6 +19,7 @@ ifneq "$(wildcard /usr/share/libtool/build-aux/" ""
cp -Rp /usr/share/libtool/build-aux/ admin/
$(MAKE) -C $(DEB_SRCDIR) -f admin/Makefile.common dist;
touch debian/stamp-cvs-make
include debian/cdbs/$(_cdbs_makefile_suffix)
@@ -102,6 +104,7 @@ binary-install/$(DEB_SOURCE_PACKAGE)-doc-html::
+ifndef _cdbs_class_cmake
if test -n "$(DEB_KDE_CVS_MAKE)" && test -d $(DEB_SRCDIR); then \
cd $(DEB_SRCDIR); \
find . -name -print | \
@@ -110,6 +113,7 @@ clean::
configure configure.files \
subdirs; \
rm -f debian/stamp-cvs-make
diff --git a/ubuntu/maverick/applications/kbarcode/debian/cdbs/ b/ubuntu/maverick/applications/kbarcode/debian/cdbs/
index 1ac26c4b7..80176d63e 100644
--- a/ubuntu/maverick/applications/kbarcode/debian/cdbs/
+++ b/ubuntu/maverick/applications/kbarcode/debian/cdbs/
@@ -35,7 +35,9 @@ else
+ifndef _cdbs_class_cmake
include $(_cdbs_class_path)/$(_cdbs_makefile_suffix)
export kde_cgidir = \$${libdir}/cgi-bin
export kde_confdir = \$${sysconfdir}/trinity
@@ -59,7 +61,7 @@ endif
cdbs_configure_flags += --with-qt-dir=/usr/share/qt3 --disable-rpath --with-xinerama $(cdbs_kde_enable_final) $(cdbs_kde_enable_debug)
-DEB_CONFIGURE_INCLUDEDIR = "\$${prefix}/include/tde"
+DEB_CONFIGURE_INCLUDEDIR = "\$${prefix}/include"
DEB_COMPRESS_EXCLUDE = .dcl .docbook -license .tag .sty .el
$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%:
diff --git a/ubuntu/maverick/applications/kbarcode/debian/control b/ubuntu/maverick/applications/kbarcode/debian/control
index 02773eade..6921040cc 100644
--- a/ubuntu/maverick/applications/kbarcode/debian/control
+++ b/ubuntu/maverick/applications/kbarcode/debian/control
@@ -3,7 +3,7 @@ Section: tde
Priority: optional
Maintainer: Timothy Pearson <>
Uploaders: Fathi Boudra <>, Mark Purcell <>
-Build-Depends: cdbs, debhelper (>= 7.0.50~), quilt, tdelibs14-trinity-dev, automake, autoconf, libtool, libltdl-dev
+Build-Depends: cdbs, debhelper (>= 7.0.50~), quilt, cmake, tdelibs14-trinity-dev
Standards-Version: 3.8.4
Package: kbarcode-trinity
diff --git a/ubuntu/maverick/applications/kbarcode/debian/docs b/ubuntu/maverick/applications/kbarcode/debian/docs
index 724e08449..c17f03764 100644
--- a/ubuntu/maverick/applications/kbarcode/debian/docs
+++ b/ubuntu/maverick/applications/kbarcode/debian/docs
@@ -1,2 +1,4 @@
diff --git a/ubuntu/maverick/applications/kbarcode/debian/kbarcode.1 b/ubuntu/maverick/applications/kbarcode/debian/kbarcode.1
deleted file mode 100644
index b81aee534..000000000
--- a/ubuntu/maverick/applications/kbarcode/debian/kbarcode.1
+++ /dev/null
@@ -1,194 +0,0 @@
-.\" This file was generated by (a slightly modified) and edited by hand
-.TH KBARCODE 1 "Jun 2006" "Trinity Desktop Environment" "barcode and label printing"
-\- KBarcode is a barcode and label printing application
-\fBkbarcode\fP [Qt\-options] [TDE\-options] [\fIfile\fP]
-\fBKBarcode\fP is a barcode and label printing application for TDE. It can be used to print everything from simple business cards up to complex labels with several barcodes, such as article descriptions.
-.sp 1
-\fBKBarcode\fP comes with an easy\-to\-use WYSIWYG label designer, a setup wizard, batch import of labels (directly from the delivery note), thousands of predefined labels, database management tools, and translations in many languages.
-.sp 1
-Even printing more than 10,000 labels in one go is no problem for \fBKBarcode\fP.
-.sp 1
-Additionally, it is a simple xbarcode replacement for the creation of barcodes. All major types of barcodes like EAN, UPC, CODE39, and ISBN are supported.
-.SS Arguments:
-.B file
-load label
-.SS Options:
-.BR \-b \ +[ \fIfile\fP ]
-import data for batch printing
-.BR \-l \ +[ \fIfile\fP ]
-label for batch printing
-.B \-c
-customer id for batch printing
-.B \-d <printer>
-Printer/destination to print on
-.B \-\-single
-start as xbarcode replacement
-.B \-\-batch
-start in batch printing mode
-.B \-\-label
-start label editor
-.B \-\-print
-print immediately in batch mode
-.SS Generic options:
-.B \-\-help
-Show help about options
-.B \-\-help\-qt
-Show Qt specific options
-.B \-\-help\-tde
-Show TDE specific options
-.B \-\-help\-all
-Show all options
-.B \-\-author
-Show author information
-.B \-v, \-\-version
-Show version information
-.B \-\-license
-Show license information
-.B \-\-
-End of options
-.SS Qt options:
-.B \-\-display <displayname>
-Use the X\-server display 'displayname'
-.B \-\-session <sessionId>
-Restore the application for the given 'sessionId'
-.B \-\-cmap
-Causes the application to install a private color
-map on an 8\-bit display
-.B \-\-ncols <count>
-Limits the number of colors allocated in the color
-cube on an 8\-bit display, if the application is
-using the QApplication::ManyColor color
-.B \-\-nograb
-tells Qt to never grab the mouse or the keyboard
-.B \-\-dograb
-running under a debugger can cause an implicit
-\-nograb, use \-dograb to override
-.B \-\-sync
-switches to synchronous mode for debugging
-.B \-\-fn, \-\-font <fontname>
-defines the application font
-.B \-\-bg, \-\-background <color>
-sets the default background color and an
-application palette (light and dark shades are
-.B \-\-fg, \-\-foreground <color>
-sets the default foreground color
-.B \-\-btn, \-\-button <color>
-sets the default button color
-.B \-\-name <name>
-sets the application name
-.B \-\-title <title>
-sets the application title (caption)
-.B \-\-visual TrueColor
-forces the application to use a TrueColor visual on
-an 8\-bit display
-.B \-\-inputstyle <inputstyle>
-sets XIM (X Input Method) input style. Possible
-values are onthespot, overthespot, offthespot and
-.B \-\-im <XIM server>
-set XIM server
-.B \-\-noxim
-disable XIM
-.B \-\-reverse
-mirrors the whole layout of widgets
-.SS TDE options:
-.B \-\-caption <caption>
-Use 'caption' as name in the titlebar
-.B \-\-icon <icon>
-Use 'icon' as the application icon
-.B \-\-miniicon <icon>
-Use 'icon' as the icon in the titlebar
-.B \-\-config <filename>
-Use alternative configuration file
-.B \-\-dcopserver <server>
-Use the DCOP Server specified by 'server'
-.B \-\-nocrashhandler
-Disable crash handler, to get core dumps
-.B \-\-waitforwm
-Waits for a WM_NET compatible windowmanager
-.B \-\-style <style>
-sets the application GUI style
-.B \-\-geometry <geometry>
-sets the client geometry of the main widget \- see man X for the argument format
-informations about different barcodes
-\fBKBarcode\fP project page
-\fBKBarcode\fP home page
-Dominik Seichter <>
-Stefan "Stonki" Onken <>
-Please use to report bugs, do not mail the authors directly.
-This manual page was written by Holger Hartmann <> for the \fBDebian\fP Project (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version or any later version published by the Free Software Foundation.
-On \fBDebian\fP systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL.
diff --git a/ubuntu/maverick/applications/kbarcode/debian/rules b/ubuntu/maverick/applications/kbarcode/debian/rules
index f0aedb1c7..e5c16cf8a 100755
--- a/ubuntu/maverick/applications/kbarcode/debian/rules
+++ b/ubuntu/maverick/applications/kbarcode/debian/rules
@@ -1,44 +1,20 @@
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/
-include debian/cdbs/
+include /usr/share/cdbs/1/class/
#include /usr/share/cdbs/1/rules/
-include /usr/share/cdbs/1/rules/
-DEB_CONFIGURE_INCLUDEDIR := /opt/trinity/include/tde
-DEB_CONFIGURE_MANDIR := /opt/trinity/share/man
-DEB_CONFIGURE_PREFIX := /opt/trinity
-DEB_CONFIGURE_INFODIR := /opt/trinity/share/info
-cdbs_configure_flags := --with-qt-dir=/usr/share/qt3 --disable-rpath --with-xinerama $(cdbs_kde_enable_final) $(cdbs_kde_enable_debug)
-DEB_INSTALL_MANPAGES_kbarcode-trinity := debian/kbarcode.1
-DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/opt/trinity --with-extra-libs=/opt/trinity/lib
+include debian/cdbs/
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
&& echo xz || echo bzip2)
-post-patches:: debian/stamp-bootstrap
-ifneq "$(wildcard /usr/share/libtool/" ""
- cp -f /usr/share/libtool/ admin/
-ifneq "$(wildcard /usr/share/libtool/config/" ""
- cp -f /usr/share/libtool/config/ admin/
-ifneq "$(wildcard /usr/share/libtool/build-aux/" ""
- cp -f /usr/share/libtool/build-aux/ admin/
- cp -f /usr/share/aclocal/libtool.m4 admin/
- make -f admin/Makefile.common cvs
- touch debian/stamp-bootstrap
- find . -type f -name | xargs rm -f
- $(MAKE) -f admin/Makefile.common
- mv debian/kbarcode-trinity/usr/share/man debian/kbarcode-trinity/opt/trinity/share/
+ -DCMAKE_INSTALL_PREFIX="/opt/trinity" \
+ -DCONFIG_INSTALL_DIR="/etc/trinity" \
+ -DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \
diff --git a/ubuntu/maverick/applications/kbarcode/debian/source.lintian-overrides b/ubuntu/maverick/applications/kbarcode/debian/source.lintian-overrides
deleted file mode 100644
index cb165370f..000000000
--- a/ubuntu/maverick/applications/kbarcode/debian/source.lintian-overrides
+++ /dev/null
@@ -1 +0,0 @@
-kbarcode-trinity source: source-contains-CVS-dir admin/CVS
diff --git a/ubuntu/maverick/applications/kbarcode/debian/watch b/ubuntu/maverick/applications/kbarcode/debian/watch
deleted file mode 100644
index f0291570e..000000000
--- a/ubuntu/maverick/applications/kbarcode/debian/watch
+++ /dev/null
@@ -1,2 +0,0 @@
-*)\.tar\.gz debian svn-upgrade