Skip to content

Commit e370a22

Browse files
committed
update build configure flags and deps
1 parent b50aa0c commit e370a22

File tree

2 files changed

+102
-3
lines changed

2 files changed

+102
-3
lines changed

community/emacs/build

Lines changed: 97 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,102 @@
22

33
./configure \
44
--prefix=/usr \
5-
--with-gnutls=no
5+
--sysconfdir=/etc \
6+
--libexecdir=/usr/lib \
7+
--localstatedir=/var \
8+
--with-x-toolkit=athena \
9+
--without-toolkit-scroll-bars \
10+
--with-gnutls=yes \
11+
--with-xft \
12+
--with-modules \
13+
--without-dbus \
14+
--without-gconf \
15+
--without-gsettings \
16+
--without-sound \
17+
--with-xpm=no \
18+
--without-xpm \
19+
--without-jpeg \
20+
--without-tiff \
21+
--without-gif \
22+
--without-png \
23+
--without-rsvg \
24+
--with-imagemagick=yes
25+
26+
mkdir -p "$1/usr/share/emacs/site-lisp"
27+
cat << EOF > "$1/usr/share/emacs/site-lisp/site-start.el"
28+
;; load newest byte code
29+
(setq load-prefer-newer t)
30+
31+
;; garbage collect less often
32+
(setq gc-cons-threshold 100000000)
33+
34+
;; fix ugly
35+
(menu-bar-mode -1)
36+
(tool-bar-mode -1)
37+
(scroll-bar-mode -1)
38+
(horizontal-scroll-bar-mode -1)
39+
40+
;; some better defaults
41+
(show-paren-mode 1)
42+
(setq-default indent-tabs-mode nil
43+
tab-width 8
44+
fill-column 80)
45+
(delete-selection-mode 1)
46+
(prefer-coding-system 'utf-8)
47+
(set-default-coding-systems 'utf-8)
48+
(set-terminal-coding-system 'utf-8)
49+
(set-keyboard-coding-system 'utf-8)
50+
(fset 'yes-or-no-p 'y-or-n-p)
51+
(ido-mode t)
52+
(setq ido-enable-flex-matching t
53+
save-interprogram-paste-before-kill t
54+
apropos-do-all t
55+
mouse-yank-at-point t
56+
require-final-newline t
57+
load-prefer-newer t
58+
ediff-window-setup-function 'ediff-setup-windows-plain)
59+
(global-set-key (kbd "M-/") 'hippie-expand)
60+
(global-set-key (kbd "C-x C-b") 'ibuffer)
61+
(global-set-key (kbd "C-s") 'isearch-forward-regexp)
62+
(global-set-key (kbd "C-r") 'isearch-backward-regexp)
63+
64+
;; no littering
65+
(setq save-place-file (concat user-emacs-directory "places")
66+
backup-directory-alist \`(("." . ,(concat user-emacs-directory
67+
"backups"))))
68+
69+
;; a kiss front-end
70+
(defun kiss ()
71+
"A minimalist front-end to the KISS Linux package manager"
72+
(interactive)
73+
(with-temp-buffer
74+
(if (not (string-match "root@" (pwd)))
75+
(cd (concat "/su:root@"system-name":"default-directory)))
76+
(setq-local
77+
my-read
78+
(read-string "kiss [b|c|i|l|r|s|u] [pkg] [pkg] [pkg] " ""))
79+
(async-shell-command (concat "kiss " my-read "|| echo err $?"))
80+
(delete-other-windows)
81+
(switch-to-buffer "*Async Shell Command*")))
82+
83+
;; optionally allow user to bootstrap straight.el
84+
(defun straight-bootstrap ()
85+
(interactive)
86+
(if (bound-and-true-p use-straight-package)
87+
(progn
88+
(defvar bootstrap-version)
89+
(let ((bootstrap-file
90+
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
91+
(bootstrap-version 5))
92+
(unless (file-exists-p bootstrap-file)
93+
(with-current-buffer
94+
(url-retrieve-synchronously
95+
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
96+
'silent 'inhibit-cookies)
97+
(goto-char (point-max))
98+
(eval-print-last-sexp)))
99+
(load bootstrap-file nil 'nomessage)))
100+
(message "To use this feature use-straight-package cannot be nil")))
101+
EOF
6102

7-
make
8103
make DESTDIR="$1" install

community/emacs/depends

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
ncurses
1+
make
22
zlib
3+
ncurses
4+
libxaw3d
5+
libmagick6
6+
gnutls

0 commit comments

Comments
 (0)