From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/19794 Path: main.gmane.org!not-for-mail From: Karl Eichwalder Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] Non-standard lispdir Date: 10 Dec 1998 22:09:16 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 X-Trace: main.gmane.org 1035158079 13414 80.91.224.250 (20 Oct 2002 23:54:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:54:39 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id QAA18261 for ; Thu, 10 Dec 1998 16:27:42 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@sina.hpc.uh.edu [129.7.3.5]) by gizmo.hpc.uh.edu (8.9.1/8.9.1) with ESMTP id PAA24308; Thu, 10 Dec 1998 15:26:28 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 10 Dec 1998 15:26:33 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id PAA25927 for ; Thu, 10 Dec 1998 15:26:18 -0600 (CST) Original-Received: from chico.franken.de (dns.franken.de [193.175.24.33]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id QAA18227 for ; Thu, 10 Dec 1998 16:25:59 -0500 (EST) Original-Received: from gnu.UUCP by chico.franken.de with UUCP (Smail3.2 #2) id m0zoDaY-005CGuC; Thu, 10 Dec 1998 22:25:34 +0100 (MET) Original-Received: from luna.gnu.franken.de ([192.168.1.1]) by gnu.franken.de with smtp (ident root using rfc1413) id (Smail 3.1.29.1); Thu, 10 Dec 98 22:03 MET Original-Received: by luna.gnu.franken.de id (Smail-3.2 1996-Jul-4 #1); Thu, 10 Dec 1998 22:09:20 +0100 (MET) Original-To: Lloyd Zusman In-Reply-To: Lloyd Zusman's message of "09 Dec 1998 23:20:12 -0500" User-Agent: Gnus/5.070063 (Pterodactyl Gnus v0.63) Emacs/20.3 Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 81 Xref: main.gmane.org gmane.emacs.gnus.general:19794 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:19794 Lloyd Zusman writes: | Thanks ... I very much appreciate this information. :) Okay, but I've to admit that I forgot to check the m4 marcos for detection (X)Emacs... | Well, it looks like I'd have make use of a customized AC_INIT macro in order | to add a --lispdir argument to the Gnus `configure.in' script Yes, kind of, at least. | > make lispdir=/usr/share/emacs/site-lisp/gnus | > make lispdir=/usr/share/emacs/site-lisp/gnus install | Yes ... I know I can do this, but I was hoping to make this part of | `configure' so I only have to type the lisp directory once (during | initial configuration), and then call `make' as follows: As you know, the simpliest ad hoc solution would be to write a small shell script. As an RPM package maker I can tell you that it's important to have both place to specify the directories, since RPM has the nice feature to install the compiled files under a different directory (RPM_BUILD_ROOT); using RPM_BUILD_ROOT e.g., it's easy to write a file list (%files). For interested parties, here's my spec file: Summary: Pterodactyl Gnus (development version) Name: pgnus %define version 0.65 Version: %{version} Release: 1 Copyright: GNU General Public License Group: Emacs Source: pgnus-%{version}.tar.gz Patch: pgnus.dif BuildRoot: /var/tmp/gnus-root %description Pterodactyl Gnus %define INSTALL install -m755 -s %define INSTALL_DIR install -d -m755 %define INSTALL_DATA install -m644 %prep %setup -n $RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION # %patch -p1 ./configure --prefix=/usr %build make lispdir="/usr/share/emacs/site-lisp/gnus" %install if [ ! "x" = "x$RPM_BUILD_ROOT" ] ; then rm -fr $RPM_BUILD_ROOT %{INSTALL_DIR} $RPM_BUILD_ROOT fi # install .el files first %{INSTALL_DIR} $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/gnus %{INSTALL_DATA} lisp/*.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/gnus make prefix="$RPM_BUILD_ROOT/usr" \ lispdir="$RPM_BUILD_ROOT/usr/share/emacs/site-lisp/gnus" install gzip -f $RPM_BUILD_ROOT/usr/info/* rm -f $RPM_BUILD_ROOT/usr/info/dir.gz if [ -x /usr/sbin/Check ] ; then /usr/sbin/Check fi %clean # rm -fr $RPM_BUILD_ROOT %files %attr(-,root,root) %doc GNUS-NEWS README %attr(-,root,root) /usr/share/emacs/site-lisp/gnus %attr(-,root,root) /usr/info/* -- Karl Eichwalder