1 |
aidecoe 11/11/02 15:30:50 |
2 |
|
3 |
Added: 0.9-fix-lib-makefile-local.patch |
4 |
50notmuch-gentoo.el 0.9-emacsetcdir.patch |
5 |
Log: |
6 |
Moved from app-text/notmuch to net-mail/notmuch. |
7 |
|
8 |
(Portage version: 2.1.10.31/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 net-mail/notmuch/files/0.9-fix-lib-makefile-local.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/notmuch/files/0.9-fix-lib-makefile-local.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/notmuch/files/0.9-fix-lib-makefile-local.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: 0.9-fix-lib-makefile-local.patch |
17 |
=================================================================== |
18 |
From 42ba9b5456567686c77acbac716982e21a154172 Mon Sep 17 00:00:00 2001 |
19 |
From: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= <aidecoe@×××××××.name> |
20 |
Date: Sun, 23 Oct 2011 16:24:36 +0200 |
21 |
Subject: [PATCH] Prefix lib/notmuch.h and lib/gen-version-script.sh with |
22 |
$(srcdir) |
23 |
|
24 |
lib/notmuch.h and lib/gen-version-script.sh couldn't have been found |
25 |
when building out of sources directory. |
26 |
--- |
27 |
lib/Makefile.local | 13 +++++++------ |
28 |
1 files changed, 7 insertions(+), 6 deletions(-) |
29 |
|
30 |
diff --git a/lib/Makefile.local b/lib/Makefile.local |
31 |
index ea20b2b..be51eaa 100644 |
32 |
--- a/lib/Makefile.local |
33 |
+++ b/lib/Makefile.local |
34 |
@@ -41,6 +41,11 @@ endif |
35 |
dir := lib |
36 |
extra_cflags += -I$(srcdir)/$(dir) -fPIC |
37 |
|
38 |
+# The (often-reused) $dir works fine within targets/prerequisites, |
39 |
+# but cannot be used reliably within commands, so copy its value to a |
40 |
+# variable that is not reused. |
41 |
+lib := $(dir) |
42 |
+ |
43 |
libnotmuch_c_srcs = \ |
44 |
$(notmuch_compat_srcs) \ |
45 |
$(dir)/filenames.c \ |
46 |
@@ -68,8 +73,8 @@ $(dir)/libnotmuch.a: $(libnotmuch_modules) |
47 |
$(dir)/$(LIBNAME): $(libnotmuch_modules) notmuch.sym |
48 |
$(call quiet,CXX $(CXXFLAGS)) $(libnotmuch_modules) $(FINAL_LIBNOTMUCH_LDFLAGS) $(LIBRARY_LINK_FLAG) -o $@ |
49 |
|
50 |
-notmuch.sym: lib/notmuch.h $(libnotmuch_modules) |
51 |
- sh lib/gen-version-script.sh $< $(libnotmuch_modules) > $@ |
52 |
+notmuch.sym: $(srcdir)/$(dir)/notmuch.h $(libnotmuch_modules) |
53 |
+ sh $(srcdir)/$(lib)/gen-version-script.sh $< $(libnotmuch_modules) > $@ |
54 |
|
55 |
$(dir)/$(SONAME): $(dir)/$(LIBNAME) |
56 |
ln -sf $(LIBNAME) $@ |
57 |
@@ -79,10 +84,6 @@ $(dir)/$(LINKER_NAME): $(dir)/$(SONAME) |
58 |
|
59 |
install: install-$(dir) |
60 |
|
61 |
-# The (often-reused) $dir works fine within targets/prerequisites, |
62 |
-# but cannot be used reliably within commands, so copy its value to a |
63 |
-# variable that is not reused. |
64 |
-lib := $(dir) |
65 |
install-$(dir): $(dir)/$(LIBNAME) |
66 |
mkdir -p "$(DESTDIR)$(libdir)/" |
67 |
install -m0644 "$(lib)/$(LIBNAME)" "$(DESTDIR)$(libdir)/" |
68 |
-- |
69 |
1.7.7 |
70 |
|
71 |
|
72 |
|
73 |
|
74 |
1.1 net-mail/notmuch/files/50notmuch-gentoo.el |
75 |
|
76 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/notmuch/files/50notmuch-gentoo.el?rev=1.1&view=markup |
77 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/notmuch/files/50notmuch-gentoo.el?rev=1.1&content-type=text/plain |
78 |
|
79 |
Index: 50notmuch-gentoo.el |
80 |
=================================================================== |
81 |
(add-to-list 'load-path "@SITELISP@") |
82 |
(if (boundp 'image-load-path) |
83 |
(add-to-list 'image-load-path "@SITEETC@" t)) |
84 |
(autoload 'notmuch "notmuch" nil t) |
85 |
(autoload 'notmuch-search "notmuch" nil t) |
86 |
(autoload 'notmuch-hello "notmuch-hello" nil t) |
87 |
(autoload 'notmuch-show "notmuch-show" nil t) |
88 |
|
89 |
|
90 |
|
91 |
1.1 net-mail/notmuch/files/0.9-emacsetcdir.patch |
92 |
|
93 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/notmuch/files/0.9-emacsetcdir.patch?rev=1.1&view=markup |
94 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/notmuch/files/0.9-emacsetcdir.patch?rev=1.1&content-type=text/plain |
95 |
|
96 |
Index: 0.9-emacsetcdir.patch |
97 |
=================================================================== |
98 |
From 38375cefb708081eab7e7c928dcb85a1d68da6f1 Mon Sep 17 00:00:00 2001 |
99 |
From: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= <aidecoe@×××××××.name> |
100 |
Date: Mon, 24 Oct 2011 20:26:27 +0200 |
101 |
Subject: [PATCH] Separate Emacs miscellaneous files directory from Emacs code |
102 |
directory. |
103 |
|
104 |
--emacsetcdir was added, but it's set default to the same value as |
105 |
--emacslispdir for backward compatibility. |
106 |
--- |
107 |
configure | 14 ++++++++++++++ |
108 |
emacs/Makefile.local | 3 ++- |
109 |
2 files changed, 16 insertions(+), 1 deletions(-) |
110 |
|
111 |
diff --git a/configure b/configure |
112 |
index 3999ce8..37c0283 100755 |
113 |
--- a/configure |
114 |
+++ b/configure |
115 |
@@ -97,6 +97,7 @@ Fine tuning of some installation directories is available: |
116 |
--mandir=DIR Install man pages to DIR [PREFIX/share/man] |
117 |
--sysconfdir=DIR Read-only single-machine data [PREFIX/etc] |
118 |
--emacslispdir=DIR Emacs code [PREFIX/share/emacs/site-lisp] |
119 |
+ --emacsetcdir=DIR Emacs miscellaneous files [PREFIX/share/emacs/site-lisp] |
120 |
--bashcompletiondir=DIR Bash completions files [SYSCONFDIR/bash_completion.d] |
121 |
--zshcompletiondir=DIR Zsh completions files [PREFIX/share/zsh/functions/Completion/Unix] |
122 |
|
123 |
@@ -139,6 +140,8 @@ for option; do |
124 |
SYSCONFDIR="${option#*=}" |
125 |
elif [ "${option%%=*}" = '--emacslispdir' ] ; then |
126 |
EMACSLISPDIR="${option#*=}" |
127 |
+ elif [ "${option%%=*}" = '--emacsetcdir' ] ; then |
128 |
+ EMACSETCDIR="${option#*=}" |
129 |
elif [ "${option%%=*}" = '--bashcompletiondir' ] ; then |
130 |
BASHCOMPLETIONDIR="${option#*=}" |
131 |
elif [ "${option%%=*}" = '--zshcompletiondir' ] ; then |
132 |
@@ -330,6 +333,14 @@ if [ -z "${EMACSLISPDIR}" ]; then |
133 |
fi |
134 |
fi |
135 |
|
136 |
+if [ -z "${EMACSETCDIR}" ]; then |
137 |
+ if pkg-config --exists emacs; then |
138 |
+ EMACSETCDIR=$(pkg-config emacs --variable sitepkglispdir) |
139 |
+ else |
140 |
+ EMACSETCDIR='$(prefix)/share/emacs/site-lisp' |
141 |
+ fi |
142 |
+fi |
143 |
+ |
144 |
printf "Checking if emacs is available... " |
145 |
if emacs --quick --batch > /dev/null 2>&1; then |
146 |
printf "Yes.\n" |
147 |
@@ -614,6 +625,9 @@ sysconfdir = ${SYSCONFDIR:=\$(prefix)/etc} |
148 |
# The directory to which emacs lisp files should be installed |
149 |
emacslispdir=${EMACSLISPDIR} |
150 |
|
151 |
+# The directory to which emacs lisp files should be installed |
152 |
+emacsetcdir=${EMACSETCDIR} |
153 |
+ |
154 |
# Whether there's an emacs binary available for byte-compiling |
155 |
HAVE_EMACS = ${have_emacs} |
156 |
|
157 |
diff --git a/emacs/Makefile.local b/emacs/Makefile.local |
158 |
index ce0c3f0..0c58b82 100644 |
159 |
--- a/emacs/Makefile.local |
160 |
+++ b/emacs/Makefile.local |
161 |
@@ -38,6 +38,7 @@ install-emacs: |
162 |
ifeq ($(HAVE_EMACS),1) |
163 |
install -m0644 $(emacs_bytecode) "$(DESTDIR)$(emacslispdir)" |
164 |
endif |
165 |
- install -m0644 $(emacs_images) "$(DESTDIR)$(emacslispdir)" |
166 |
+ mkdir -p "$(DESTDIR)$(emacsetcdir)" |
167 |
+ install -m0644 $(emacs_images) "$(DESTDIR)$(emacsetcdir)" |
168 |
|
169 |
CLEAN := $(CLEAN) $(emacs_bytecode) |
170 |
-- |
171 |
1.7.7.1 |