[pkg-kde-commits] rev 2607 - trunk/packages/kdeaddons/debian

Christopher Martin chrsmrtn at costa.debian.org
Fri Dec 9 17:27:08 UTC 2005


Author: chrsmrtn
Date: 2005-12-09 17:27:07 +0000 (Fri, 09 Dec 2005)
New Revision: 2607

Modified:
   trunk/packages/kdeaddons/debian/rules
Log:
Totally new cdbs debian/rules. Note the mediacontrol_panelapplet hack
to remove the xmms dependency.


Modified: trunk/packages/kdeaddons/debian/rules
===================================================================
--- trunk/packages/kdeaddons/debian/rules	2005-12-09 17:26:16 UTC (rev 2606)
+++ trunk/packages/kdeaddons/debian/rules	2005-12-09 17:27:07 UTC (rev 2607)
@@ -1,252 +1,43 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+include /usr/share/cdbs/1/rules/debhelper.mk
+include debian/cdbs/debian-qt-kde.mk
+include debian/cdbs/simple-patchsys.mk
+include /usr/share/cdbs/1/rules/utils.mk
 
-# This has to be exported to make some magic below work.
-export DH_OPTIONS
+DEB_DH_STRIP_ARGS := --dbg-package=kdeaddons-dbg
 
-# 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)
+DOC_HTML_PRUNE := konq-plugins/smbmounter
 
-INSTALL_DIR = install -p -d -o root -g root -m 755
-INSTALL_FILE = install -p -o root -g root -m 644
+DEB_DH_SHLIBDEPS_ARGS := -Xmediacontrol_panelapplet
 
-objdir = $(CURDIR)/obj-$(DEB_BUILD_GNU_TYPE)
-
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -g
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-	INSTALL_PROGRAM += -s
-endif
-
-ifeq ($(DEB_BUILD_GNU_TYPE),i386-linux)
-  # Uncomment the following 2 lines to enable i686 optimziation
-  # You may want to tweak the settings to your likings
-  #export CFLAGS=-O3 -march=i686 -ffast-math -finline-functions
-  #export CXXFLAGS=-O3 -march=i686 -ffast-math -finline-functions
-endif
-
 ###
 
 GCC4_ICES_HERE := arm m68k hppa
-DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
+DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
-ifneq (,$(filter $(DEB_HOST_ARCH_CPU),$(GCC4_ICES_HERE)))
-	export CC=gcc-3.4
-	export CPP=cpp-3.4
-	export CXX=g++-3.4
+ifneq (,$(findstring $(DEB_BUILD_ARCH),$(GCC4_ICES_HERE)))
+    export CC=gcc-3.4
+    export CPP=cpp-3.4
+    export CXX=g++-3.4
 endif
 
 ###
 
--include debian/debiandirs
+binary-install/konq-plugins::
+	mv -f debian/konq-plugins/usr/share/man/py/man1/exif.1 \
+		debian/konq-plugins/usr/share/man/man1/exif.py.1; \
+	mv -f debian/konq-plugins/usr/share/man/py/man1/orient.1 \
+		debian/konq-plugins/usr/share/man/man1/orient.py.1; \
+	rm -rf debian/konq-plugins/usr/share/man/py;
 
-debian/debiandirs: admin/debianrules
-	perl -w admin/debianrules echodirs > debian/debiandirs
+binary-install/kdeaddons-kfile-plugins::
+	install -p -D -m644 renamedlgplugins/README \
+		debian/kdeaddons-kfile-plugins/usr/share/doc/kdeaddons-kfile-plugins/README.renamedlgplugins
 
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
+binary-install/knewsticker-scripts::
+	chmod 755 debian/knewsticker-scripts/usr/share/apps/knewsticker/scripts/*.pl
+	chmod 755 debian/knewsticker-scripts/usr/share/apps/knewsticker/scripts/*.py
 
-	# Make absolutely sure these aren't left around from the .orig.tar.gz.
-	-rm -f debian/patches/db++.diff
-	-rm -f debian/atlantikdesigner.override
-	-rm -f debian/konq-plugins.override
-	-rm -f debian/ksig.override
-
-	# Apply Debian specific patches
-	if test ! -f patch-stamp; then \
-		for patch in $(CURDIR)/debian/patches/*.diff ;\
-		do \
-			echo APPLYING PATCH\: $${patch##*/};\
-			patch -p1 < $$patch ;\
-		done ;\
-		touch patch-stamp ;\
-	fi
-
-	# KDE CVS does not have aclocal.m4 or configure
-	# if test ! -f configure; then \
-	# 	$(MAKE) -f admin/Makefile.common ;\
-	# fi
-
-	# Force a rerun of automake/etc since this is required by the
-	# debian patches.
-	$(MAKE) -f admin/Makefile.common ;\
-
-	# ensure configure is executable
-	chmod +x configure
-
-	# make build directory
-	mkdir $(objdir)
-
-	# run configure with build tree $(objdir)
-	cd $(objdir) && \
-	../configure $(configkde) 
-
-	touch configure-stamp
-
-build: build-stamp
-build-stamp: configure-stamp 
-	dh_testdir
-
-	cd $(objdir) && \
-	$(MAKE)
-
-	touch build-stamp
-
-debian-clean:
-	dh_testdir
-	dh_testroot
-
-	dh_clean
-
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp configure-stamp debian/debiandirs
-
-	# Remove Debian specific patches
-	if test -f patch-stamp; then \
-		for patch in $(CURDIR)/debian/patches/*.diff ;\
-		do \
-			echo REMOVING PATCH\: $${patch##*/};\
-			patch -p1 -R < $$patch ;\
-		done ;\
-		rm -f patch-stamp ;\
-	fi
-
-	# Remove build tree
-	rm -rf $(objdir)
-
-	# if Makefile exists run distclean
-	if test -f Makefile; then \
-		$(MAKE) distclean; \
-	fi
-
-	# if test -d CVS; then \
-	# 	$(MAKE) -f admin/Makefile.common cvs-clean ;\
-	# fi
-
-	dh_clean
-
-install: DH_OPTIONS=
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs
-
-	cd $(objdir) && \
-	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
-
-	# Fix the knewsticker-scripts installation.
-	chmod 755 debian/tmp/usr/share/apps/knewsticker/scripts/*.pl
-	chmod 755 debian/tmp/usr/share/apps/knewsticker/scripts/*.py
-
-	# Generate HTML docs.
-	for i in `find debian/tmp -name "index.docbook"`; do \
-	  ( cd `dirname $$i`; meinproc `basename $$i` ); \
-	done
-
-	# Install miscellaneous docs.
-	$(INSTALL_DIR) debian/tmp/usr/share/doc/kdeaddons-kfile-plugins
-	$(INSTALL_FILE) renamedlgplugins/README \
-	  debian/tmp/usr/share/doc/kdeaddons-kfile-plugins/README.renamedlgplugins
-
-	# Split into separate binary packages.
-	dh_install --list-missing \
-	  -Xusr/share/doc/kde/HTML/en/konq-plugins/smbmounter/
-
-	# Install standard documentation links.
-	for pkg in `dh_listpackages`; do \
-	  if test -d debian/$$pkg/usr/share/doc/kde/HTML/en/$$pkg; then \
-	    dh_link -p$$pkg usr/share/doc/kde/HTML/en/$$pkg \
-	      usr/share/doc/$$pkg/html; \
-	  fi; \
-	done
-
-	# Install lintian and linda overrides.
-	for pkg in `dh_listpackages`; do \
-	  if test -e debian/$$pkg.override; then \
-	    $(INSTALL_DIR) debian/$$pkg/usr/share/lintian/overrides; \
-	    $(INSTALL_FILE) debian/$$pkg.override \
-	      debian/$$pkg/usr/share/lintian/overrides/$$pkg; \
-	  fi; \
-	  if test -e debian/$$pkg.linda; then \
-	    $(INSTALL_DIR) debian/$$pkg/usr/share/linda/overrides; \
-	    $(INSTALL_FILE) debian/$$pkg.linda \
-	      debian/$$pkg/usr/share/linda/overrides/$$pkg; \
-	  fi; \
-	done
-
-# This single target is used to build all the packages, all at once, or
-# one at a time. So keep in mind: any options passed to commands here will
-# affect _all_ packages. Anything you want to only affect one package
-# should be put in another target, such as the install target.
-binary-common:
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs
-	dh_installdocs
-	dh_installexamples
-	dh_installman
-	dh_installmenu
-	dh_installmime
-
-	# Move some incorrectly installed man pages.
-	for pkg in `dh_listpackages`; do \
-	  case "$$pkg" in \
-	    konq-plugins ) \
-	      mv debian/konq-plugins/usr/share/man/py/man1/exif.1 \
-	        debian/konq-plugins/usr/share/man/man1/exif.py.1; \
-	      mv debian/konq-plugins/usr/share/man/py/man1/orient.1 \
-	        debian/konq-plugins/usr/share/man/man1/orient.py.1; \
-	      rm -rf debian/konq-plugins/usr/share/man/py; \
-	    ;; \
-	  esac; \
-	done
-
-	dh_strip
-	dh_link
-	dh_compress -X.docbook -X.css -X-license -X.dcl -X.bz2
-	dh_fixperms
-	dh_makeshlibs -V
-	dh_installdeb
-	dh_perl
-
-	# Run dh_shlibdeps with package-specific library search paths.
-	for pkg in `dh_listpackages`; do \
-	  echo "Checking dependencies for $$pkg..."; \
-	  case "$$pkg" in \
-	    vimpart ) \
-	      DH_OPTIONS='' dh_shlibdeps -p$$pkg \
-	        -ldebian/$$pkg/usr/lib:debian/$$pkg/usr/lib/kde3 ;; \
-	    * ) \
-	      DH_OPTIONS='' dh_shlibdeps -p$$pkg ;; \
-	  esac; \
-	done
-
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-# Build architecture independant packages using the common target.
-binary-indep: build install
-	$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
-
-# Build architecture dependant packages using the common target.
-binary-arch: build install
-	$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
-
-# Any other binary targets build just one binary package at a time.
-binary-%: build install
-	$(MAKE) -f debian/rules binary-common DH_OPTIONS=-p$*
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+binary-install/kate-plugins::
+	chmod 755 debian/kate-plugins/usr/share/apps/kate/scripts/html-tidy.sh




More information about the pkg-kde-commits mailing list