Date: Sun, 29 Aug 1999 03:03:36 +0900 From: Shigeyuki Fukushima <shige@FreeBSD.org> To: hetzels@westbend.net Cc: jseger@FreeBSD.ORG, ports@FreeBSD.ORG, asami@FreeBSD.ORG Subject: Re: emacs-XX Message-ID: <19990829030336Q.shige@shige.org> In-Reply-To: <02cf01bef0ea$a8aee400$8dfee0d1@westbend.net> References: <vqcaerkm9le.fsf@silvia.hip.berkeley.edu> <19990822212722W.shige@shige.org> <02cf01bef0ea$a8aee400$8dfee0d1@westbend.net>
next in thread | previous in thread | raw e-mail | index | archive | help
----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" <hetzels@westbend.net> 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 <bsd.port.emacs.mk> # .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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990829030336Q.shige>