--- lemonpos-kde4-0.5.orig/debian/copyright +++ lemonpos-kde4-0.5/debian/copyright @@ -0,0 +1,71 @@ +This package was debianized by Steve Stalcup on +Fri, 01 Feb 2008 10:44:22 -0500. + +It was downloaded from http://lemonpos.sourceforge.net/ + +Upstream Author: + Miguel Chávez Gamboa + +Copyright: + (C) 2007-2008 Miguel Chávez Gamboa + (C) 2001 George Staikos + +License: + + | This package is free software; you can redistribute it and/or modify + | it under the terms of the GNU General Public License as published by + | the Free Software Foundation; either version 2 of the License, or + | (at your option) any later version. + | + | This package 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 General Public License for more details. + | + | You should have received a copy of the GNU Library General Public License + | along with this library; see the file COPYING.LIB. If not, write to + | Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + | MA 02110-1301, USA. + + + On Debian systems, the complete text of the GNU General Public License can be + found in `/usr/share/common-licenses/GPL-2'. + +The following files are licenced under the GNU Library General Public License + * src/sha1.cc (C) 2001 George Staikos + * src/sha1.h (C) 2001 George Staikos + + | This library is free software; you can redistribute it and/or + | modify it under the terms of the GNU Library General Public License + | as published by the Free Software Foundation; either version 2 of + | the License, or (at your option) any later version. + | + | This library 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 library; if not, write to the Free Software + | Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + | MA 02110-1301, USA. + + + On Debian systems, the complete text of the GNU Library General Public License + can be found in /usr/share/common-licenses/LGPL file. + +The documentation docbook file (index.docbook) in this package, located under +squeeze/doc/, are under the GNU Free Documentation License: + + | Permission is granted to copy, distribute and/or modify this + | document under the terms of the GNU Free Documentation License, + | Version 1.1 or any later version published by the Free Software + | Foundation; with no Invariant Sections, with no Front-Cover Texts, + | and with no Back-Cover Texts. + + The full text of the GNU Free Documentation License is available on Debian + systems in /usr/share/common-licenses/GFDL-1.2 + +The Debian packaging is (C) 2008, Steve Stalcup and +is licensed under the GPL-2, see above + --- lemonpos-kde4-0.5.orig/debian/lemon.1 +++ lemonpos-kde4-0.5/debian/lemon.1 @@ -0,0 +1,60 @@ +.TH "lemon" "1" +.if n .ad l +.nh + +.SH "NAME" +lemonpos \- Open Source point of sale for Linux + +.SH "SYNOPSIS" +.B lemon +.RI [ Qt-options ] +.RI [ KDE-options ] +\&... + +.SH "DESCRIPTION" +This package is a configurable general point of sale, not focused to a specific +sector. It can be used at a general store, a fast-food restaurant or a book +store. + +.SH OPTIONS +.PP +All KDE and Qt +programs accept a some common command-line options. lemon has no +application-specific options. +.PP + +.TP +.BR \-\-`help +Show help about options + +.TP +.BR \-\-`help\-qt +Show Qt specific options + +.TP +.BR \-\-`help\-kde +Show KDE specific options + +.TP +.BR \-\-`help\-all +Show all options + +.TP +.BR \-\-`author +Show author information + +.TP +.BR \-\-`version +Show version information + +.TP +.BR \-\-`license +Show license information + +.TP +.BR \-\- +Indicates end of options + +.SH COPYRIGHT +This manual page was written by Steve Stalcup +for the \fBKubuntu system. --- lemonpos-kde4-0.5.orig/debian/rules +++ lemonpos-kde4-0.5/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +THIS_SHOULD_GO_TO_UNSTABLE = 1 +include debian/cdbs/kde.mk + + --- lemonpos-kde4-0.5.orig/debian/control +++ lemonpos-kde4-0.5/debian/control @@ -0,0 +1,29 @@ +Source: lemonpos-kde4 +Section: kde +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Steve Stalcup +Build-Depends: cdbs, debhelper (>= 5), cmake, quilt, kdelibs5-dev (>= 4:3.97.0), + libxss-dev, libphonon-dev +Standards-Version: 3.8.0 +Homepage: http://lemonpos.sourceforge.net/ + +Package: lemonpos +Architecture: any +Depends: ${shlibs:Depends} +Recommends: mysql-client-5.0 +Conflicts: squeeze +Description: Open Source point of sale for Linux + This package is a configurable general point of sale, not focused to a specific + sector. It can be used at a general store, a fast-food restaurant or a book + store. + +Package: lemonpos-kde4 +Architecture: all +Priority: extra +Depends: lemonpos +Description: Transitional package + This dummy package is provided for a smooth transition from lemonpos-kde4 to + the new version, named lemonpos. + . + It may safely be removed after installation. --- lemonpos-kde4-0.5.orig/debian/compat +++ lemonpos-kde4-0.5/debian/compat @@ -0,0 +1 @@ +5 --- lemonpos-kde4-0.5.orig/debian/lemonpos.install +++ lemonpos-kde4-0.5/debian/lemonpos.install @@ -0,0 +1,103 @@ +usr/bin/lemon +usr/bin/squeeze +usr/share/applications/kde4/lemon.desktop +usr/share/applications/kde4/squeeze.desktop +usr/share/icons/hicolor/128x128/apps/lemon-user.png +usr/share/icons/hicolor/16x16/actions/lemonbalance.png +usr/share/icons/hicolor/16x16/actions/lemon-boxcancel.png +usr/share/icons/hicolor/16x16/actions/lemon-box.png +usr/share/icons/hicolor/16x16/actions/lemon-money.png +usr/share/icons/hicolor/16x16/actions/lemon-payfocus.png +usr/share/icons/hicolor/16x16/actions/lemon-printer.png +usr/share/icons/hicolor/16x16/actions/lemon-ruler.png +usr/share/icons/hicolor/16x16/actions/lemon-switchuser.png +usr/share/icons/hicolor/16x16/actions/lemon-tag.png +usr/share/icons/hicolor/16x16/actions/lemon-ticket-cancel.png +usr/share/icons/hicolor/16x16/actions/lemon-transaction-accept.png +usr/share/icons/hicolor/16x16/actions/lemon-transaction-cancel.png +usr/share/icons/hicolor/16x16/apps/lemon.png +usr/share/icons/hicolor/16x16/apps/squeeze.png +usr/share/icons/hicolor/22x22/actions/lemonbalance.png +usr/share/icons/hicolor/22x22/actions/lemon-boxcancel.png +usr/share/icons/hicolor/22x22/actions/lemon-box.png +usr/share/icons/hicolor/22x22/actions/lemon-money.png +usr/share/icons/hicolor/22x22/actions/lemon-payfocus.png +usr/share/icons/hicolor/22x22/actions/lemon-printer.png +usr/share/icons/hicolor/22x22/actions/lemon-ruler.png +usr/share/icons/hicolor/22x22/actions/lemon-switchuser.png +usr/share/icons/hicolor/22x22/actions/lemon-tag.png +usr/share/icons/hicolor/22x22/actions/lemon-ticket-cancel.png +usr/share/icons/hicolor/22x22/actions/lemon-transaction-accept.png +usr/share/icons/hicolor/22x22/actions/lemon-transaction-cancel.png +usr/share/icons/hicolor/22x22/apps/lemon.png +usr/share/icons/hicolor/22x22/apps/squeeze.png +usr/share/icons/hicolor/32x32/actions/lemonbalance.png +usr/share/icons/hicolor/32x32/actions/lemon-boxcancel.png +usr/share/icons/hicolor/32x32/actions/lemon-box.png +usr/share/icons/hicolor/32x32/actions/lemon-money.png +usr/share/icons/hicolor/32x32/actions/lemon-payfocus.png +usr/share/icons/hicolor/32x32/actions/lemon-printer.png +usr/share/icons/hicolor/32x32/actions/lemon-ruler.png +usr/share/icons/hicolor/32x32/actions/lemon-switchuser.png +usr/share/icons/hicolor/32x32/actions/lemon-tag.png +usr/share/icons/hicolor/32x32/actions/lemon-ticket-cancel.png +usr/share/icons/hicolor/32x32/actions/lemon-transaction-accept.png +usr/share/icons/hicolor/32x32/actions/lemon-transaction-cancel.png +usr/share/icons/hicolor/32x32/apps/lemon.png +usr/share/icons/hicolor/32x32/apps/squeeze.png +usr/share/icons/hicolor/48x48/actions/lemonbalance.png +usr/share/icons/hicolor/48x48/actions/lemon-boxcancel.png +usr/share/icons/hicolor/48x48/actions/lemon-box.png +usr/share/icons/hicolor/48x48/actions/lemon-money.png +usr/share/icons/hicolor/48x48/actions/lemon-payfocus.png +usr/share/icons/hicolor/48x48/actions/lemon-printer.png +usr/share/icons/hicolor/48x48/actions/lemon-ruler.png +usr/share/icons/hicolor/48x48/actions/lemon-switchuser.png +usr/share/icons/hicolor/48x48/actions/lemon-tag.png +usr/share/icons/hicolor/48x48/actions/lemon-ticket-cancel.png +usr/share/icons/hicolor/48x48/actions/lemon-transaction-accept.png +usr/share/icons/hicolor/48x48/actions/lemon-transaction-cancel.png +usr/share/icons/hicolor/48x48/apps/lemon.png +usr/share/icons/hicolor/48x48/apps/squeeze.png +usr/share/icons/hicolor/64x64/actions/lemon-printer.png +usr/share/icons/hicolor/64x64/actions/lemon-ruler.png +usr/share/icons/hicolor/64x64/actions/lemon-switchuser.png +usr/share/icons/hicolor/64x64/apps/lemon.png +usr/share/icons/hicolor/64x64/apps/squeeze.png +usr/share/kde4/apps/lemon/images/imgPrint.png +usr/share/kde4/apps/lemon/images/itemBox.png +usr/share/kde4/apps/lemon/images/logo_bottom.png +usr/share/kde4/apps/lemon/images/splash_screen.png +usr/share/kde4/apps/lemon/lemonui.rc +usr/share/kde4/apps/lemon/styles/elegant/backg.png +usr/share/kde4/apps/lemon/styles/elegant/button_hover.png +usr/share/kde4/apps/lemon/styles/elegant/button.png +usr/share/kde4/apps/lemon/styles/elegant/checkbox_off.png +usr/share/kde4/apps/lemon/styles/elegant/checkbox_on.png +usr/share/kde4/apps/lemon/styles/elegant/checks_bg.png +usr/share/kde4/apps/lemon/styles/elegant/editbox.png +usr/share/kde4/apps/lemon/styles/elegant/elegant.qss +usr/share/kde4/apps/lemon/styles/elegant/groupbox.png +usr/share/kde4/apps/lemon/styles/elegant/headers.png +usr/share/kde4/apps/lemon/styles/elegant/headerview_hover.png +usr/share/kde4/apps/lemon/styles/elegant/headerview.png +usr/share/kde4/apps/lemon/styles/elegant/hgroupbox.png +usr/share/kde4/apps/lemon/styles/elegant/loginBackground_1280x800.png +usr/share/kde4/apps/lemon/styles/elegant/loginBackground.png +usr/share/kde4/apps/lemon/styles/elegant/passwordBackground.png +usr/share/kde4/apps/lemon/styles/elegant/passwordBackground_wide.png +usr/share/kde4/apps/lemon/styles/elegant/radiobutton_off.png +usr/share/kde4/apps/lemon/styles/elegant/radiobutton_on.png +usr/share/kde4/apps/lemon/styles/elegant/tira.png +usr/share/kde4/apps/lemon/styles/simple/backg.png +usr/share/kde4/apps/lemon/styles/simple/loginBackground_1280x800.png +usr/share/kde4/apps/lemon/styles/simple/loginBackground.png +usr/share/kde4/apps/lemon/styles/simple/passwordBackground.png +usr/share/kde4/apps/lemon/styles/simple/passwordBackground_wide.png +usr/share/kde4/apps/lemon/styles/simple/simple.qss +usr/share/kde4/apps/squeeze/images/itemBox.png +usr/share/kde4/apps/squeeze/squeezeui.rc +usr/share/kde4/config.kcfg/lemon.kcfg +usr/share/kde4/config.kcfg/squeeze.kcfg +usr/share/kde4/config/lemonrc + --- lemonpos-kde4-0.5.orig/debian/watch +++ lemonpos-kde4-0.5/debian/watch @@ -0,0 +1,5 @@ +version=3 + +http://sf.net/lemonpos/lemonpos-([0-9].*)\.tar\.bz2 + + --- lemonpos-kde4-0.5.orig/debian/changelog +++ lemonpos-kde4-0.5/debian/changelog @@ -0,0 +1,33 @@ +lemonpos-kde4 (0.5-0ubuntu4) jaunty; urgency=low + + * lemonpos has some files already available in squeeze package, add + a Conflicts field for it until a proper fix is found (LP: #305549). + + -- Luca Falavigna Sun, 28 Dec 2008 14:08:32 +0100 + +lemonpos-kde4 (0.5-0ubuntu3) intrepid; urgency=low + + * Create lemonpos.install file + * Update FSF address in debian/copyright + * Added lemon.1 and squeeze.1 manpages + + -- Steve Stalcup Mon, 28 Jul 2008 20:12:26 -0400 + +lemonpos-kde4 (0.5-0ubuntu2) intrepid; urgency=low + + * Fix paths for intrepid + + -- Steve Stalcup Mon, 28 Jul 2008 06:34:10 -0400 + +lemonpos-kde4 (0.5-0ubuntu1) intrepid; urgency=low + + * New upstream release (LP: #235098) + + -- Steve Stalcup Mon, 26 May 2008 18:15:15 -0400 + +lemonpos-kde4 (0.4.1-0ubuntu1) hardy; urgency=low + + * Initial release (LP: #189254) + + -- Steve Stalcup Fri, 01 Feb 2008 10:44:22 -0500 + --- lemonpos-kde4-0.5.orig/debian/squeeze.1 +++ lemonpos-kde4-0.5/debian/squeeze.1 @@ -0,0 +1,60 @@ +.TH "squeeze" "1" +.if n .ad l +.nh + +.SH "NAME" +lemonpos \- Open Source point of sale for Linux + +.SH "SYNOPSIS" +.B squeeze +.RI [ Qt-options ] +.RI [ KDE-options ] +\&... + +.SH "DESCRIPTION" +This package is a configurable general point of sale, not focused to a specific +sector. It can be used at a general store, a fast-food restaurant or a book +store. + +.SH OPTIONS +.PP +All KDE and Qt +programs accept a some common command-line options. squeeze has no +application-specific options. +.PP + +.TP +.BR \-\-`help +Show help about options + +.TP +.BR \-\-`help\-qt +Show Qt specific options + +.TP +.BR \-\-`help\-kde +Show KDE specific options + +.TP +.BR \-\-`help\-all +Show all options + +.TP +.BR \-\-`author +Show author information + +.TP +.BR \-\-`version +Show version information + +.TP +.BR \-\-`license +Show license information + +.TP +.BR \-\- +Indicates end of options + +.SH COPYRIGHT +This manual page was written by Steve Stalcup +for the \fBKubuntu system. --- lemonpos-kde4-0.5.orig/debian/manpages +++ lemonpos-kde4-0.5/debian/manpages @@ -0,0 +1,2 @@ +debian/lemon.1 +debian/squeeze.1 \ No newline at end of file --- lemonpos-kde4-0.5.orig/debian/cdbs/versions.mk +++ lemonpos-kde4-0.5/debian/cdbs/versions.mk @@ -0,0 +1,14 @@ + +CDBS_MIN_VER:=0.4.52 +QUILT_MIN_VER:=0.40 +CMAKE_MIN_VER:=2.4.8 + + +KDELIBS_VERSION:=$(shell dpkg -l kdelibs5 | grep kdelibs5 | awk '{print $$3}') +KDELIBS_SOURCE_VERSION:=$(shell echo $(KDELIBS_VERSION) | sed 's/+b.*//') +KDELIBS_UPSTREAM_VERSION:=$(shell echo $(KDELIBS_VERSION) | sed 's/-.*//') + +KDEPIMLIBS_VERSION:=$(shell dpkg -l kdepimlibs5 | grep kdepimlibs5 | awk '{print $$3}') +KDEPIMLIBS_SOURCE_VERSION:=$(shell echo $(KDEPIMLIBS_VERSION) | sed 's/+b.*//') +KDEPIMLIBS_UPSTREAM_VERSION:=$(shell echo $(KDEPIMLIBS_VERSION) | sed 's/-.*//') + --- lemonpos-kde4-0.5.orig/debian/cdbs/dh_sameversiondeps +++ lemonpos-kde4-0.5/debian/cdbs/dh_sameversiondeps @@ -0,0 +1,140 @@ +#!/usr/bin/perl -w + +use strict; +use Dpkg::Control; +use Dpkg::Substvars; +use Dpkg::ErrorHandling; +use File::Copy; + +use Debian::Debhelper::Dh_Lib; + +my $namespace = "sameVersionDep"; +my @fields = qw(Depends Recommends Suggests Enhances Pre-Depends); +my $re_fields = join("|", @fields); +my $re_pkgname = qr/[a-z0-9][a-z0-9+.-]*/; +my $re_oursubstvar = qr/\$\{($namespace:($re_pkgname):($re_pkgname)-($re_fields)-($re_pkgname))\}/; + +# Global substvars file +my $g_substvars = new Dpkg::Substvars; +$g_substvars->parse("debian/substvars") if (-r "debian/substvars"); + +sub Shlibsvars::new { + my ($cls, $package, $control, $substvars_file) = @_; + my $self = bless ( { + "package" => $package, + "control" => $control, + "file" => $substvars_file, + }, $cls); + $self->{substvars} = new Dpkg::Substvars; + if (-r $self->{file}) { + $self->{substvars}->parse($self->{file}); + } + return $self; +} + +sub Shlibsvars::get_fieldval { + my ($self, $field) = @_; + + my $pkg = $self->{control}->get_pkg_by_name($self->{package}); + return undef if (!defined $pkg || !exists $pkg->{$field}); + + # Turn of warnings for substvars runs + my $save_quiet = $Dpkg::ErrorHandling::quiet_warnings; + $Dpkg::ErrorHandling::quiet_warnings = 1; + + my $val = $pkg->{$field}; + $val = $self->{substvars}->substvars($val); + $val = $g_substvars->substvars($val); + + $Dpkg::ErrorHandling::quiet_warnings = $save_quiet; + return $val; +} + +sub Shlibsvars::extract_deps { + my ($self, $field, $deppkg) = @_; + + my $val = $self->get_fieldval($field); + return undef() unless defined $val; + + # Extract dependency fields we need + my @matched_deps; + for my $dep (split(/\s*,\s*/, $val)) { + if ($dep =~ /^\Q$deppkg\E(?:$|[\W])/) { + push @matched_deps, $dep; + } + } + return join(",", @matched_deps); +} + +sub write_substvar($$$$) { + my ($pkgname, $varname, $value, $substvars) = @_; + my @contents; + my $varset = 0; + + my $file = (-r $substvars) ? $substvars : "debian/substvars"; + if (-r $file) { + open(FILE, "<$file") or die "Unable to open substvars file '$file' for reading\n"; + while () { + if (!$varset && /^\s*\Q$varname=\E/) { + push @contents, "$varname=$value\n"; + $varset = 1; + } else { + push @contents, $_; + } + } + close(FILE); + } else { + # Fallback to default + $file = $substvars; + } + + open(FILE, ">$file.tmp") or die "Unable to open substvars file '$file.tmp' for writing\n"; + for (@contents) { + print FILE $_; + } + if (!$varset) { + print FILE "$varname=$value", "\n"; + } + close(FILE); + + File::Copy::move("$file.tmp", "$file"); +} + +init(); + +my $control = new Dpkg::Control; +my %shlibsvars; + +foreach my $package (@{$dh{DOPACKAGES}}) { + my $pkg_substvars = sprintf("debian/%ssubstvars", pkgext($package)); + my $pkg = $control->get_pkg_by_name($package); + + for my $fieldname (@fields) { + if (exists $pkg->{$fieldname}) { + my $fieldval = $pkg->{$fieldname}; + my $pkgname = $pkg->{Package}; + + while ($fieldval =~ m/\G.*?$re_oursubstvar/g) { + my $varname = $1; + my $dep2add = $2; + my $basepkg = $3; + my $deptype = $4; + my $deppkg = $5; + + if (!exists $shlibsvars{$basepkg}) { + my $base_substvars = sprintf("debian/%ssubstvars", pkgext($basepkg)); + $shlibsvars{$basepkg} = new Shlibsvars($basepkg, $control, $base_substvars); + } + my $vars = $shlibsvars{$basepkg}; + my $deps = $vars->extract_deps($deptype, $deppkg); + $deps = "" unless($deps); + $deps =~ s/\b\Q$deppkg\E\b/$dep2add/g; + + # Write substvar for the package + write_substvar($pkgname, $varname, $deps, $pkg_substvars); + } + } + } +} + +exit 0 --- lemonpos-kde4-0.5.orig/debian/cdbs/kde.mk +++ lemonpos-kde4-0.5/debian/cdbs/kde.mk @@ -0,0 +1,108 @@ +include /usr/share/cdbs/1/class/cmake.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +include /usr/share/cdbs/1/rules/utils.mk + +DEB_CONFIG_INSTALL_DIR ?= /usr/share/kde4/config + +DEB_COMPRESS_EXCLUDE = .dcl .docbook -license .tag .sty .el +DEB_CMAKE_EXTRA_FLAGS += \ + -DCMAKE_BUILD_TYPE=Debian \ + $(KDE4-ENABLE-FINAL) \ + -DKDE4_BUILD_TESTS=false \ + -DKDE_DISTRIBUTION_TEXT="Kubuntu packages" \ + -DCMAKE_SKIP_RPATH=true \ + -DKDE4_USE_ALWAYS_FULL_RPATH=false \ + -DCONFIG_INSTALL_DIR=$(DEB_CONFIG_INSTALL_DIR) \ + -DDATA_INSTALL_DIR=/usr/share/kde4/apps \ + -DHTML_INSTALL_DIR=/usr/share/doc/kde4/HTML \ + -DKCFG_INSTALL_DIR=/usr/share/kde4/config.kcfg \ + -DLIB_INSTALL_DIR=/usr/lib \ + -DSYSCONF_INSTALL_DIR=/etc + +# Set the one below to something else than 'yes' to disable linking +# with --as-needed (on by default) +DEB_KDE_LINK_WITH_AS_NEEDED ?= yes +ifneq (,$(findstring yes, $(DEB_KDE_LINK_WITH_AS_NEEDED))) + ifeq (,$(findstring no-as-needed, $(DEB_BUILD_OPTIONS))) + DEB_KDE_LINK_WITH_AS_NEEDED := yes + DEB_CMAKE_EXTRA_FLAGS += \ + -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \ + -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \ + -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" + else + DEB_KDE_LINK_WITH_AS_NEEDED := no + endif +else + DEB_KDE_LINK_WITH_AS_NEEDED := no +endif + +#DEB_CMAKE_PREFIX = /usr/lib/kde4 +DEB_DH_INSTALL_SOURCEDIR = debian/tmp +#DEB_DH_SHLIBDEPS_ARGS = -l/usr/lib/kde4/lib/ +DEB_KDE_ENABLE_FINAL ?= +#DEB_MAKE_ENVVARS += XDG_CONFIG_DIRS=/etc/xdg XDG_DATA_DIRS=/usr/share +#DEB_STRIP_EXCLUDE = so + +ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + cdbs_treat_me_gently_arches := arm m68k alpha ppc64 armel armeb + ifeq (,$(filter $(DEB_HOST_ARCH_CPU),$(cdbs_treat_me_gently_arches))) + KDE4-ENABLE-FINAL = $(if $(DEB_KDE_ENABLE_FINAL),-DKDE4_ENABLE_FINAL=true,) + else + KDE4-ENABLE-FINAL = + endif +endif + +common-build-arch:: debian/stamp-man-pages +debian/stamp-man-pages: + if ! test -d debian/man/out; then mkdir -p debian/man/out; fi + for f in $$(find debian/man -name '*.sgml'); do \ + docbook-to-man $$f > debian/man/out/`basename $$f .sgml`.1; \ + done + for f in $$(find debian/man -name '*.man'); do \ + soelim -I debian/man $$f \ + > debian/man/out/`basename $$f .man`.`head -n1 $$f | awk '{print $$NF}'`; \ + done + touch debian/stamp-man-pages + +clean:: +ifndef THIS_SHOULD_GO_TO_UNSTABLE + #guard against experimental uploads to unstable + dpkg-parsechangelog | grep ^Distribution | grep -q 'experimental\|UNRELEASED' +endif + rm -rf debian/man/out + -rmdir debian/man + rm -f debian/stamp-man-pages + rm -f CMakeCache.txt + + +$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%: + if test -x /usr/bin/dh_desktop; then dh_desktop -p$(cdbs_curpkg) $(DEB_DH_DESKTOP_ARGS); fi + if test -e debian/$(cdbs_curpkg).lintian; then \ + install -p -D -m644 debian/$(cdbs_curpkg).lintian \ + debian/$(cdbs_curpkg)/usr/share/lintian/overrides/$(cdbs_curpkg); \ + fi + if test -e debian/$(cdbs_curpkg).presubj; then \ + install -p -D -m644 debian/$(cdbs_curpkg).presubj \ + debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)/presubj; \ + fi + +binary-install/$(DEB_SOURCE_PACKAGE)-doc-html:: + set -e; \ + for doc in `cd $(DEB_DESTDIR)/usr/share/doc/kde/HTML/en; find . -name index.docbook`; do \ + pkg=$${doc%/index.docbook}; pkg=$${pkg#./}; \ + echo Building $$pkg HTML docs...; \ + mkdir -p $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \ + cd $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \ + meinproc4 $(DEB_DESTDIR)/usr/share/doc/kde/HTML/en/$$pkg/index.docbook; \ + done + for pkg in $(DOC_HTML_PRUNE) ; do \ + rm -rf debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \ + done + + +# Process "sameVersionDep:" substvars +DH_SAMEVERSIONDEPS=debian/cdbs/dh_sameversiondeps +common-binary-predeb-arch common-binary-predeb-indep:: + @if [ ! -x "$(DH_SAMEVERSIONDEPS)" ]; then chmod a+x "$(DH_SAMEVERSIONDEPS)"; fi + $(DH_SAMEVERSIONDEPS) --- lemonpos-kde4-0.5.orig/debian/cdbs/control.mk +++ lemonpos-kde4-0.5/debian/cdbs/control.mk @@ -0,0 +1,19 @@ +include debian/cdbs/versions.mk +debian/control: debian/control.tmp + mv debian/control.tmp debian/control + +debian/control.tmp: update-versions + +update-versions: debian/control.in + sed "s/CDBS_MIN_VER/$(CDBS_MIN_VER)/;\ + s/QUILT_MIN_VER/$(QUILT_MIN_VER)/;\ + s/CMAKE_MIN_VER/$(CMAKE_MIN_VER)/;\ + s/KDELIBS_VERSION/$(KDELIBS_VERSION)/;\ + s/KDELIBS_UPSTREAM_VERSION/$(KDELIBS_UPSTREAM_VERSION)/;\ + s/KDELIBS_SOURCE_VERSION/$(KDELIBS_SOURCE_VERSION)/;\ + s/KDEPIMLIBS_VERSION/$(KDEPIMLIBS_VERSION)/;\ + s/KDEPIMLIBS_SOURCE_VERSION/$(KDEPIMLIBS_SOURCE_VERSION)/;\ + s/KDEPIMLIBS_UPSTREAM_VERSION/$(KDEPIMLIBS_UPSTREAM_VERSION)/;\ + " debian/control.in > debian/control.tmp + +.PHONY: update-versions