- Improve compatibility with older Emacsen.

- Mark MAKE_JOBS_SAFE=yes.
- Respect CC and CFLAGS for egg-helper.
This commit is contained in:
Hiroki Sato
2013-05-05 05:23:29 +00:00
parent 577b3c138a
commit d1ab137a46
3 changed files with 31 additions and 9 deletions
+5 -2
View File
@@ -3,7 +3,7 @@
PORTNAME= tamago
PORTVERSION= 4.0.6.0.20041122.19
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= editors elisp
MASTER_SITES= ${MASTER_SITE_DEBIAN}
MASTER_SITE_SUBDIR= pool/main/e/egg
@@ -24,6 +24,7 @@ USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_EMACS= yes
WRKSRC= ${WRKDIR}/egg-4.0.6+0.20041122cvs
MAKE_JOBS_SAFE= yes
PLIST_SUB= ELISPDIR="${EMACS_VERSION_SITE_LISPDIR}"
PORTDOCS= AUTHORS ChangeLog ChangeLog.1997-1998 \
ChangeLog.2000-2001 PROBLEMS README.ja.txt TODO \
@@ -46,7 +47,9 @@ pre-configure:
${WRKSRC}/configure
post-build:
cd ${WRKSRC}/helper && ${MAKE} egg-helper
cd ${WRKSRC}/helper && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${_MAKE_JOBS} ${MAKE_ARGS} egg-helper
${INSTALL_DATA} ${WRKSRC}/debian/changelog ${WRKSRC}/changelog.Debian
${INSTALL_DATA} ${WRKSRC}/debian/README.Debian ${WRKSRC}
+11
View File
@@ -0,0 +1,11 @@
--- /dev/null 2013-05-05 14:11:00.000000000 +0900
+++ helper/Makefile 2013-05-05 14:14:52.000000000 +0900
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+PROG= egg-helper
+SRCS= egg-helper.c
+
+MAN=
+
+.include <bsd.prog.mk>
+15 -7
View File
@@ -1,11 +1,14 @@
--- egg.el.orig 2013-04-23 16:13:43.000000000 +0900
+++ egg.el 2013-04-23 16:15:26.000000000 +0900
@@ -167,16 +167,17 @@
--- egg.el.orig 2013-05-05 14:02:05.000000000 +0900
+++ egg.el 2013-05-05 14:02:05.000000000 +0900
@@ -167,16 +167,22 @@
(setq egg-modefull-mode t)
(its-define-select-keys egg-modefull-map))
(setq egg-modeless-mode t))
- (setq inactivate-current-input-method-function 'egg-mode)
+ (setq deactivate-current-input-method-function 'egg-mode)
+ (set (if (boundp 'deactivate-current-input-method-function)
+ 'deactivate-current-input-method-function
+ 'inactivate-current-input-method-function)
+ 'egg-mode)
(setq describe-current-input-method-function 'egg-help)
- (make-local-hook 'input-method-activate-hook)
+ (if (fboundp 'make-local-hook)
@@ -17,16 +20,21 @@
(defun egg-exit-from-minibuffer ()
- (inactivate-input-method)
+ (deactivate-input-method)
+ (if (boundp 'deactivate-input-method)
+ deactivate-input-method
+ inactivate-input-method)
(if (<= (minibuffer-depth) 1)
(remove-hook 'minibuffer-exit-hook 'egg-exit-from-minibuffer)))
@@ -184,7 +185,7 @@
@@ -184,7 +190,10 @@
(defun egg-self-insert-char ()
(interactive)
- (its-start last-command-char (and (eq last-command 'egg-use-context)
+ (its-start last-command-event (and (eq last-command 'egg-use-context)
+ (its-start (if (boundp 'last-command-event)
+ last-command-event
+ last-command-char)
+ (and (eq last-command 'egg-use-context)
egg-context)))
(defun egg-remove-all-text-properties (from to &optional object)