From owner-freebsd-ports Fri Aug 20 7:14:23 1999 Delivered-To: freebsd-ports@freebsd.org Received: from mta1.odn.ne.jp (mta1.odn.ne.jp [143.90.131.68]) by hub.freebsd.org (Postfix) with ESMTP id 70B0615488; Fri, 20 Aug 1999 07:14:12 -0700 (PDT) (envelope-from shigeisp@pop02.odn.ne.jp) Received: from athena.shige.org (KUNca-0216p94.ppp.odn.ad.jp [210.228.203.94]) by mta1.odn.ne.jp (8.8.8+2.7Wbeta7/3.6W/9808281356) with ESMTP id XAA16680; Fri, 20 Aug 1999 23:11:11 +0900 (JST) To: asami@cs.berkeley.edu Cc: jseger@freebsd.org, ports@freebsd.org Cc: shige@FreeBSD.ORG Subject: Re: emacs-XX From: Shigeyuki Fukushima In-Reply-To: <199908201212.FAA89304@silvia.hip.berkeley.edu> References: <199908201212.FAA89304@silvia.hip.berkeley.edu> X-Mailer: Mew version 1.94b47 on Emacs 20.4 / Mule 4.0 (HANANOEN) X-URL: http://www.freebsd.org/~shige/ Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19990820230932U.shige@shige.org> Date: Fri, 20 Aug 1999 23:09:32 +0900 X-Dispatcher: imput version 990816(IM120) Lines: 73 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org From: asami@cs.berkeley.edu (Satoshi Asami) Subject: emacs-XX Date: Fri, 20 Aug 1999 05:12:16 -0700 (PDT) asami> Do you object if I added a symlink emacs-XX pointing to emacs-XX.YY asami> (or emacs-XX.Y)? There are several ports out there that require a asami> certain version of emacs (19 or 20), and most of them broke when asami> emacs20 was upgraded from 20.3 to 20.4. Certainly, the form of dependency is: depend_command_name:depend_port_name Therefore, when depend_command_name is equal to depend_port_name semantically, we can make better consistency of port's dependency. But, some of emacs-lisp ports/packages which require one of emacsen port have a version(XX.YY)-specific emacs-lisp. Such ports are still broken. Because we need to re-define major and minor version of emacs which this port uses. Then, I proposed the `editors/emacsen' port. This port has some general variables for several emacses ports. Variables are: EMACS_NAME, EMACS_VER, EMACS_CMD, EMACS_LIBDIR, EMACS_LIBDIR_WITH_VER These variables are prepared for every emacsen. # Please see also editors/apel-emacs/Makefile. This `editors/emacsen' port looks like bsd.port.mk. # In short, this port is a do-nothing port. Emacsen ports include this port's Makefile and bsd.port.mk If editors/emacs20 was upgraded, it is enough only to upgrade EMACS_VER for emacs20 in this Makefile. ex.) Sample of 'editors/emacsen' port Makefile .if defined(EMACS_PORT_NAME) .if (${EMACS_PORT_NAME} == "emacs") EMACS_NAME= emacs EMACS_VER= 19.34 EMACS_CMD= ${EMACS_NAME}-${EMACS_VER} # directory without ${PREFIX} EMACS_LIBDOIR= share/${EMACS_NAME} EMACS_LIBDOIR_WITH_VER= share/${EMACS_NAME}/${EMACS_VER} .elif (${EMACS_PORT_NAME} == "emacs20") EMACS_NAME= emacs EMACS_VER= 20.3 EMACS_CMD= ${EMACS_NAME}-${EMACS_VER} # directory without ${PREFIX} EMACS_LIBDOIR= share/${EMACS_NAME} EMACS_LIBDOIR_WITH_VER= share/${EMACS_NAME}/${EMACS_VER} .elif (${EMACS_PORT_NAME} == "mule") EMACS_NAME= mule EMACS_VER= 19.34 EMACS_CMD= ${EMACS_NAME}-${EMACS_VER} # directory without ${PREFIX} EMACS_LIBDOIR= share/${EMACS_NAME} EMACS_LIBDOIR_WITH_VER= share/${EMACS_NAME}/${EMACS_VER} .elif (... other emacsen ...) . . . .endif .else NO_BUILD= yes NO_INSTALL= yes .endif Do you think about my idea? Thanks! --- shige To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message