From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C6D3B429E26 for ; Tue, 25 Oct 2011 01:07:38 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oQgW5T5ABlsn for ; Tue, 25 Oct 2011 01:07:38 -0700 (PDT) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 109FF431FB6 for ; Tue, 25 Oct 2011 01:07:37 -0700 (PDT) Received: by faai28 with SMTP id i28so277878faa.26 for ; Tue, 25 Oct 2011 01:07:35 -0700 (PDT) Received: by 10.223.7.20 with SMTP id b20mr13477733fab.21.1319530055315; Tue, 25 Oct 2011 01:07:35 -0700 (PDT) Received: from localhost (absy23.neoplus.adsl.tpnet.pl. [83.8.144.23]) by mx.google.com with ESMTPS id u6sm47752832fan.17.2011.10.25.01.07.33 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 25 Oct 2011 01:07:34 -0700 (PDT) From: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= To: notmuch@notmuchmail.org Subject: [PATCH] Separate Emacs misc. files dir. from Emacs code dir. Date: Tue, 25 Oct 2011 10:07:02 +0200 Message-Id: <1319530022-8040-1-git-send-email-aidecoe@aidecoe.name> X-Mailer: git-send-email 1.7.7.1 In-Reply-To: <87vcrdh7df.fsf@thor.loria.fr> References: <87vcrdh7df.fsf@thor.loria.fr> Cc: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2011 08:07:38 -0000 New option --emacsetcdir was added, but it's set default to the same value as --emacslispdir for backward compatibility. --- configure | 15 +++++++++++++++ emacs/Makefile.local | 3 ++- 2 files changed, 17 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 3999ce8..e90b76f 100755 --- a/configure +++ b/configure @@ -97,6 +97,7 @@ Fine tuning of some installation directories is available: --mandir=DIR Install man pages to DIR [PREFIX/share/man] --sysconfdir=DIR Read-only single-machine data [PREFIX/etc] --emacslispdir=DIR Emacs code [PREFIX/share/emacs/site-lisp] + --emacsetcdir=DIR Emacs miscellaneous files [PREFIX/share/emacs/site-lisp] --bashcompletiondir=DIR Bash completions files [SYSCONFDIR/bash_completion.d] --zshcompletiondir=DIR Zsh completions files [PREFIX/share/zsh/functions/Completion/Unix] @@ -139,6 +140,8 @@ for option; do SYSCONFDIR="${option#*=}" elif [ "${option%%=*}" = '--emacslispdir' ] ; then EMACSLISPDIR="${option#*=}" + elif [ "${option%%=*}" = '--emacsetcdir' ] ; then + EMACSETCDIR="${option#*=}" elif [ "${option%%=*}" = '--bashcompletiondir' ] ; then BASHCOMPLETIONDIR="${option#*=}" elif [ "${option%%=*}" = '--zshcompletiondir' ] ; then @@ -330,6 +333,14 @@ if [ -z "${EMACSLISPDIR}" ]; then fi fi +if [ -z "${EMACSETCDIR}" ]; then + if pkg-config --exists emacs; then + EMACSETCDIR=$(pkg-config emacs --variable sitepkglispdir) + else + EMACSETCDIR='$(prefix)/share/emacs/site-lisp' + fi +fi + printf "Checking if emacs is available... " if emacs --quick --batch > /dev/null 2>&1; then printf "Yes.\n" @@ -614,6 +625,10 @@ sysconfdir = ${SYSCONFDIR:=\$(prefix)/etc} # The directory to which emacs lisp files should be installed emacslispdir=${EMACSLISPDIR} +# The directory to which emacs miscellaneous (machine-independent) files should +# be installed +emacsetcdir=${EMACSETCDIR} + # Whether there's an emacs binary available for byte-compiling HAVE_EMACS = ${have_emacs} diff --git a/emacs/Makefile.local b/emacs/Makefile.local index ce0c3f0..0c58b82 100644 --- a/emacs/Makefile.local +++ b/emacs/Makefile.local @@ -38,6 +38,7 @@ install-emacs: ifeq ($(HAVE_EMACS),1) install -m0644 $(emacs_bytecode) "$(DESTDIR)$(emacslispdir)" endif - install -m0644 $(emacs_images) "$(DESTDIR)$(emacslispdir)" + mkdir -p "$(DESTDIR)$(emacsetcdir)" + install -m0644 $(emacs_images) "$(DESTDIR)$(emacsetcdir)" CLEAN := $(CLEAN) $(emacs_bytecode) -- 1.7.7.1