--- kdeaccessibility-4.0.83.orig/debian/copyright +++ kdeaccessibility-4.0.83/debian/copyright @@ -0,0 +1,24 @@ +This package was debianized by Ana Beatriz Guerrero Lopez on +Wed, 23 May 2007 21:24:37 +0200. + +It was downloaded from + +Upstream Author(s): + + + + +Copyright: + + + + +License: + + + +The Debian packaging is (C) 2007, Ana Beatriz Guerrero Lopez and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. --- kdeaccessibility-4.0.83.orig/debian/control +++ kdeaccessibility-4.0.83/debian/control @@ -0,0 +1,25 @@ +Source: kdeaccessibility +Section: kde +Priority: optional +Maintainer: Kubuntu Developers +XSBC-Original-Maintainer: Debian Qt/KDE Maintainers +Build-Depends: cdbs, debhelper (>= 5), cmake (>= 2.4.5), quilt, kdelibs5-dev (>=4:4.0.83), + kdebase-workspace-dev (>=4:4.0.83) +Standards-Version: 3.7.2 +Homepage: http://accessibility.kde.org + +Package: kdeaccessibility +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: kdeaccessibility-kde4 +Conflicts: kdeaccessibility-kde4 +Description: accessibility packages from the official KDE release + KDE is produced by an international technology team that creates free and open + source software for desktop and portable computing. Among KDE's products are a + modern desktop system for Linux and UNIX platforms, comprehensive office + productivity and groupware suites and hundreds of software titles in many + categories including Internet and web applications, multimedia, entertainment, + educational, graphics and software development. + . + This metapackage includes a collection of programs to make KDE more + accessible, provided with the official release of KDE. --- kdeaccessibility-4.0.83.orig/debian/compat +++ kdeaccessibility-4.0.83/debian/compat @@ -0,0 +1 @@ +5 --- kdeaccessibility-4.0.83.orig/debian/rules +++ kdeaccessibility-4.0.83/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +THIS_SHOULD_GO_TO_UNSTABLE = 1 + +include debian/cdbs/kde.mk \ No newline at end of file --- kdeaccessibility-4.0.83.orig/debian/changelog +++ kdeaccessibility-4.0.83/debian/changelog @@ -0,0 +1,446 @@ +kdeaccessibility (4:4.0.83-0ubuntu1) intrepid; urgency=low + + * New upstream beta release + + -- Jonathan Riddell Thu, 19 Jun 2008 11:45:14 +0000 + +kdeaccessibility (4:4.0.80-1ubuntu1) intrepid; urgency=low + + * Merge with Debian + * Add conflicts on kdeaccessibility-kde4 + + -- Jonathan Riddell Wed, 28 May 2008 10:11:39 +0100 + +kdeaccessibility (4:4.0.73-0ubuntu1) intrepid; urgency=low + + * New upstream development release, merge with Debian + + -- Jonathan Riddell Mon, 12 May 2008 13:17:35 +0100 + +kdeaccessibility (4:4.0.0-1) UNRELEASED; urgency=low + + * New upstream release. + + +++ Changes by Matthew Rosewarne: + + * Add Homepage: to control. + * Tweak package description. + + -- Debian Qt/KDE Maintainers Fri, 16 Nov 2007 00:27:07 +0100 + +kdeaccessibility (4:3.90.1-1) experimental; urgency=low + + * Initial release. + + -- Ana Beatriz Guerrero Lopez Wed, 23 May 2007 21:24:37 +0200 + +kdeaccessibility (4:3.5.9-0ubuntu1) hardy; urgency=low + + * New upstream release + + -- Jonathan Riddell Thu, 14 Feb 2008 12:27:05 +0000 + +kdeaccessibility (4:3.5.8-1ubuntu2) hardy; urgency=low + + * Run buildprep before upload + + -- Jonathan Riddell Thu, 15 Nov 2007 10:59:22 +0000 + +kdeaccessibility (4:3.5.8-1ubuntu1) hardy; urgency=low + + * Merge with Debian, remaining change: + - Remove Section: contrib/ from kttsd-contrib-plugins + + -- Jonathan Riddell Wed, 14 Nov 2007 17:25:46 +0000 + +kdeaccessibility (4:3.5.8-1) unstable; urgency=low + + * New upstream release. + * Implement uploaders.mk + + +++ Changes by Ana Beatriz Guerrero Lopez: + + * Update section in Debian menu files. + * Redo buildprep and bump version stuff to 3.5.8. + + -- Ana Beatriz Guerrero Lopez Sun, 14 Oct 2007 18:28:25 +0200 + +kdeaccessibility (4:3.5.8-0ubuntu1) gutsy; urgency=low + + * Remove contrib section + + -- Jonathan Riddell Tue, 09 Oct 2007 21:52:11 +0100 + +kdeaccessibility (4:3.5.8-0ubuntu1) gutsy; urgency=low + + * New upstream release + + -- Jonathan Riddell Tue, 09 Oct 2007 11:41:27 +0100 + +kdeaccessibility (4:3.5.7-1ubuntu1) gutsy; urgency=low + + * Merge with Debian for new upstream version + + -- Jonathan Riddell Wed, 23 May 2007 17:00:20 +0100 + +kdeaccessibility (4:3.5.7-1) unstable; urgency=low + + * New upstream version. + + -- Ana Beatriz Guerrero Lopez Wed, 16 May 2007 02:01:02 +0100 + +kdeaccessibility (4:3.5.6-2ubuntu1) gutsy; urgency=low + + * Merge with Debian + * No remaining changes besides patches + + -- Jonathan Riddell Mon, 30 Apr 2007 20:32:56 +0100 + +kdeaccessibility (4:3.5.6-2) unstable; urgency=low + + * Upload to unstable after Etch release. + + -- Ana Beatriz Guerrero Lopez Fri, 20 Apr 2007 17:36:39 +0100 + +kdeaccessibility (4:3.5.6-1) experimental; urgency=low + + * New upstream release. + + +++ Changes by Sune Vuorela: + * Fix some kfreebsd related problems: don't expect alsa stuff to be + installed. (Closes: 403741) + + -- Debian Qt/KDE Maintainers Thu, 18 Jan 2007 00:20:08 +0100 + +kdeaccessibility (4:3.5.5-2) unstable; urgency=low + + ++ Changes by Josh Metzler: + * Make kdeaccessibility-dbg depend on kdelibs-dbg to get useful backtraces + when debugging. + + ++ Ana Beatriz Guerrero Lopez: + * Removed plugin for GStreamer of kttsd. (This plugin was built against + GStreamer 0.8 that is going to be removed from the archive). + * Added extras spaces to homepage pseudo header. + + -- Debian Qt/KDE Maintainers Thu, 7 Dec 2006 14:56:02 +0100 + +kdeaccessibility (4:3.5.6-0ubuntu1) feisty; urgency=low + + * New upstream release + + -- Jonathan Riddell Wed, 17 Jan 2007 11:22:31 +0000 + +kdeaccessibility (4:3.5.5-1ubuntu1) feisty; urgency=low + + * Merge with Debian + + -- Jonathan Riddell Thu, 16 Nov 2006 22:12:42 +0000 + +kdeaccessibility (4:3.5.5-1) unstable; urgency=low + + * New upstream release. + + Fixes ksayit: crash with "terminate called after throwing an instance + of 'QString'" error. (Closes: #350678) + + -- Debian Qt/KDE Maintainers Wed, 4 Oct 2006 20:40:37 -0400 + +kdeaccessibility (4:3.5.4-1) unstable; urgency=low + + * New upstream release. + + * KDE_3_5_BRANCH update (up to r567761). + + -- Debian Qt/KDE Maintainers Sat, 29 Jul 2006 21:12:52 -0400 + +kdeaccessibility (4:3.5.5-0ubuntu1) edgy; urgency=low + + * New upstream release + + -- Jonathan Riddell Tue, 3 Oct 2006 10:56:05 +0000 + +kdeaccessibility (4:3.5.4-0ubuntu5) edgy; urgency=low + + * Rebuild on latest cdbs to change .pot files to UTF8 + + -- Jonathan Riddell Wed, 20 Sep 2006 13:09:37 +0100 + +kdeaccessibility (4:3.5.4-0ubuntu4) edgy; urgency=low + + * Rebuild with latest cdbs to add gettext domain to .desktop files for + langpacks-desktopfiles-kde, no source changes + + -- Jonathan Riddell Tue, 5 Sep 2006 22:53:10 +0000 + +kdeaccessibility (4:3.5.4-0ubuntu3) edgy; urgency=low + + * Build-dep on new akode so it doesn't bring in akode-mpeg + + -- Jonathan Riddell Wed, 2 Aug 2006 13:35:28 +0000 + +kdeaccessibility (4:3.5.4-0ubuntu2) edgy; urgency=low + + * Build-dep on new akode so it doesn't bring in Jack + + -- Jonathan Riddell Sun, 30 Jul 2006 16:28:24 +0100 + +kdeaccessibility (4:3.5.4-0ubuntu1) edgy; urgency=low + + * New upstream release + + -- Jonathan Riddell Tue, 25 Jul 2006 10:12:17 +0000 + +kdeaccessibility (4:3.5.3-1ubuntu1) edgy; urgency=low + + * Sync with Debian + * Don't build-dep on gstreamer0.8 and remove --with-gstreamer (it's in universe) + + -- Jonathan Riddell Tue, 4 Jul 2006 15:12:40 +0000 + +kdeaccessibility (4:3.5.3-1) unstable; urgency=low + + * New upstream release. + + * KDE_3_5_BRANCH update (up to r548166). + + -- Debian Qt/KDE Maintainers Sun, 4 Jun 2006 18:34:43 -0400 + +kdeaccessibility (4:3.5.2-1) unstable; urgency=low + + * New upstream release. + + -- Debian Qt/KDE Maintainers Wed, 29 Mar 2006 21:18:53 -0500 + +kdeaccessibility (4:3.5.1-1) unstable; urgency=low + + * New upstream release. + + +++ Changes by Christopher Martin: + + * Upload to unstable. + + -- Debian Qt/KDE Maintainers Sun, 29 Jan 2006 10:44:07 -0500 + +kdeaccessibility (4:3.5.0-3) unstable; urgency=low + + +++ Changes by Christopher Martin: + + * Upload to unstable. + + * KDE_3_5_BRANCH update (up to r495385). + + -- Debian Qt/KDE Maintainers Sat, 7 Jan 2006 17:25:45 -0500 + +kdeaccessibility (4:3.5.0-2) experimental; urgency=low + + * Upload to experimental. + + * KDE_3_5_BRANCH update (up to r492083). + + +++ Changes by Christopher Martin: + + * No longer build with gcc-3.4 on any architectures, since gcc-4.0 should + be fixed. (Closes: #342977) + + -- Debian Qt/KDE Maintainers Wed, 28 Dec 2005 13:31:29 -0500 + +kdeaccessibility (4:3.5.2-0ubuntu3) dapper; urgency=low + + * debian/cdbs/debian-qt-kde.mk to call dh_iconcache + + -- Gauvain Pocentek Wed, 24 May 2006 12:55:38 +0200 + +kdeaccessibility (4:3.5.2-0ubuntu2) dapper; urgency=low + + * Edit debian/cdbs/kde.mk to mark .po files as UTF-8 + + -- Jonathan Riddell Fri, 21 Apr 2006 19:14:27 +0100 + +kdeaccessibility (4:3.5.2-0ubuntu1) dapper; urgency=low + + * New upstream release + + -- Jonathan Riddell Mon, 20 Mar 2006 12:06:28 +0000 + +kdeaccessibility (4:3.5.1-0ubuntu1) dapper; urgency=low + + * New upstream release + + -- Jonathan Riddell Mon, 23 Jan 2006 14:26:05 +0000 + +kdeaccessibility (4:3.5.0-0ubuntu1) dapper; urgency=low + + * New upstream release + * Remove GCC 3.4 on hppa + + -- Jonathan Riddell Tue, 6 Dec 2005 12:26:30 +0000 + +kdeaccessibility (4:3.5-rc2-0ubuntu1) dapper; urgency=low + + * New upstream pre-release + * Sync with Debian + + -- Jonathan Riddell Wed, 23 Nov 2005 13:33:38 +0000 + +kdeaccessibility (4:3.5.0-1) alioth; urgency=low + + * New upstream release. + + +++ Changes by Josh Metzler: + + * Add libakode-dev build dependency to build akode plugin. + + * Remove epos, flite, and festival build dependencies. The plugins + are still built without them installed. + + +++ Changes by Christopher Martin: + + * Bump DH_COMPAT to 5. No changes. + + * Add kdeaccessibility-dbg, to help track down problems. + + -- Debian Qt/KDE Maintainers Wed, 30 Nov 2005 18:41:50 -0500 + +kdeaccessibility (4:3.4.3-2) unstable; urgency=low + + * Upload to unstable, rebuilding against kdelibs4c2a. + + * KDE_3_4_BRANCH update (up to r484426). + + -- Debian Qt/KDE Maintainers Wed, 30 Nov 2005 19:49:02 +0100 + +kdeaccessibility (4:3.4.3-1) experimental; urgency=low + + * New upstream release. + + -- Debian Qt/KDE Maintainers Sun, 16 Oct 2005 14:19:29 -0400 + +kdeaccessibility (4:3.4.2-2) unstable; urgency=low + + +++ Changes by Luk Claes: + + * Add new files to respective debian/*.install files + + * Build with g++-3.4 on arm, m68k and hppa; kdeaccessibility triggers the same + gcc 4.0 ICE as arts does. + + -- Debian Qt/KDE Maintainers Fri, 2 Sep 2005 20:18:02 +0200 + +kdeaccessibility (4:3.4.2-1) unstable; urgency=low + + * New upstream release. + + +++ Changes by Luk Claes: + + * Added me to uploaders + + * Updated FSF's address + + -- Debian Qt/KDE Maintainers Thu, 1 Sep 2005 17:31:25 +0200 + +kdeaccessibility (4:3.4.1-1) experimental; urgency=low + + * New upstream release. + + -- Debian Qt/KDE Maintainers Tue, 31 May 2005 15:43:52 -0400 + +kdeaccessibility (4:3.4.0-0pre1) alioth; urgency=low + + * New upstream release. + + * Converted packaging to CDBS. + + +++ Changes by Pierre Habouzit: + + * Bunch of new packages : kttsd*, kde-icons-mono, ksayit, kbstate. + * Wrote a README.Debian for kttsd to clarify synth-plugin state. + * Reworked package descriptions. + + +++ Changes by Adeodato Simó: + + * Created XPM icons for packages having a menu file. Install them in + /usr/share/pixmaps and update the menu entries to use them. + + +++ Changes by Christopher Martin: + + * New kdeaccessibility-doc-html package, containing doc-base registered + HTML versions of application handbooks, for users without Konqueror or + KHelpCenter. + + -- Debian Qt/KDE Maintainers Sat, 5 Mar 2005 21:32:41 +0100 + +kdeaccessibility (4:3.3.2-1) unstable; urgency=low + + +++ Changes by Christopher Martin: + + * KDE_3_3_BRANCH update. + + * Change debian/copyright file to refer to licenses, instead of copyright, + when discussing KDE's licenses. + + +++ Changes by Isaac Clerencia: + + * Added myself to Uploaders + + -- Debian Qt/KDE Maintainers Sun, 23 Jan 2005 23:09:07 +0100 + +kdeaccessibility (4:3.3.2-0pre1) experimental; urgency=low + + * New upstream release. + * KDE_3_3_BRANCH update. + * Remove build-dependency on automake1.9. + + -- Christopher Martin Thu, 16 Dec 2004 14:43:11 -0500 + +kdeaccessibility (3.3.1-1) unstable; urgency=low + + * New upstream release. + * KDE_3_3_BRANCH update. + * Add libxtst-dev to Build-Depends. (Closes: #277197) + + -- Christopher L Cheney Thu, 4 Nov 2004 22:30:00 -0600 + +kdeaccessibility (3.3.0-2) unstable; urgency=low + + * KDE_3_3_BRANCH update. + + -- Christopher L Cheney Sat, 25 Sep 2004 23:00:00 -0500 + +kdeaccessibility (3.3.0-1) unstable; urgency=high + + * New upstream release. + + -- Christopher L Cheney Fri, 13 Aug 2004 22:30:00 -0500 + +kdeaccessibility (3.2.3-1) unstable; urgency=high + + * New upstream release. + + -- Christopher L Cheney Tue, 3 Aug 2004 05:00:00 -0500 + +kdeaccessibility (3.2.2-1) unstable; urgency=low + + * New upstream release. + * debian/*.menu: remove the obsolete kderemove tag. + + -- Christopher L Cheney Sun, 11 Apr 2004 23:00:00 -0500 + +kdeaccessibility (3.2.1-1) unstable; urgency=low + + * New upstream release. + * Added Build-Depends: groff-base. (Closes: #235015) + + -- Christopher L Cheney Fri, 5 Mar 2004 17:00:00 -0600 + +kdeaccessibility (3.2.0-0pre1v1) unstable; urgency=low + + * New upstream release. + + -- Christopher L Cheney Thu, 19 Feb 2004 17:00:00 -0600 + +kdeaccessibility (3.1.95-1) unstable; urgency=low + + * Initial Release. + + -- Christopher L Cheney Fri, 30 Jan 2004 17:00:00 -0600 + --- kdeaccessibility-4.0.83.orig/debian/cdbs/versions.mk +++ kdeaccessibility-4.0.83/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/-.*//') + --- kdeaccessibility-4.0.83.orig/debian/cdbs/control.mk +++ kdeaccessibility-4.0.83/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 --- kdeaccessibility-4.0.83.orig/debian/cdbs/kde.mk +++ kdeaccessibility-4.0.83/debian/cdbs/kde.mk @@ -0,0 +1,109 @@ +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" \ + -DKDE_DEFAULT_HOME=.kde4 \ + -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) --- kdeaccessibility-4.0.83.orig/debian/cdbs/dh_sameversiondeps +++ kdeaccessibility-4.0.83/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/gs) { + 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