1 ################################################################################
3 # emacs.cygclass - functions for installing Emacs lisp files
5 # Part of cygport - Cygwin packaging application
6 # Copyright (C) 2006-2020 Cygport authors
7 # Provided by the Cygwin project <https://cygwin.com/>
9 # cygport is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # cygport is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with cygport. If not, see <https://www.gnu.org/licenses/>.
22 ################################################################################
24 #****h* Cygclasses/emacs.cygclass
26 # Emacs is a programmers' text editor which is extensible through libraries
27 # written in its own Lisp dialect, which is also bytecode compilable.
29 # This cygclass includes helper functions for installing Emacs Lisp (.el)
33 #****d* emacs.cygclass/EMACS
35 # Absolute path to the emacs command.
39 #****d* emacs.cygclass/EMACS_SITE
41 # Path of Emacs' site-lisp directory, where third-party libraries are installed.
43 EMACS_SITE=/usr/share/emacs/site-lisp
45 #****I* emacs.cygclass/doemacs
47 # doemacs FILE [FILE2] ...
49 # Installs one or more Emacs Lisp libraries into EMACS_SITE (under $D).
60 error "file ${i} does not exist"
63 __doinstall 0644 ${i} ${EMACS_SITE} || error "doemacs ${i} failed"
67 # deprecated by auto-compile in postinstall
68 emacs_compile() { :; }