From owner-freebsd-ports Wed Jan 8 1:37:50 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A96BD37B401 for ; Wed, 8 Jan 2003 01:37:49 -0800 (PST) Received: from eken2.eken.phys.nagoya-u.ac.jp (eken2.eken.phys.nagoya-u.ac.jp [133.6.121.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E17143ED1 for ; Wed, 8 Jan 2003 01:37:47 -0800 (PST) (envelope-from yoichi@eken.phys.nagoya-u.ac.jp) Received: from eken3.eken.phys.nagoya-u.ac.jp (eken3 [133.6.121.3]) by eken2.eken.phys.nagoya-u.ac.jp (8.11.6+3.4W/3.7W-E) with ESMTP id h089bfJ18048; Wed, 8 Jan 2003 18:37:41 +0900 (JST) Date: Wed, 08 Jan 2003 18:37:41 +0900 Message-ID: From: Yoichi NAKAYAMA To: Henrik Motakef Cc: freebsd-ports@FreeBSD.org Subject: Re: How to install Emacs Lisp files? In-Reply-To: <8765t6alwj.fsf@interim.henrik-motakef.de> References: <8765t6alwj.fsf@interim.henrik-motakef.de> User-Agent: Wanderlust/2.10.1 (Watching The Wheels-pre) SEMI/1.14.5 (=?ISO-2022-JP?B?GyRCMDI4NjI5QHQbKEI=?=) FLIM/1.14.5 (=?ISO-2022-JP?B?GyRCPVBELkx4GyhC?=) APEL/10.4 Emacs/21.2 (i686-pc-linux-gnu) MULE/5.0 (=?ISO-2022-JP?B?GyRCOC1MWhsoQg==?=) Organization: E-ken, Dept. of Physics, Nagoya University, JAPAN X-Face: wLZki+KbGjgKe0,<&3g*rA|R**vj[a8L%[v]ecJh1L(Uqm|LBx;v7Nq7n%?0d.aS]F#[~C\!{m?m,C&#U5}$_pZvBR>5VmX1Ol0`P\M-U8`sUF<5Quj'z&zzW8r|Zl9#W7Wut3duYzpKrP{n+AbarKtJ!i"Al7]P;-?[=iBZa*]r=>C':0~JECx]IH+RXq=/hUX}MB9e]oQKBxsDd/ X-Weather: =?ISO-2022-JP?B?GyRCTEBGfCROMCZDTjgpJE9AMiRHJDkbKEI=?= / =?ISO-2022-JP?B?GyRCTEBGfCROOzA9RTgpJE9AMiRHJDkbKEI=?= X-SKK: Daredevil SKK/12.1.0 (Okamachi) MIME-Version: 1.0 (generated by SEMI 1.14.5 - =?ISO-2022-JP?B?IhskQjAyGyhC?= =?ISO-2022-JP?B?GyRCODYyOUB0GyhCIg==?=) Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org At 03 Jan 2003 05:37:48 +0100, Henrik Motakef wrote: > What is the best way to install emacs lisp files for whatever Emacs is > installed? > > I'm looking in a port that includes an elisp file that works with > either GNU Emacs or XEmacs. It is also useful without any Emacs, so > creating a foo-emacs and a foo-xemacs port seems stupid. My idea is > basically to look what Emacsen are installed, and put the elisp file > in their load-path, without adding a dependency on any Emacs. > > As far as I can see, there are PREFIX/share/emacs/site-lisp and > PREFIX/lib/xemacs/site-lisp that are independent of the specific > (X)Emacs version, but is there a convenient way not to have to check > whether one or both of them are already installed? bsd.emacs.mk > doesn't seem to mention something like that, and the chapter in the > porter's handbook isn't too helpful yet ;-) I think there is no need to check since your idea is to add no dependency on Emacsen. See mpg123.el ports etc. as a guide. 1. mkdir -p to create both site-lisp directories 2. install files into one of them 3. create symbolic link Regards, -- Yoichi Nakayama To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message