From owner-freebsd-ports Sat Aug 28 11: 8:48 1999 Delivered-To: freebsd-ports@freebsd.org Received: from mta3.odn.ne.jp (mta3.odn.ne.jp [143.90.131.70]) by hub.freebsd.org (Postfix) with ESMTP id CE10C14CFC; Sat, 28 Aug 1999 11:08:32 -0700 (PDT) (envelope-from shigeisp@pop02.odn.ne.jp) Received: from dione.shige.org (KUNcc-01p38.ppp.odn.ad.jp [143.90.235.38]) by mta3.odn.ne.jp (8.8.8+2.7Wbeta7/3.6W/9808281335) with ESMTP id DAA04900; Sun, 29 Aug 1999 03:06:24 +0900 (JST) To: hetzels@westbend.net Cc: jseger@FreeBSD.ORG, ports@FreeBSD.ORG, asami@FreeBSD.ORG Subject: Re: emacs-XX From: Shigeyuki Fukushima In-Reply-To: <02cf01bef0ea$a8aee400$8dfee0d1@westbend.net> References: <19990822212722W.shige@shige.org> <02cf01bef0ea$a8aee400$8dfee0d1@westbend.net> X-Mailer: Mew version 1.94b50 on Emacs 20.4 / Mule 4.0 =?iso-2022-jp?B?KBskQjJWMWMbKEIp?= X-URL: http://www.freebsd.org/~shige/ Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Sun_Aug_29_02:56:48_1999_661)--" Content-Transfer-Encoding: 7bit Message-Id: <19990829030336Q.shige@shige.org> Date: Sun, 29 Aug 1999 03:03:36 +0900 X-Dispatcher: imput version 990816(IM121) Lines: 162 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org ----Next_Part(Sun_Aug_29_02:56:48_1999_661)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: "Scot W. Hetzel" Subject: Re: emacs-XX Date: Fri, 27 Aug 1999 19:17:04 -0500 Hello. hetzels> I had a look at your emacs.inc file, and I propose the changes in the hetzels> attached emacs.inc. hetzels> Basically, I moved all the EMACS_CMD, EMACS_LIBDOIR, & hetzels> EMACS_LIBDOIR_WITH_VER assignments after the second "if" statement. Sorry, s/LIBDOIR/LIBDIR/ . This EMACS_LIBDIR(_WITH_VER) is useful for describing site-lisp directories, and so on. For example, Makefile in some emacs-lisp port, PLIST_SUB= SITELISP_DIR=${EMACS_LIBDIR}/site-lisp \ SITELISP_DIR_WITH_VER=${EMACS_LIBDIR_WITH_VER}/site-lisp PLIST in this port. %%SITELISP_DIR%%/foo.el %%SITELISP_DIR%%/foo.elc %%SITELISP_DIR_WITH_VER%%/version-specific-foo.el %%SITELISP_DIR_WITH_VER%%/version-specific-foo.elc In this usage, EMACS_LIBDIR for all emacsen cannot be defined by common description. For emacs, EMACS_LIBDIR is share/emacs. ~~~~~ On the other hand, for xemacs, EMACS_LIBDIR is lib/xemacs. ~~~ Therefore EMACS_LIBDIR and EMACS_LIBDIR_WITH_VER must be in the second if clause. Since EMACS_CMD is defined by common description, EMACS_CMD assignments after the second "if" statement is ok. *** I attached newly emacs.inc in this mail. # Change: # . Correct spelling mistake and EMACS_LIBDIR_WITH_VER for xemacs/xemacs20 # . Add EMACS_MAJOR_VER variable # . Scot's modificaton for EMACS_CMD # I proposed 2-ways how to apply this additional include file (emacs.inc) to the current ports tree: a.) ${PORTSDIR}/Mk/bsd.port.emacs.mk b.) ${PORTSDIR}/editors/emacs.inc Which do you like? # I like a-way. :) Thanks. --- shige@FreeBSD.org ----Next_Part(Sun_Aug_29_02:56:48_1999_661)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="emacs.inc" #-*- mode: Fundamental; tab-width: 4; -*- # ex:ts=4 # # $FreeBSD: $ # $NetBSD: $ # # emacs.inc - 19990829 Shigeyuki Fukushima. # This file is in the public domain. # # Please view me with 4 column tabs! # Emacs_Include= bsd.port.emacs.mk Emacs_Include_MAINTAINER= shige@FreeBSD.org # # This file for ports which depend on emacs family. # Please include this file in such port's Makefile. # .include # .if defined(EMACS_PORT_NAME) # Definitions for Emacs-19.x .if (${EMACS_PORT_NAME} == "emacs") EMACS_NAME= emacs EMACS_VER= 19.34 EMACS_MAJOR_VER= 19 # emacs libraries directory without ${PREFIX} EMACS_LIBDIR?= share/${EMACS_NAME} EMACS_LIBDIR_WITH_VER?= share/${EMACS_NAME}/${EMACS_VER} # Definitions for Emacs-20.x .elif (${EMACS_PORT_NAME} == "emacs20") EMACS_NAME= emacs EMACS_VER= 20.4 EMACS_MAJOR_VER= 20 # emacs libraries directory without ${PREFIX} EMACS_LIBDIR?= share/${EMACS_NAME} EMACS_LIBDIR_WITH_VER?= share/${EMACS_NAME}/${EMACS_VER} # Definitions for Mule-19.x .elif (${EMACS_PORT_NAME} == "mule") EMACS_NAME= mule EMACS_VER= 19.34 EMACS_MAJOR_VER= 19 # emacs libraries directory without ${PREFIX} EMACS_LIBDIR?= share/${EMACS_NAME} EMACS_LIBDIR_WITH_VER?= share/${EMACS_NAME}/${EMACS_VER} # Definitions for XEmacs-19.x .elif (${EMACS_PORT_NAME} == "xemacs") EMACS_NAME= xemacs EMACS_VER= 19.16 EMACS_MAJOR_VER= 19 # emacs libraries directory without ${PREFIX} EMACS_LIBDIR?= lib/${EMACS_NAME} EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER} # Definitions for XEmacs-20.x .elif (${EMACS_PORT_NAME} == "xemacs20") EMACS_NAME= xemacs EMACS_VER= 20.4 EMACS_MAJOR_VER= 20 # emacs libraries directory without ${PREFIX} EMACS_LIBDIR?= lib/${EMACS_NAME} EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER} # Definitions for XEmacs-20.x with Mule .elif (${EMACS_PORT_NAME} == "xemacs-mule") EMACS_NAME= xemacs EMACS_VER= 20.4 EMACS_MAJOR_VER= 20 # emacs libraries directory without ${PREFIX} EMACS_LIBDIR?= lib/${EMACS_NAME} EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER} .endif # Common Definitions EMACS_CMD?= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER} .else @${ECHO} "Error: Bad port." @${ECHO} "You must define EMACS_PORT_NAME when using ${Emacs_Include}." @${FALSE} .endif .endif # End of bsd.port.emacs.mk. ----Next_Part(Sun_Aug_29_02:56:48_1999_661)---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message