diff -r 000000000000 -r f2aab2a9b6cb debian/patches/10-debianlike.dpatch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/patches/10-debianlike.dpatch Mon Oct 22 09:50:03 2007 +0000 @@ -0,0 +1,55 @@ +#!/bin/sh -e +## 10-debianlike.dpatch by Steffen Joeris +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Here we make vym debianlike :=) + +if [ $# -lt 1 ]; then +echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" +exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ +--- Makefile.org 2005-08-05 17:37:51.546689964 +0200 ++++ vym-1.7.0/Makefile 2005-08-05 17:34:24.950701764 +0200 +@@ -172,7 +172,8 @@ + moc_editxlinkdialog.o + DIST = vym.pro + QMAKE_TARGET = vym +-DESTDIR = ++DESTDIR = debian/vym ++INSTALL_ROOT= $(DESTDIR) + TARGET = vym + + first: all +@@ -822,13 +823,13 @@ + + + install_doc: all +- @$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/share/doc/packages/vym/" || $(MKDIR) "$(INSTALL_ROOT)/usr/share/doc/packages/vym/" +- -$(INSTALL_FILE) "doc/vym.pdf" "$(INSTALL_ROOT)/usr/share/doc/packages/vym/" ++ @$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/share/doc/vym/" || $(MKDIR) "$(INSTALL_ROOT)/usr/share/doc/vym/" ++ -$(INSTALL_FILE) "doc/vym.pdf" "$(INSTALL_ROOT)/usr/share/doc/vym/" + + + uninstall_doc: +- -$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/share/doc/packages/vym/vym.pdf" +- -$(DEL_DIR) "$(INSTALL_ROOT)/usr/share/doc/packages/vym/" ++ -$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/share/doc/vym/vym.pdf" ++ -$(DEL_DIR) "$(INSTALL_ROOT)/usr/share/doc/vym/" + + + install_demo: all