drop pre-depends, use (fboundp 'debian-pkg-add-load-path-item)
authorHendrik Tews <hendrik@askra.de>
Fri, 11 May 2012 15:43:56 +0000 (17:43 +0200)
committerHendrik Tews <hendrik@askra.de>
Fri, 11 May 2012 15:43:56 +0000 (17:43 +0200)
debian/control
debian/ocaml-mode.emacsen-install
debian/ocaml-mode.emacsen-startup

index 9cdfca9ff6f2a2638839466123db33647ac339b4..cf7add4a52704988f9a6802aea1dc9f81aeb6dbe 100644 (file)
@@ -263,8 +263,6 @@ Description: OCaml interpreter and standard libraries
 
 Package: ocaml-mode
 Architecture: all
-Pre-Depends:
- emacsen-common (>= 1.4.14)
 Depends:
  emacs23 | emacsen,
  ${shlibs:Depends},
index 8aa5eb0e19a22ffff542045919b0e1594d6831ff..b93a9c717cccc4c3a24b22efb8e985f41c6473a2 100644 (file)
@@ -51,7 +51,9 @@ for f in ${FILES} ; do
 done
 
 cat << EOF > path.el
-(debian-pkg-add-load-path-item ".")
+(if (fboundp 'debian-pkg-add-load-path-item)
+    (debian-pkg-add-load-path-item ".")
+  (setq load-path (cons "." load-path)))
 (setq byte-compile-warnings nil)
 EOF
 ${FLAVOR} ${FLAGS} ${FILES}
index e6f01bad61c643f4de90415bf6a09cf84cea92a4..dd22fe607b32a264bd270af3bc06dfcbd9ebbd62 100644 (file)
@@ -17,7 +17,9 @@
 ;; If package-dir does not exist, the #PACKAGE# package must have
 ;; removed but not purged, and we should skip the setup.
   (when (file-directory-p package-dir)
-    (debian-pkg-add-load-path-item package-dir)
+    (if (fboundp 'debian-pkg-add-load-path-item)
+       (debian-pkg-add-load-path-item package-dir)
+      (setq load-path (cons package-dir load-path)))
     (setq auto-mode-alist
           (cons '("\\.ml[iylp]?\\'" . caml-mode) auto-mode-alist))
     (autoload 'caml-mode "caml" "Major mode for editing Caml code." t)