summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Elias Pipping <pipping@exherbo.org> 2013-02-10 17:59:13 +0100
committerAvatar Elias Pipping <pipping@exherbo.org> 2013-02-10 18:02:37 +0100
commit99801d417b311f690a53d1c0eb0cf8a09d1fba3a (patch)
tree9f7ebcb87d35d591554ea502b1018ef3b8a15a0c
parentc567de8040c7f4e798b5f4e7dc0f07651b9c1606 (diff)
downloademacs-99801d417b311f690a53d1c0eb0cf8a09d1fba3a.tar.gz
emacs-99801d417b311f690a53d1c0eb0cf8a09d1fba3a.tar.xz
Fix for DOIs that contain the characters < and >
-rw-r--r--packages/app-emacs/ebib/ebib-1.11.0-r1.exheres-0 (renamed from packages/app-emacs/ebib/ebib-1.11.0.exheres-0)2
-rw-r--r--packages/app-emacs/ebib/files/ebib-doi.patch14
2 files changed, 16 insertions, 0 deletions
diff --git a/packages/app-emacs/ebib/ebib-1.11.0.exheres-0 b/packages/app-emacs/ebib/ebib-1.11.0-r1.exheres-0
index 9c4a2ed..54758a2 100644
--- a/packages/app-emacs/ebib/ebib-1.11.0.exheres-0
+++ b/packages/app-emacs/ebib/ebib-1.11.0-r1.exheres-0
@@ -10,6 +10,8 @@ SLOT="0"
PLATFORMS="~amd64"
MYOPTIONS=""
+DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}"/${PN}-doi.patch )
+
src_install() {
elisp_src_install
elisp-generate-autoload ${PN}-autoloads.el
diff --git a/packages/app-emacs/ebib/files/ebib-doi.patch b/packages/app-emacs/ebib/files/ebib-doi.patch
new file mode 100644
index 0000000..4a6e028
--- /dev/null
+++ b/packages/app-emacs/ebib/files/ebib-doi.patch
@@ -0,0 +1,14 @@
+Source: Elias Pipping <pipping@exherbo.org>
+Upstream: sent to the mailing list
+Reason: DOIs can contain the characters < and >.
+--- a/ebib.el
++++ b/ebib.el
+@@ -198,7 +198,7 @@
+ :group 'ebib
+ :type 'symbol)
+
+-(defcustom ebib-url-regexp "\\\\url{\\(.*\\)}\\|https?://[^ '<>\"\n\t\f]+"
++(defcustom ebib-url-regexp "\\\\url{\\(.*\\)}\\|https?://[^ '\"\n\t\f]+"
+ "*Regular expression to extract urls from a field."
+ :group 'ebib
+ :type 'string)