debian/patches/10-debianlike.dpatch
changeset 515 f396157bbb06
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/debian/patches/10-debianlike.dpatch	Wed Jun 20 10:51:44 2007 +0000
     1.3 @@ -0,0 +1,55 @@
     1.4 +#!/bin/sh -e
     1.5 +## 10-debianlike.dpatch by Steffen Joeris <steffen.joeris@skolelinux.de>
     1.6 +##
     1.7 +## All lines beginning with `## DP:' are a description of the patch.
     1.8 +## DP: Here we make vym debianlike :=)
     1.9 +
    1.10 +if [ $# -lt 1 ]; then
    1.11 +echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    1.12 +exit 1
    1.13 +fi
    1.14 +
    1.15 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
    1.16 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
    1.17 +
    1.18 +case "$1" in
    1.19 +      -patch) patch $patch_opts -p1 < $0;;
    1.20 +      -unpatch) patch $patch_opts -p1 -R < $0;;
    1.21 +      *)
    1.22 +      echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    1.23 +      exit 1;;
    1.24 +esac
    1.25 +
    1.26 +exit 0
    1.27 +
    1.28 +@DPATCH@
    1.29 +--- Makefile.org	2005-08-05 17:37:51.546689964 +0200
    1.30 ++++ vym-1.7.0/Makefile	2005-08-05 17:34:24.950701764 +0200
    1.31 +@@ -172,7 +172,8 @@
    1.32 + 		moc_editxlinkdialog.o
    1.33 + DIST	   = vym.pro
    1.34 + QMAKE_TARGET = vym
    1.35 +-DESTDIR  = 
    1.36 ++DESTDIR  = debian/vym
    1.37 ++INSTALL_ROOT= $(DESTDIR)
    1.38 + TARGET   = vym
    1.39 + 
    1.40 + first: all
    1.41 +@@ -822,13 +823,13 @@
    1.42 + 
    1.43 + 
    1.44 + install_doc: all 
    1.45 +-	@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/share/doc/packages/vym/" || $(MKDIR) "$(INSTALL_ROOT)/usr/share/doc/packages/vym/"
    1.46 +-	-$(INSTALL_FILE) "doc/vym.pdf" "$(INSTALL_ROOT)/usr/share/doc/packages/vym/"
    1.47 ++	@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/share/doc/vym/" || $(MKDIR) "$(INSTALL_ROOT)/usr/share/doc/vym/"
    1.48 ++	-$(INSTALL_FILE) "doc/vym.pdf" "$(INSTALL_ROOT)/usr/share/doc/vym/"
    1.49 + 
    1.50 + 
    1.51 + uninstall_doc: 
    1.52 +-	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/share/doc/packages/vym/vym.pdf"
    1.53 +-	-$(DEL_DIR) "$(INSTALL_ROOT)/usr/share/doc/packages/vym/"
    1.54 ++	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/share/doc/vym/vym.pdf"
    1.55 ++	-$(DEL_DIR) "$(INSTALL_ROOT)/usr/share/doc/vym/"
    1.56 + 
    1.57 + 
    1.58 + install_demo: all