forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sci-mathematics/maxima: Update Emacs support.
Consolidate "emacs" and "latex" USE flags. Remove the non-functional "xemacs" flag. Add a configure option to disable Emacs support in the upstream build system. Bug: 448242 Package-Manager: portage-2.2.26
- Loading branch information
Showing
3 changed files
with
81 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- maxima-5.37.3.orig/configure.ac | ||
+++ maxima-5.37.3/configure.ac | ||
@@ -513,6 +513,17 @@ | ||
fi | ||
fi | ||
|
||
+AC_ARG_ENABLE(emacs, | ||
+ [ --enable-emacs Emacs support], | ||
+ [case "${enableval}" in | ||
+ yes) enable_emacs=true ;; | ||
+ no) enable_emacs=false ;; | ||
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-emacs) ;; | ||
+ esac], | ||
+ [enable_emacs=true]) | ||
+ | ||
+AM_CONDITIONAL(WANT_EMACS, test x$enable_emacs = xtrue) | ||
+ | ||
dnl xgettext | ||
AC_ARG_ENABLE(gettext, | ||
[ --enable-gettext Locale support], | ||
--- maxima-5.37.3.orig/interfaces/Makefile.am | ||
+++ maxima-5.37.3/interfaces/Makefile.am | ||
@@ -1,5 +1,8 @@ | ||
+if WANT_EMACS | ||
+ MAYBE_EMACS = emacs | ||
+endif | ||
if WANT_TK | ||
MAYBE_XMAXIMA = xmaxima | ||
endif | ||
-SUBDIRS = emacs $(MAYBE_XMAXIMA) | ||
+SUBDIRS = $(MAYBE_EMACS) $(MAYBE_XMAXIMA) | ||
EXTRA_DIST = bin/xmaxima.iss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- maxima-5.37.3.orig/configure.ac | ||
+++ maxima-5.37.3/configure.ac | ||
@@ -991,6 +991,11 @@ | ||
[ --with-wish=<prog> Use <prog> for Tk wish shell (default wish)], | ||
- [WISH="${withval}"], | ||
- [WISH="wish"]) | ||
+ [], | ||
+ [with_wish="wish"]) | ||
+case "${with_wish}" in | ||
+ no) WISH="none" ;; | ||
+ yes) WISH="wish" ;; | ||
+ *) WISH="${with_wish}" ;; | ||
+esac | ||
AC_SUBST(WISH) | ||
- | ||
+AM_CONDITIONAL(WANT_TK, test x"${with_wish}" != xno) | ||
|
||
--- maxima-5.37.3.orig/interfaces/Makefile.am | ||
+++ maxima-5.37.3/interfaces/Makefile.am | ||
@@ -1,2 +1,5 @@ | ||
-SUBDIRS = emacs xmaxima | ||
+if WANT_TK | ||
+ MAYBE_XMAXIMA = xmaxima | ||
+endif | ||
+SUBDIRS = emacs $(MAYBE_XMAXIMA) | ||
EXTRA_DIST = bin/xmaxima.iss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters