summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-11-27 03:14:31 +0000
committerSteve Price <steve@FreeBSD.org>1999-11-27 03:14:31 +0000
commit4969f420de804e85de23c0508026fab6eb9e79e7 (patch)
tree7f3cafc389cd2af1e565fa802a97dc61d881fef3 /editors
parentRemove a whole host of ports at maintainer's request. (diff)
Update to version 21.1.8.
PR: 14591 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=23434
Diffstat (limited to 'editors')
-rw-r--r--editors/xemacs21-mule-common/Makefile101
-rw-r--r--editors/xemacs21-mule-common/files/DESCR.tmpl (renamed from editors/xemacs21-mule-common/pkg-descr)8
-rw-r--r--editors/xemacs21-mule-common/files/INSTALL.tmpl7
-rw-r--r--editors/xemacs21-mule-common/pkg-plist51
-rw-r--r--editors/xemacs21-mule/Makefile89
-rw-r--r--editors/xemacs21-mule/pkg-comment2
-rw-r--r--editors/xemacs21-mule/pkg-descr17
-rw-r--r--editors/xemacs21-mule/pkg-plist19
8 files changed, 138 insertions, 156 deletions
diff --git a/editors/xemacs21-mule-common/Makefile b/editors/xemacs21-mule-common/Makefile
index f5219e2a62fc..b87a2dc9ad01 100644
--- a/editors/xemacs21-mule-common/Makefile
+++ b/editors/xemacs21-mule-common/Makefile
@@ -1,107 +1,96 @@
# New ports collection makefile for: files except executables for xemacs with mule
-# Version required: 21.1.6
+# Version required: 21.1.8
# Date created: 5 Dec 1997
# Whom: Kazuyuki IENAGA <ienaga@jsys.co.jp>
#
# $FreeBSD$
#
-DISTNAME= xemacs-${VERSION}
-PKGNAME= xemacs-mule-common-${VERSION}
-CATEGORIES= editors japanese
-MASTER_SITES= ftp://ftp.lab.kdd.co.jp/xemacs/${FTP_DIR}/ \
- ftp://ftp.xemacs.org/pub/xemacs/${FTP_DIR}/ \
- ftp://ftp.mpi-sb.mpg.de/pub/gnu/mirror/ftp.xemacs.org/xemacs/${FTP_DIR}/ \
- ftp://ftp.th-darmstadt.de/pub/editors/xemacs/${FTP_DIR}/ \
- ftp://ftp.jpl.org/pub/elisp/
-DISTFILES= xemacs-${VERSION}.tar.gz xemacs-${VERSION}-elc.tar.gz \
- xemacs-${VERSION}-info.tar.gz \
- ps-print-jp.el.gz
-DIST_SUBDIR= xemacs
-
-MAINTAINER= kiri@kiri.toba-cmt.ac.jp
-
-# from xemacs-mule
-LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm \
- jpeg.9:${PORTSDIR}/graphics/jpeg \
- png.3:${PORTSDIR}/graphics/png \
- tiff.4:${PORTSDIR}/graphics/tiff \
- compface.1:${PORTSDIR}/mail/faces
-USE_AUTOCONF= yes
-
-EXTRACT_ONLY= xemacs-${VERSION}.tar.gz xemacs-${VERSION}-elc.tar.gz \
- xemacs-${VERSION}-info.tar.gz
+# This is the COMMON port of XEmacs Mule slave ports(editors/xemacs-mule,
+# japanese/xemacs-*) and provides `Architecture Independent' parts of xemacs binary.
+#
+# Caracteristic variables of XEmacs Mule ports family:
+# MULE_COMMON : COMMON port if defined
+# PKGLDIR : Local PKGDIR of MASTER port(editors/xemacs-mule/pkg)
+# SITE_INCLUDES : site include path(configure arguments)
+# SITE_LIBRARIES : site libraries path(configure arguments)
+# WITH_INPUT_METHOD : input methods(configure arguments)
+# LIB_INPUT_METHOD : LIB_DEPENDS list of Input Methods
+# BUILD_INPUT_METHOD: BUILD_DEPENDS list of Input Methods
.include <bsd.port.pre.mk>
.for dir in \
editors/xemacs-mule \
- japanese/xemacs \
japanese/xemacs-canna \
japanese/xemacs-canna+wnn4 \
japanese/xemacs-canna+wnn6 \
japanese/xemacs-wnn4 \
japanese/xemacs-wnn6
.if exists(${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work/.install_done)
-WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work
+WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work
.elif exists(${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work/.build_done)
-WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work
+WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work
.endif
.endfor
-WRKSRC= ${WRKDIR}/xemacs-${VERSION}
-
.if !defined(WRKDIR)
.if defined(PACKAGE_BUILDING)
-# XXX
pre-build:
- @cd ${.CURDIR}/../xemacs-mule; make
+ @cd ${.CURDIR}/../xemacs-mule; ${MAKE}
.else
BROKEN= You should build install one of the other xemacs ports first
.endif
.endif
-INSTALL_COOKIE= ${WRKDIR}/.install_done-${PKGNAME}
-PACKAGE_COOKIE= ${WRKDIR}/.package_done-${PKGNAME}
-TMPPLIST= ${WRKDIR}/.PLIST.mktmp-${PKGNAME}
-
-USE_XLIB= yes
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= i386-unknown-freebsd \
- --with-x11 \
+CONFIGURE_ARGS= --with-x11 \
--with-mule \
--x-includes=${X11BASE}/include \
--x-libraries=${X11BASE}/lib
MAN1= ctags.1 etags.1 gnuattach.1 gnuclient.1 gnudoit.1 \
gnuserv.1 xemacs.1
-
-STRIP=
INSTALL_TARGET= install-arch-indep
+PKGINSTALL= ${WRKDIR}/INSTALL.${PKGNAME}
+PLIST= ${PKGDIR}/PLIST
+DESCR= ${WRKDIR}/DESCR.${PKGNAME}
PLIST_SUB= XEMACS_DIR=${XEMACS_DIR}
+PKGINSTALL= ${WRKDIR}/INSTALL
+TMPPLIST= ${WRKDIR}/.PLIST.mktmp-${PKGNAME}
-MAJOR_VERSION= 21.1
-VERSION= 21.1.6
-XEMACS_DIR= xemacs-${VERSION}
-FTP_DIR= xemacs-${MAJOR_VERSION}
+MULE_COMMON= yes
+PKGNAMEEXT= -mule-common
+DESCR_TMPL= ${.CURDIR}/../xemacs-mule-common/files/DESCR.tmpl
+INSTALL_TMPL= ${.CURDIR}/../xemacs-mule-common/files/INSTALL.tmpl
pre-build:
- ${RM} -f ${WRKSRC}/lib-src/DOC* ${WRKSRC}/src/xemacs
+ @${RM} -f ${WRKSRC}/lib-src/DOC* ${WRKSRC}/src/xemacs
pre-install:
- @${MKDIR} ${PREFIX}/lib/xemacs
+.for dirp in site mule xemacs
+.for dir in etc info man pkginfo
+ @${MKDIR} ${PREFIX}/lib/xemacs/${dirp}-packages/${dir}
+.endfor
+.endfor
@(cd ${PREFIX}/lib/xemacs; ${MKDIR} info etc site-lisp)
@if [ ! -f ${PREFIX}/lib/xemacs/info/dir ]; then \
${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/lib/xemacs/info/dir; \
fi
+ @${SED} -e "s/%%XEMACS_VER%%/${XEMACS_VER}/g" \
+ ${DESCR_TMPL} > ${DESCR}
+ @${SED} -e "s/%%XEMACS_VER%%/${XEMACS_VER}/g" \
+ ${INSTALL_TMPL} > ${PKGINSTALL}
-post-install:
+post-install::
# install xemacs-mule.sh into ${PREFIX}/etc/rc.d
- @${MKDIR} /var/run/emacs/lock
- ${CHMOD} 1777 /var/run/emacs/lock
+ @if [ ! -d /var/run/emacs/lock ]; then \
+ ${MKDIR} /var/run/emacs/lock; \
+ ${CHMOD} 1777 /var/run/emacs/lock; \
+ fi
@${MKDIR} ${PREFIX}/etc/rc.d
@${INSTALL_SCRIPT} ${FILESDIR}/xemacs-mule.sh ${PREFIX}/etc/rc.d
+ @if [ -f ${PKGDIR}/INSTALL ]; then \
+ ${SETENV} PKG_PREFIX=${PREFIX} \
+ ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL; \
+ fi
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
-post-package:
- @${TOUCH} ${TOUCH_FLAGS} ${PACKAGE_COOKIE}
-
-.include <bsd.port.post.mk>
+.include "${.CURDIR}/../xemacs-mule/Makefile"
diff --git a/editors/xemacs21-mule-common/pkg-descr b/editors/xemacs21-mule-common/files/DESCR.tmpl
index 58aa2e6d5bae..10f90be633ce 100644
--- a/editors/xemacs21-mule-common/pkg-descr
+++ b/editors/xemacs21-mule-common/files/DESCR.tmpl
@@ -1,9 +1,9 @@
This is XEmacs lisp files, info pages, and so on (except executables)
-for XEmacs 21.1.6, the next generation of Emacs.
+for XEmacs with Mule(version %%XEMACS_VER%%), the next generation of Emacs.
-You must install one of packages, xemacs, jp-xemacs-*-21.1.6 (
-jp-xemacs-canna-21.1.6, jp-xemacs-canna+sj3-21.1.6, etc.), each of which
-contains only the executables for xemacs-21.1.6.
+You must install one of packages, xemacs-mule-%%XEMACS_VER%%,
+ja-xemacs-*-%%XEMACS_VER%% (ja-xemacs-canna-%%XEMACS_VER%%, ja-xemacs-canna+wnn4-%%XEMACS_VER%%, etc.),
+each of which contains only the executables for XEmacs with Mule(vresion %%XEMACS_VER%%).
This package and the above package of the executables *will* clobber any
existing XEmacs installation. In particular, the executables and man
diff --git a/editors/xemacs21-mule-common/files/INSTALL.tmpl b/editors/xemacs21-mule-common/files/INSTALL.tmpl
new file mode 100644
index 000000000000..dfc729fef788
--- /dev/null
+++ b/editors/xemacs21-mule-common/files/INSTALL.tmpl
@@ -0,0 +1,7 @@
+#!/bin/sh
+if [ "$2" != "POST-INSTALL" ]; then exit 0; fi
+echo "################################################################"
+echo "You must install one of packages, xemacs-mule and "
+echo " ja-xemacs-*-%%XEMACS_VER%% (ja-xemacs-%%XEMACS_VER%%, ja-xemacs-canna-%%XEMACS_VER%%, etc.)"
+echo ", each of which contains only the executables for xemacs-%%XEMACS_VER%%"
+echo "################################################################"
diff --git a/editors/xemacs21-mule-common/pkg-plist b/editors/xemacs21-mule-common/pkg-plist
index 976eb2f459a8..5ba34b159a5b 100644
--- a/editors/xemacs21-mule-common/pkg-plist
+++ b/editors/xemacs21-mule-common/pkg-plist
@@ -1,14 +1,20 @@
+@exec mkdir -p %D/lib/xemacs/site-packages/etc
@exec mkdir -p %D/lib/xemacs/site-packages/info
+@exec mkdir -p %D/lib/xemacs/site-packages/lisp
+@exec mkdir -p %D/lib/xemacs/site-packages/man
+@exec mkdir -p %D/lib/xemacs/site-packages/pkginfo
+@exec mkdir -p %D/lib/xemacs/mule-packages/etc
@exec mkdir -p %D/lib/xemacs/mule-packages/info
+@exec mkdir -p %D/lib/xemacs/mule-packages/lisp
+@exec mkdir -p %D/lib/xemacs/mule-packages/man
+@exec mkdir -p %D/lib/xemacs/mule-packages/pkginfo
+@exec mkdir -p %D/lib/xemacs/xemacs-packages/etc
@exec mkdir -p %D/lib/xemacs/xemacs-packages/info
-@exec [ -f %D/lib/xemacs/site-packages/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir-tmpl > %D/lib/xemacs/site-packages/info/dir
-@exec [ -f %D/lib/xemacs/mule-packages/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir-tmpl > %D/lib/xemacs/mule-packages/info/dir
-@exec [ -f %D/lib/xemacs/xemacs-packages/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir-tmpl > %D/lib/xemacs/xemacs-packages/info/dir
+@exec mkdir -p %D/lib/xemacs/xemacs-packages/lisp
+@exec mkdir -p %D/lib/xemacs/xemacs-packages/man
+@exec mkdir -p %D/lib/xemacs/xemacs-packages/pkginfo
@exec mkdir -p %D/lib/xemacs/site-lisp
@exec mkdir -p /var/run/emacs/lock ; chmod 1777 /var/run/emacs/lock
-@comment
-@comment XEmacs etc
-@comment
etc/rc.d/xemacs-mule.sh
lib/%%XEMACS_DIR%%/etc/BETA
lib/%%XEMACS_DIR%%/etc/CHARSETS
@@ -370,9 +376,6 @@ lib/%%XEMACS_DIR%%/etc/xemacs-ja.1
lib/%%XEMACS_DIR%%/etc/xemacs.1
lib/%%XEMACS_DIR%%/etc/xemacs.xbm
lib/%%XEMACS_DIR%%/etc/xemacs.xpm
-@comment
-@comment XEmacs infos
-@comment
lib/%%XEMACS_DIR%%/info/cl.info
lib/%%XEMACS_DIR%%/info/cl.info-1
lib/%%XEMACS_DIR%%/info/cl.info-2
@@ -392,6 +395,7 @@ lib/%%XEMACS_DIR%%/info/internals.info-4
lib/%%XEMACS_DIR%%/info/internals.info-5
lib/%%XEMACS_DIR%%/info/internals.info-6
lib/%%XEMACS_DIR%%/info/internals.info-7
+lib/%%XEMACS_DIR%%/info/internals.info-8
lib/%%XEMACS_DIR%%/info/lispref.info
lib/%%XEMACS_DIR%%/info/lispref.info-1
lib/%%XEMACS_DIR%%/info/lispref.info-10
@@ -492,9 +496,6 @@ lib/%%XEMACS_DIR%%/info/xemacs.info-6
lib/%%XEMACS_DIR%%/info/xemacs.info-7
lib/%%XEMACS_DIR%%/info/xemacs.info-8
lib/%%XEMACS_DIR%%/info/xemacs.info-9
-@comment
-@comment XEmacs lisp
-@comment
lib/%%XEMACS_DIR%%/lisp/.cvsignore
lib/%%XEMACS_DIR%%/lisp/ChangeLog
lib/%%XEMACS_DIR%%/lisp/ChangeLog.1
@@ -923,20 +924,18 @@ lib/%%XEMACS_DIR%%/lisp/x-win-sun.el
lib/%%XEMACS_DIR%%/lisp/x-win-sun.elc
lib/%%XEMACS_DIR%%/lisp/x-win-xfree86.el
lib/%%XEMACS_DIR%%/lisp/x-win-xfree86.elc
-@comment
-@comment dirrm
-@comment
-@dirrm lib/%%XEMACS_DIR%%/etc/custom
-@dirrm lib/%%XEMACS_DIR%%/etc/eos
-@dirrm lib/%%XEMACS_DIR%%/etc/idd
-@dirrm lib/%%XEMACS_DIR%%/etc/photos
-@dirrm lib/%%XEMACS_DIR%%/etc/sparcworks
+lib/%%XEMACS_DIR%%/lisp/xpm-button.el
+lib/%%XEMACS_DIR%%/lisp/xpm-button.elc
+@dirrm lib/%%XEMACS_DIR%%/lisp/term
+@dirrm lib/%%XEMACS_DIR%%/lisp/mule
+@dirrm lib/%%XEMACS_DIR%%/lisp
+@dirrm lib/%%XEMACS_DIR%%/info
+@dirrm lib/%%XEMACS_DIR%%/etc/toolbar
@dirrm lib/%%XEMACS_DIR%%/etc/tests/external-widget
@dirrm lib/%%XEMACS_DIR%%/etc/tests
-@dirrm lib/%%XEMACS_DIR%%/etc/toolbar
+@dirrm lib/%%XEMACS_DIR%%/etc/sparcworks
+@dirrm lib/%%XEMACS_DIR%%/etc/photos
+@dirrm lib/%%XEMACS_DIR%%/etc/idd
+@dirrm lib/%%XEMACS_DIR%%/etc/eos
+@dirrm lib/%%XEMACS_DIR%%/etc/custom
@dirrm lib/%%XEMACS_DIR%%/etc
-@dirrm lib/%%XEMACS_DIR%%/info
-@dirrm lib/%%XEMACS_DIR%%/lisp/mule
-@dirrm lib/%%XEMACS_DIR%%/lisp/term
-@dirrm lib/%%XEMACS_DIR%%/lisp
-@dirrm lib/%%XEMACS_DIR%%
diff --git a/editors/xemacs21-mule/Makefile b/editors/xemacs21-mule/Makefile
index 7d7c028fdd88..b226981feebd 100644
--- a/editors/xemacs21-mule/Makefile
+++ b/editors/xemacs21-mule/Makefile
@@ -1,47 +1,57 @@
# New ports collection makefile for: XEmacs
-# Version required: 21.1.6
+# Version required: 21.1.8
# Date created: 5 Dec 1997
# Whom: Kazuyuki IENAGA <ienaga@jsys.co.jp>
#
# $FreeBSD$
#
-DISTNAME= xemacs-${VERSION}
-PKGNAME= ${LANGPREFIX}xemacs${PKGNAMEEXT}-${VERSION}
+# This is the MASTER port of XEmacs Mule slave ports(japanese/xemacs-*)
+# and provides `Architecture Dependent' parts of xemacs binary.
+#
+# Caracteristic variables of XEmacs Mule ports family:
+# MULE_COMMON : COMMON port if defined
+# PKGLDIR : Local PKGDIR of MASTER port(editors/xemacs-mule/pkg)
+# SITE_INCLUDES : site include path(configure arguments)
+# SITE_LIBRARIES : site libraries path(configure arguments)
+# WITH_INPUT_METHOD : input methods(configure arguments)
+# LIB_INPUT_METHOD : LIB_DEPENDS list of Input Methods
+# BUILD_INPUT_METHOD: BUILD_DEPENDS list of Input Methods
+
+DISTNAME= xemacs-${XEMACS_VER}
+PKGNAME= ${LANGPREFIX}xemacs${PKGNAMEEXT}-${XEMACS_VER}
CATEGORIES?= editors
MASTER_SITES= ftp://ftp.lab.kdd.co.jp/xemacs/${FTP_DIR}/ \
ftp://ftp.xemacs.org/pub/xemacs/${FTP_DIR}/ \
ftp://ftp.mpi-sb.mpg.de/pub/gnu/mirror/ftp.xemacs.org/xemacs/${FTP_DIR}/ \
- ftp://ftp.th-darmstadt.de/pub/editors/xemacs/${FTP_DIR}/ \
- ftp://ftp.jpl.org/pub/elisp/
-DISTFILES= xemacs-${VERSION}.tar.gz xemacs-${VERSION}-elc.tar.gz \
- xemacs-${VERSION}-info.tar.gz \
- ps-print-jp.el.gz
+ ftp://ftp.th-darmstadt.de/pub/editors/xemacs/${FTP_DIR}/
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}-elc${EXTRACT_SUFX} \
+ ${DISTNAME}-info${EXTRACT_SUFX}
DIST_SUBDIR= xemacs
-MAINTAINER?= kiri@kiri.toba-cmt.ac.jp
+MAINTAINER= kiri@kiri.toba-cmt.ac.jp
-BUILD_DEPENDS= ${BUILD_DEP_LIST}
+.if !defined(MULE_COMMON)
+BUILD_DEPENDS= ${PREFIX}/lib/xemacs/xemacs-packages/pkginfo/MANIFEST.xemacs-devel:${PORTSDIR}/editors/xemacs-packages \
+ ${PREFIX}/lib/xemacs/mule-packages/pkginfo/MANIFEST.skk:${PORTSDIR}/editors/xemacs-mule-packages \
+ ${BUILD_INPUT_METHOD}
+RUN_DEPENDS= ${PREFIX}/lib/${XEMACS_DIR}/lisp/x-win-xfree86.elc:${PORTSDIR}/editors/xemacs-mule-common \
+ ${PREFIX}/lib/xemacs/xemacs-packages/pkginfo/MANIFEST.xemacs-devel:${PORTSDIR}/editors/xemacs-packages \
+ ${PREFIX}/lib/xemacs/mule-packages/pkginfo/MANIFEST.skk:${PORTSDIR}/editors/xemacs-mule-packages
+.endif
LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm \
jpeg.9:${PORTSDIR}/graphics/jpeg \
png.3:${PORTSDIR}/graphics/png \
compface.1:${PORTSDIR}/mail/faces \
tiff.4:${PORTSDIR}/graphics/tiff \
${LIB_INPUT_METHOD}
-RUN_DEPENDS= ${RUN_DEP_LIST}
-EXTRACT_ONLY= xemacs-${VERSION}.tar.gz xemacs-${VERSION}-elc.tar.gz \
- xemacs-${VERSION}-info.tar.gz
-WRKSRC= ${WRKDIR}/xemacs-${VERSION}
-PATCHDIR= ${.CURDIR}/../../editors/xemacs-mule-common/patches
-FILESDIR= ${.CURDIR}/../../editors/xemacs-mule-common/files
-SCRIPTDIR= ${.CURDIR}/../../editors/xemacs-mule-common/scripts
-INSTALL_COOKIE= ${WRKDIR}/.install_done-${PKGNAME}
-PACKAGE_COOKIE= ${WRKDIR}/.package_done-${PKGNAME}
-GNU_CONFIGURE= yes
+WRKSRC= ${WRKDIR}/xemacs-${XEMACS_VER}
USE_AUTOCONF= yes
+USE_XLIB= yes
+GNU_CONFIGURE= yes
CONFIGURE_TARGET=${MACHINE_ARCH}--freebsd
-CONFIGURE_ARGS= --with-x11 \
+CONFIGURE_ARGS?=--with-x11 \
--with-xim=no \
--with-mule \
--x-includes=${X11BASE}/include \
@@ -64,23 +74,37 @@ CONFIGURE_ARGS= --with-x11 \
--with-clash-detection \
--lockdir=/var/run/emacs/lock \
${WITH_INPUT_METHOD}
+MAKE_ENV= LANG=C
+MAKE_ARGS= prefix=${PREFIX}
+PATCHDIR= ${.CURDIR}/../../editors/xemacs-mule/patches
+FILESDIR= ${.CURDIR}/../../editors/xemacs-mule/files
+INSTALL_COOKIE= ${WRKDIR}/.install_done-${PKGNAME}
+PACKAGE_COOKIE= ${WRKDIR}/.package_done-${PKGNAME}
STRIP=
-INSTALL_TARGET= install-arch-dep
+INSTALL_TARGET?=install-arch-dep
+DESCR?= ${WRKDIR}/DESCR
PLIST?= ${PKGLDIR}/PLIST
-PLIST_SUB= XEMACS_DIR=${XEMACS_DIR} ARCH_SUBDIR=${ARCH_SUBDIR}
+PLIST_SUB?= XEMACS_DIR=${XEMACS_DIR} ARCH_SUBDIR=${ARCH_SUBDIR} EMACS_CMD=${EMACS_CMD}
-MAJOR_VERSION= 21.1
-VERSION= 21.1.6
-EMACS_CMD= xemacs-${VERSION}
-XEMACS_DIR= xemacs-${VERSION}
-FTP_DIR= xemacs-${MAJOR_VERSION}
+XEMACS_MAJVER= 21.1
+XEMACS_VER= 21.1.8
+EMACS_CMD= xemacs-${XEMACS_VER}
+XEMACS_DIR= xemacs-${XEMACS_VER}
+FTP_DIR= xemacs-${XEMACS_MAJVER}
ARCH_SUBDIR= ${MACHINE_ARCH}--freebsd
PKGNAMEEXT?= -mule
+DESCR_TMPL?= ${.CURDIR}/../xemacs-mule/files/DESCR.tmpl
+.if !defined(MULE_COMMON)
PKGLDIR= ${.CURDIR}/../../editors/xemacs-mule/pkg
SITE_INCLUDES+= ${PREFIX}/include
SITE_LIBRARIES+= ${PREFIX}/lib
WITH_INPUT_METHOD?= --with-canna=no --with-wnn=no --with-wnn6=no
-RUN_DEP_LIST+= ${PREFIX}/lib/${XEMACS_DIR}/lisp/x-win-xfree86.elc:${PORTSDIR}/editors/xemacs-mule-common
+.endif
+
+.if !defined(MULE_COMMON)
+post-configure::
+ @${SED} -e "s/%%XEMACS_VER%%/${XEMACS_VER}/g" \
+ ${DESCR_TMPL} > ${DESCR}
pre-build:
@find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
@@ -93,14 +117,11 @@ post-build:
.endif
post-install::
-.for file in b2m ctags etags gnuclient xemacs-${VERSION}
+.for file in b2m ctags etags gnuclient xemacs-${XEMACS_VER}
@strip ${PREFIX}/bin/${file}
.endfor
- @if [ -f ${PKGDIR}/INSTALL ]; then \
- ${SETENV} PKG_PREFIX=${PREFIX} \
- ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL; \
- fi
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
+.endif
post-package:
@${TOUCH} ${TOUCH_FLAGS} ${PACKAGE_COOKIE}
diff --git a/editors/xemacs21-mule/pkg-comment b/editors/xemacs21-mule/pkg-comment
index 59b1a3dc5c60..2fb19845b5fc 100644
--- a/editors/xemacs21-mule/pkg-comment
+++ b/editors/xemacs21-mule/pkg-comment
@@ -1 +1 @@
-XEmacs text editor (Only the executables)
+XEmacs text editor with mule(Only the executables)
diff --git a/editors/xemacs21-mule/pkg-descr b/editors/xemacs21-mule/pkg-descr
deleted file mode 100644
index 8bccd2d70870..000000000000
--- a/editors/xemacs21-mule/pkg-descr
+++ /dev/null
@@ -1,17 +0,0 @@
-This is a package containing only the executables for xemacs-21.1.6, the
-next generation of Emacs.
-
-You need to install a package, xemacs-common-21.1.6, containing emacs
-lisp files, info pages, and so on (except executables) for
-xemacs-21.1.6.
-
-This package is not built with any particular language support. If
-you want a built-in input method, look into the xemacs ports in
-language- specific directories. Currently only Japanese (SKK,Canna, SJ3,
-Wnn4 and Wnn6) is available.
-
-This package and the package, xemacs-common-21.1.6 are designed *not* to
-clobber any existing emacs installation. In particular, the
-executables and man pages of etags/ctags are not installed, and the
-info pages that come with the original emacs don't get installed too.
-The Japanese version is build to install everything, by the way.
diff --git a/editors/xemacs21-mule/pkg-plist b/editors/xemacs21-mule/pkg-plist
index 0ffe73da20b3..5ef8365ac8d2 100644
--- a/editors/xemacs21-mule/pkg-plist
+++ b/editors/xemacs21-mule/pkg-plist
@@ -7,26 +7,9 @@ bin/gnudoit
bin/ootags
bin/pstogif
bin/rcs-checkin
-bin/xemacs-21.1.6
+bin/%%XEMACS_DIR%%
@exec ln -sf %D/%F %B/xemacs
@unexec rm %B/xemacs
lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/DOC
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/add-big-package.sh
lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/config.values
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/cvtmail
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/digest-doc
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/fakemail
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/gnuserv
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/gzip-el.sh
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/hexl
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/make-docfile
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/make-path
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/mmencode
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/movemail
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/profile
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/rcs2log
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/sorted-doc
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/vcdiff
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/wakeup
-lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%/yow
@dirrm lib/%%XEMACS_DIR%%/%%ARCH_SUBDIR%%