aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/apel-emacs/Makefile68
-rw-r--r--editors/apel-emacs/distinfo1
-rw-r--r--editors/apel-emacs/files/patch-aa10
-rw-r--r--editors/apel-emacs/files/patch-ac11
-rw-r--r--editors/apel-emacs/pkg-comment1
-rw-r--r--editors/apel-emacs/pkg-descr34
-rw-r--r--editors/apel-emacs/pkg-plist37
-rw-r--r--editors/apel-emacs/scripts/configure12
-rw-r--r--editors/apel-emacs20/Makefile25
-rw-r--r--editors/apel-emacs20/pkg-comment1
-rw-r--r--editors/apel-emacs20/pkg-descr29
-rw-r--r--editors/apel-emacs20/pkg-plist44
-rw-r--r--editors/apel-mule/Makefile28
-rw-r--r--editors/apel-mule/pkg-comment1
-rw-r--r--editors/apel-mule/pkg-descr34
-rw-r--r--editors/apel-mule/pkg-plist41
-rw-r--r--editors/apel/Makefile68
-rw-r--r--editors/apel/distinfo1
-rw-r--r--editors/apel/files/patch-aa10
-rw-r--r--editors/apel/files/patch-ac11
-rw-r--r--editors/apel/pkg-comment.emacs191
-rw-r--r--editors/apel/pkg-comment.emacs201
-rw-r--r--editors/apel/pkg-comment.emacs211
-rw-r--r--editors/apel/pkg-comment.mule1
-rw-r--r--editors/apel/pkg-descr.emacs1934
-rw-r--r--editors/apel/pkg-descr.emacs2029
-rw-r--r--editors/apel/pkg-descr.emacs2129
-rw-r--r--editors/apel/pkg-descr.mule34
-rw-r--r--editors/apel/pkg-plist.emacs1937
-rw-r--r--editors/apel/pkg-plist.emacs2044
-rw-r--r--editors/apel/pkg-plist.emacs2144
-rw-r--r--editors/apel/pkg-plist.mule41
-rw-r--r--editors/apel/scripts/configure12
33 files changed, 775 insertions, 0 deletions
diff --git a/editors/apel-emacs/Makefile b/editors/apel-emacs/Makefile
new file mode 100644
index 000000000000..d93de033294b
--- /dev/null
+++ b/editors/apel-emacs/Makefile
@@ -0,0 +1,68 @@
+# New ports collection makefile for: apel for emacs
+# Version required: 9.12
+# Date created: 23 September 1998
+# Whom: Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp>
+#
+# $Id$
+#
+
+DISTNAME= apel-${APEL_VER}
+CATEGORIES= editors elisp
+MASTER_SITES= ftp://ftp.jaist.ac.jp/pub/GNU/elisp/apel/
+
+MAINTAINER?= shige@kuis.kyoto-u.ac.jp
+
+# distfile version
+APEL_VER= 9.12
+APEL_SETUPEL= apel-setup.el
+
+# This is a master port.
+PORTCLASS?= master
+
+.if (${PORTCLASS} == "master")
+EMACS_NAME= emacs
+EMACS_PORT= emacs
+EMACS_VER= 19.34
+EMACS_LIBDIR= share/${EMACS_NAME}
+REQUIRE_SETUPEL= YES
+.endif
+
+# target name for make build
+ALL_TARGET?= elc
+
+.if defined(EMACS_PORT)
+PKGNAME= apel-${EMACS_PORT}-${APEL_VER}
+EMACS_CMD= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
+.if !defined(HAVE_COMMON_PORT)
+HAVE_COMMON_PORT= NO
+.endif
+.if !defined(REQUIRE_SETUPEL)
+REQUIRE_SETUPEL= NO
+.endif
+.if defined(HAVE_COMMON_PORT) && (${HAVE_COMMON_PORT} == "YES")
+BUILD_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common
+RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common
+.else
+BUILD_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
+RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
+.endif
+SCRIPTS_ENV= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER}
+PLIST_SUB= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER}
+MAKE_FLAGS= EMACS=${EMACS_CMD}
+.else
+.BEGIN:
+ @${ECHO} "Error: Bad port."
+ @${ECHO} "You must define EMACS_NAME, EMACS_PORT, EMACS_VER, EMACS_LIBDIR."
+ @${FALSE}
+.endif
+
+.if (${REQUIRE_SETUPEL} == "YES")
+pre-configure:
+ @${CP} ${FILESDIR}/${APEL_SETUPEL}.in ${WRKDIR}
+
+post-install:
+ @${INSTALL_DATA} ${WRKDIR}/${APEL_SETUPEL} \
+ ${PREFIX}/${EMACS_LIBDIR}/site-lisp
+.endif
+
+.include <bsd.port.mk>
diff --git a/editors/apel-emacs/distinfo b/editors/apel-emacs/distinfo
new file mode 100644
index 000000000000..9a00b7e2f379
--- /dev/null
+++ b/editors/apel-emacs/distinfo
@@ -0,0 +1 @@
+MD5 (apel-9.12.tar.gz) = bd8e304990b83ac186cb00ee57fafdbd
diff --git a/editors/apel-emacs/files/patch-aa b/editors/apel-emacs/files/patch-aa
new file mode 100644
index 000000000000..d8595b1a9a38
--- /dev/null
+++ b/editors/apel-emacs/files/patch-aa
@@ -0,0 +1,10 @@
+--- Makefile.orig Tue Oct 27 23:58:27 1998
++++ Makefile Sun Nov 1 20:44:21 1998
+@@ -17,6 +17,7 @@
+ PACKAGEDIR = NONE
+ VERSION_SPECIFIC_LISPDIR = NONE
+
++all: elc
+
+ elc:
+ $(EMACS) $(FLAGS) -f compile-apel
diff --git a/editors/apel-emacs/files/patch-ac b/editors/apel-emacs/files/patch-ac
new file mode 100644
index 000000000000..ab74bc332e6f
--- /dev/null
+++ b/editors/apel-emacs/files/patch-ac
@@ -0,0 +1,11 @@
+--- poem-ltn1.el.orig Sun Dec 27 11:19:17 1998
++++ poem-ltn1.el Sun Dec 27 11:19:20 1998
+@@ -161,7 +161,7 @@
+ (let ((emx-binary-mode t))
+ (find-file-noselect filename nowarn rawfile)))
+
+-(defalias find-file-noselect-as-raw-text 'find-file-noselect)
++(defalias 'find-file-noselect-as-raw-text 'find-file-noselect)
+
+ (defun open-network-stream-as-binary (name buffer host service)
+ "Like `open-network-stream', q.v., but don't code conversion."
diff --git a/editors/apel-emacs/pkg-comment b/editors/apel-emacs/pkg-comment
new file mode 100644
index 000000000000..28ffde6807db
--- /dev/null
+++ b/editors/apel-emacs/pkg-comment
@@ -0,0 +1 @@
+A Portable Emacs Library for emacs.
diff --git a/editors/apel-emacs/pkg-descr b/editors/apel-emacs/pkg-descr
new file mode 100644
index 000000000000..988c0056a9b4
--- /dev/null
+++ b/editors/apel-emacs/pkg-descr
@@ -0,0 +1,34 @@
+A Portable Emacs Library.
+
+--- Emacs Library Porting
+
+APEL is programed by MORIOKA Tomohiko <morioka@jaist.ac.jp>.
+
+ APEL stands for "A Portable Emacs Library". It consists of
+ following modules:
+ APEL
+ - utility to write portable CCL program
+ - utility for Association-list
+ - utility for condition tree and condition/situation-alist
+ - utility for path management or file detection
+ - utility to make file-name
+ - utility to install emacs-lisp package
+ - ROT 13-47-48 Caesar rotation utility
+ emu
+ - poe: emulation module mainly for basic functions and special forms/macros
+ - poem: provide basic functions to write portable MULE programs
+ - mcs: provide MIME charset related features
+ - broken: provide information of broken facilities of Emacs.
+ - emu: bundled in tm-7.106 compat module; it required poe, poem and mcs
+ - text/richtext module
+
+ APEL is installed the following directory tree:
+ ${PREFIX}/share/emacs/site-lisp/apel/ --- APEL
+ ${PREFIX}/share/emacs/19.34/site-lisp/emu/ --- emu
+
+
+To use apel, put the following setup into your ~/.emacs:
+
+ (require 'apel-setup)
+
+--- Porting by shige <shige@kuis.kyoto-u.ac.jp>
diff --git a/editors/apel-emacs/pkg-plist b/editors/apel-emacs/pkg-plist
new file mode 100644
index 000000000000..943f6057194e
--- /dev/null
+++ b/editors/apel-emacs/pkg-plist
@@ -0,0 +1,37 @@
+%%EMACS_LIBDIR%%/site-lisp/apel/alist.el
+%%EMACS_LIBDIR%%/site-lisp/apel/alist.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/calist.el
+%%EMACS_LIBDIR%%/site-lisp/apel/calist.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/filename.el
+%%EMACS_LIBDIR%%/site-lisp/apel/filename.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/install.el
+%%EMACS_LIBDIR%%/site-lisp/apel/install.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/mule-caesar.el
+%%EMACS_LIBDIR%%/site-lisp/apel/mule-caesar.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/path-util.el
+%%EMACS_LIBDIR%%/site-lisp/apel/path-util.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/richtext.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/richtext.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poe.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poe.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-ltn1.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-ltn1.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcharset.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcharset.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-ltn1.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-ltn1.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/invisible.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/invisible.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/inv-19.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/inv-19.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/broken.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/broken.elc
+%%EMACS_LIBDIR%%/site-lisp/apel-setup.el
+@dirrm %%EMACS_LIBDIR%%/site-lisp/apel
+@dirrm %%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu
diff --git a/editors/apel-emacs/scripts/configure b/editors/apel-emacs/scripts/configure
new file mode 100644
index 000000000000..8c2d04dc6aa9
--- /dev/null
+++ b/editors/apel-emacs/scripts/configure
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+TARGETS='apel-setup.el'
+
+for i in ${TARGETS}
+do
+ cat ${WRKDIR}/${i}.in | /usr/bin/sed \
+ -e "s;@@PREFIX@@;${PREFIX};g" \
+ -e "s;@@EMACS_LIBDIR@@;${EMACS_LIBDIR};g" \
+ -e "s;@@EMACS_VER@@;${EMACS_VER};g" \
+ > ${WRKDIR}/${i}
+done
diff --git a/editors/apel-emacs20/Makefile b/editors/apel-emacs20/Makefile
new file mode 100644
index 000000000000..ba4aaf4cf58b
--- /dev/null
+++ b/editors/apel-emacs20/Makefile
@@ -0,0 +1,25 @@
+# New ports collection makefile for: apel for emacs20
+# Version required: 9.x
+# Date created: 22 September 1998
+# Whom: Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp>
+#
+# $Id$
+#
+
+MAINTAINER= shige@kuis.kyoto-u.ac.jp
+
+# This is a slave port.
+PORTCLASS= slave
+
+MASTERDIR= ${.CURDIR}/../../editors/apel-emacs
+
+# emacs port setup
+EMACS_NAME= emacs
+EMACS_PORT= emacs20
+EMACS_VER= 20.3
+EMACS_LIBDIR= share/${EMACS_NAME}
+
+# pkg/* files are used in ${.CURDIR}
+PKGDIR= ${.CURDIR}/pkg
+
+.include <${MASTERDIR}/Makefile>
diff --git a/editors/apel-emacs20/pkg-comment b/editors/apel-emacs20/pkg-comment
new file mode 100644
index 000000000000..ddf6d9504fd4
--- /dev/null
+++ b/editors/apel-emacs20/pkg-comment
@@ -0,0 +1 @@
+A Portable Emacs Library for emacs20.
diff --git a/editors/apel-emacs20/pkg-descr b/editors/apel-emacs20/pkg-descr
new file mode 100644
index 000000000000..19f14fa18fdb
--- /dev/null
+++ b/editors/apel-emacs20/pkg-descr
@@ -0,0 +1,29 @@
+A Portable Emacs Library.
+
+--- Emacs Library Porting
+
+APEL is programed by MORIOKA Tomohiko <morioka@jaist.ac.jp>.
+
+ APEL stands for "A Portable Emacs Library". It consists of
+ following modules:
+ APEL
+ - utility to write portable CCL program
+ - utility for Association-list
+ - utility for condition tree and condition/situation-alist
+ - utility for path management or file detection
+ - utility to make file-name
+ - utility to install emacs-lisp package
+ - ROT 13-47-48 Caesar rotation utility
+ emu
+ - poe: emulation module mainly for basic functions and special forms/macros
+ - poem: provide basic functions to write portable MULE programs
+ - mcs: provide MIME charset related features
+ - broken: provide information of broken facilities of Emacs.
+ - emu: bundled in tm-7.106 compat module; it required poe, poem and mcs
+ - text/richtext module
+
+ APEL is installed the following directory tree:
+ ${PREFIX}/share/emacs/site-lisp/apel/ --- APEL
+ ${PREFIX}/share/emacs/20.3/site-lisp/emu/ --- emu
+
+--- Porting by shige <shige@kuis.kyoto-u.ac.jp>
diff --git a/editors/apel-emacs20/pkg-plist b/editors/apel-emacs20/pkg-plist
new file mode 100644
index 000000000000..d84a6952e6e7
--- /dev/null
+++ b/editors/apel-emacs20/pkg-plist
@@ -0,0 +1,44 @@
+%%EMACS_LIBDIR%%/site-lisp/apel/alist.el
+%%EMACS_LIBDIR%%/site-lisp/apel/alist.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/calist.el
+%%EMACS_LIBDIR%%/site-lisp/apel/calist.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/filename.el
+%%EMACS_LIBDIR%%/site-lisp/apel/filename.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/install.el
+%%EMACS_LIBDIR%%/site-lisp/apel/install.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/mule-caesar.el
+%%EMACS_LIBDIR%%/site-lisp/apel/mule-caesar.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/path-util.el
+%%EMACS_LIBDIR%%/site-lisp/apel/path-util.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/inv-19.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/inv-19.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/invisible.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/invisible.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/richtext.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/richtext.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poe.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poe.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-20.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-20.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-e20.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-e20.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-e20_3.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-e20_3.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcharset.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcharset.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-20.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-20.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-e20.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-e20.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl-20.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl-20.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/broken.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/broken.elc
+@dirrm %%EMACS_LIBDIR%%/site-lisp/apel
+@dirrm %%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu
diff --git a/editors/apel-mule/Makefile b/editors/apel-mule/Makefile
new file mode 100644
index 000000000000..79e49e071fe0
--- /dev/null
+++ b/editors/apel-mule/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: apel for mule
+# Version required: 9.x
+# Date created: 23 September 1998
+# Whom: Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp>
+#
+# $Id$
+#
+
+MAINTAINER= shige@kuis.kyoto-u.ac.jp
+
+# This is a slave port.
+PORTCLASS= slave
+
+MASTERDIR= ${.CURDIR}/../../editors/apel-emacs
+
+# emacs port setup
+EMACS_NAME= mule
+EMACS_PORT= mule
+EMACS_VER= 19.34
+EMACS_LIBDIR= share/${EMACS_NAME}
+
+HAVE_COMMON_PORT= YES
+REQUIRE_SETUPEL= YES
+
+# pkg/* files are used in ${.CURDIR}
+PKGDIR= ${.CURDIR}/pkg
+
+.include <${MASTERDIR}/Makefile>
diff --git a/editors/apel-mule/pkg-comment b/editors/apel-mule/pkg-comment
new file mode 100644
index 000000000000..23aba2c81559
--- /dev/null
+++ b/editors/apel-mule/pkg-comment
@@ -0,0 +1 @@
+A Portable Emacs Library for mule.
diff --git a/editors/apel-mule/pkg-descr b/editors/apel-mule/pkg-descr
new file mode 100644
index 000000000000..82399e09b98c
--- /dev/null
+++ b/editors/apel-mule/pkg-descr
@@ -0,0 +1,34 @@
+A Portable Emacs Library.
+
+--- Emacs Library Porting
+
+APEL is programed by MORIOKA Tomohiko <morioka@jaist.ac.jp>.
+
+ APEL stands for "A Portable Emacs Library". It consists of
+ following modules:
+ APEL
+ - utility to write portable CCL program
+ - utility for Association-list
+ - utility for condition tree and condition/situation-alist
+ - utility for path management or file detection
+ - utility to make file-name
+ - utility to install emacs-lisp package
+ - ROT 13-47-48 Caesar rotation utility
+ emu
+ - poe: emulation module mainly for basic functions and special forms/macros
+ - poem: provide basic functions to write portable MULE programs
+ - mcs: provide MIME charset related features
+ - broken: provide information of broken facilities of Emacs.
+ - emu: bundled in tm-7.106 compat module; it required poe, poem and mcs
+ - text/richtext module
+
+ APEL is installed the following directory tree:
+ ${PREFIX}/share/mule/site-lisp/apel/ --- APEL
+ ${PREFIX}/share/mule/19.34/site-lisp/emu/ --- emu
+
+
+To use apel, put the following setup into your ~/.emacs:
+
+ (require 'apel-setup)
+
+--- Porting by shige <shige@kuis.kyoto-u.ac.jp>
diff --git a/editors/apel-mule/pkg-plist b/editors/apel-mule/pkg-plist
new file mode 100644
index 000000000000..5f6e08245f00
--- /dev/null
+++ b/editors/apel-mule/pkg-plist
@@ -0,0 +1,41 @@
+%%EMACS_LIBDIR%%/site-lisp/apel/alist.el
+%%EMACS_LIBDIR%%/site-lisp/apel/alist.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/calist.el
+%%EMACS_LIBDIR%%/site-lisp/apel/calist.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/filename.el
+%%EMACS_LIBDIR%%/site-lisp/apel/filename.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/install.el
+%%EMACS_LIBDIR%%/site-lisp/apel/install.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/mule-caesar.el
+%%EMACS_LIBDIR%%/site-lisp/apel/mule-caesar.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/path-util.el
+%%EMACS_LIBDIR%%/site-lisp/apel/path-util.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu-mule.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu-mule.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/richtext.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/richtext.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poe.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poe.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-om.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-om.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcharset.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcharset.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-om.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-om.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl-om.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl-om.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/invisible.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/invisible.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/inv-19.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/inv-19.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/broken.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/broken.elc
+%%EMACS_LIBDIR%%/site-lisp/apel-setup.el
+@dirrm %%EMACS_LIBDIR%%/site-lisp/apel
+@dirrm %%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu
diff --git a/editors/apel/Makefile b/editors/apel/Makefile
new file mode 100644
index 000000000000..d93de033294b
--- /dev/null
+++ b/editors/apel/Makefile
@@ -0,0 +1,68 @@
+# New ports collection makefile for: apel for emacs
+# Version required: 9.12
+# Date created: 23 September 1998
+# Whom: Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp>
+#
+# $Id$
+#
+
+DISTNAME= apel-${APEL_VER}
+CATEGORIES= editors elisp
+MASTER_SITES= ftp://ftp.jaist.ac.jp/pub/GNU/elisp/apel/
+
+MAINTAINER?= shige@kuis.kyoto-u.ac.jp
+
+# distfile version
+APEL_VER= 9.12
+APEL_SETUPEL= apel-setup.el
+
+# This is a master port.
+PORTCLASS?= master
+
+.if (${PORTCLASS} == "master")
+EMACS_NAME= emacs
+EMACS_PORT= emacs
+EMACS_VER= 19.34
+EMACS_LIBDIR= share/${EMACS_NAME}
+REQUIRE_SETUPEL= YES
+.endif
+
+# target name for make build
+ALL_TARGET?= elc
+
+.if defined(EMACS_PORT)
+PKGNAME= apel-${EMACS_PORT}-${APEL_VER}
+EMACS_CMD= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
+.if !defined(HAVE_COMMON_PORT)
+HAVE_COMMON_PORT= NO
+.endif
+.if !defined(REQUIRE_SETUPEL)
+REQUIRE_SETUPEL= NO
+.endif
+.if defined(HAVE_COMMON_PORT) && (${HAVE_COMMON_PORT} == "YES")
+BUILD_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common
+RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common
+.else
+BUILD_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
+RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
+.endif
+SCRIPTS_ENV= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER}
+PLIST_SUB= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER}
+MAKE_FLAGS= EMACS=${EMACS_CMD}
+.else
+.BEGIN:
+ @${ECHO} "Error: Bad port."
+ @${ECHO} "You must define EMACS_NAME, EMACS_PORT, EMACS_VER, EMACS_LIBDIR."
+ @${FALSE}
+.endif
+
+.if (${REQUIRE_SETUPEL} == "YES")
+pre-configure:
+ @${CP} ${FILESDIR}/${APEL_SETUPEL}.in ${WRKDIR}
+
+post-install:
+ @${INSTALL_DATA} ${WRKDIR}/${APEL_SETUPEL} \
+ ${PREFIX}/${EMACS_LIBDIR}/site-lisp
+.endif
+
+.include <bsd.port.mk>
diff --git a/editors/apel/distinfo b/editors/apel/distinfo
new file mode 100644
index 000000000000..9a00b7e2f379
--- /dev/null
+++ b/editors/apel/distinfo
@@ -0,0 +1 @@
+MD5 (apel-9.12.tar.gz) = bd8e304990b83ac186cb00ee57fafdbd
diff --git a/editors/apel/files/patch-aa b/editors/apel/files/patch-aa
new file mode 100644
index 000000000000..d8595b1a9a38
--- /dev/null
+++ b/editors/apel/files/patch-aa
@@ -0,0 +1,10 @@
+--- Makefile.orig Tue Oct 27 23:58:27 1998
++++ Makefile Sun Nov 1 20:44:21 1998
+@@ -17,6 +17,7 @@
+ PACKAGEDIR = NONE
+ VERSION_SPECIFIC_LISPDIR = NONE
+
++all: elc
+
+ elc:
+ $(EMACS) $(FLAGS) -f compile-apel
diff --git a/editors/apel/files/patch-ac b/editors/apel/files/patch-ac
new file mode 100644
index 000000000000..ab74bc332e6f
--- /dev/null
+++ b/editors/apel/files/patch-ac
@@ -0,0 +1,11 @@
+--- poem-ltn1.el.orig Sun Dec 27 11:19:17 1998
++++ poem-ltn1.el Sun Dec 27 11:19:20 1998
+@@ -161,7 +161,7 @@
+ (let ((emx-binary-mode t))
+ (find-file-noselect filename nowarn rawfile)))
+
+-(defalias find-file-noselect-as-raw-text 'find-file-noselect)
++(defalias 'find-file-noselect-as-raw-text 'find-file-noselect)
+
+ (defun open-network-stream-as-binary (name buffer host service)
+ "Like `open-network-stream', q.v., but don't code conversion."
diff --git a/editors/apel/pkg-comment.emacs19 b/editors/apel/pkg-comment.emacs19
new file mode 100644
index 000000000000..28ffde6807db
--- /dev/null
+++ b/editors/apel/pkg-comment.emacs19
@@ -0,0 +1 @@
+A Portable Emacs Library for emacs.
diff --git a/editors/apel/pkg-comment.emacs20 b/editors/apel/pkg-comment.emacs20
new file mode 100644
index 000000000000..ddf6d9504fd4
--- /dev/null
+++ b/editors/apel/pkg-comment.emacs20
@@ -0,0 +1 @@
+A Portable Emacs Library for emacs20.
diff --git a/editors/apel/pkg-comment.emacs21 b/editors/apel/pkg-comment.emacs21
new file mode 100644
index 000000000000..ddf6d9504fd4
--- /dev/null
+++ b/editors/apel/pkg-comment.emacs21
@@ -0,0 +1 @@
+A Portable Emacs Library for emacs20.
diff --git a/editors/apel/pkg-comment.mule b/editors/apel/pkg-comment.mule
new file mode 100644
index 000000000000..23aba2c81559
--- /dev/null
+++ b/editors/apel/pkg-comment.mule
@@ -0,0 +1 @@
+A Portable Emacs Library for mule.
diff --git a/editors/apel/pkg-descr.emacs19 b/editors/apel/pkg-descr.emacs19
new file mode 100644
index 000000000000..988c0056a9b4
--- /dev/null
+++ b/editors/apel/pkg-descr.emacs19
@@ -0,0 +1,34 @@
+A Portable Emacs Library.
+
+--- Emacs Library Porting
+
+APEL is programed by MORIOKA Tomohiko <morioka@jaist.ac.jp>.
+
+ APEL stands for "A Portable Emacs Library". It consists of
+ following modules:
+ APEL
+ - utility to write portable CCL program
+ - utility for Association-list
+ - utility for condition tree and condition/situation-alist
+ - utility for path management or file detection
+ - utility to make file-name
+ - utility to install emacs-lisp package
+ - ROT 13-47-48 Caesar rotation utility
+ emu
+ - poe: emulation module mainly for basic functions and special forms/macros
+ - poem: provide basic functions to write portable MULE programs
+ - mcs: provide MIME charset related features
+ - broken: provide information of broken facilities of Emacs.
+ - emu: bundled in tm-7.106 compat module; it required poe, poem and mcs
+ - text/richtext module
+
+ APEL is installed the following directory tree:
+ ${PREFIX}/share/emacs/site-lisp/apel/ --- APEL
+ ${PREFIX}/share/emacs/19.34/site-lisp/emu/ --- emu
+
+
+To use apel, put the following setup into your ~/.emacs:
+
+ (require 'apel-setup)
+
+--- Porting by shige <shige@kuis.kyoto-u.ac.jp>
diff --git a/editors/apel/pkg-descr.emacs20 b/editors/apel/pkg-descr.emacs20
new file mode 100644
index 000000000000..19f14fa18fdb
--- /dev/null
+++ b/editors/apel/pkg-descr.emacs20
@@ -0,0 +1,29 @@
+A Portable Emacs Library.
+
+--- Emacs Library Porting
+
+APEL is programed by MORIOKA Tomohiko <morioka@jaist.ac.jp>.
+
+ APEL stands for "A Portable Emacs Library". It consists of
+ following modules:
+ APEL
+ - utility to write portable CCL program
+ - utility for Association-list
+ - utility for condition tree and condition/situation-alist
+ - utility for path management or file detection
+ - utility to make file-name
+ - utility to install emacs-lisp package
+ - ROT 13-47-48 Caesar rotation utility
+ emu
+ - poe: emulation module mainly for basic functions and special forms/macros
+ - poem: provide basic functions to write portable MULE programs
+ - mcs: provide MIME charset related features
+ - broken: provide information of broken facilities of Emacs.
+ - emu: bundled in tm-7.106 compat module; it required poe, poem and mcs
+ - text/richtext module
+
+ APEL is installed the following directory tree:
+ ${PREFIX}/share/emacs/site-lisp/apel/ --- APEL
+ ${PREFIX}/share/emacs/20.3/site-lisp/emu/ --- emu
+
+--- Porting by shige <shige@kuis.kyoto-u.ac.jp>
diff --git a/editors/apel/pkg-descr.emacs21 b/editors/apel/pkg-descr.emacs21
new file mode 100644
index 000000000000..19f14fa18fdb
--- /dev/null
+++ b/editors/apel/pkg-descr.emacs21
@@ -0,0 +1,29 @@
+A Portable Emacs Library.
+
+--- Emacs Library Porting
+
+APEL is programed by MORIOKA Tomohiko <morioka@jaist.ac.jp>.
+
+ APEL stands for "A Portable Emacs Library". It consists of
+ following modules:
+ APEL
+ - utility to write portable CCL program
+ - utility for Association-list
+ - utility for condition tree and condition/situation-alist
+ - utility for path management or file detection
+ - utility to make file-name
+ - utility to install emacs-lisp package
+ - ROT 13-47-48 Caesar rotation utility
+ emu
+ - poe: emulation module mainly for basic functions and special forms/macros
+ - poem: provide basic functions to write portable MULE programs
+ - mcs: provide MIME charset related features
+ - broken: provide information of broken facilities of Emacs.
+ - emu: bundled in tm-7.106 compat module; it required poe, poem and mcs
+ - text/richtext module
+
+ APEL is installed the following directory tree:
+ ${PREFIX}/share/emacs/site-lisp/apel/ --- APEL
+ ${PREFIX}/share/emacs/20.3/site-lisp/emu/ --- emu
+
+--- Porting by shige <shige@kuis.kyoto-u.ac.jp>
diff --git a/editors/apel/pkg-descr.mule b/editors/apel/pkg-descr.mule
new file mode 100644
index 000000000000..82399e09b98c
--- /dev/null
+++ b/editors/apel/pkg-descr.mule
@@ -0,0 +1,34 @@
+A Portable Emacs Library.
+
+--- Emacs Library Porting
+
+APEL is programed by MORIOKA Tomohiko <morioka@jaist.ac.jp>.
+
+ APEL stands for "A Portable Emacs Library". It consists of
+ following modules:
+ APEL
+ - utility to write portable CCL program
+ - utility for Association-list
+ - utility for condition tree and condition/situation-alist
+ - utility for path management or file detection
+ - utility to make file-name
+ - utility to install emacs-lisp package
+ - ROT 13-47-48 Caesar rotation utility
+ emu
+ - poe: emulation module mainly for basic functions and special forms/macros
+ - poem: provide basic functions to write portable MULE programs
+ - mcs: provide MIME charset related features
+ - broken: provide information of broken facilities of Emacs.
+ - emu: bundled in tm-7.106 compat module; it required poe, poem and mcs
+ - text/richtext module
+
+ APEL is installed the following directory tree:
+ ${PREFIX}/share/mule/site-lisp/apel/ --- APEL
+ ${PREFIX}/share/mule/19.34/site-lisp/emu/ --- emu
+
+
+To use apel, put the following setup into your ~/.emacs:
+
+ (require 'apel-setup)
+
+--- Porting by shige <shige@kuis.kyoto-u.ac.jp>
diff --git a/editors/apel/pkg-plist.emacs19 b/editors/apel/pkg-plist.emacs19
new file mode 100644
index 000000000000..943f6057194e
--- /dev/null
+++ b/editors/apel/pkg-plist.emacs19
@@ -0,0 +1,37 @@
+%%EMACS_LIBDIR%%/site-lisp/apel/alist.el
+%%EMACS_LIBDIR%%/site-lisp/apel/alist.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/calist.el
+%%EMACS_LIBDIR%%/site-lisp/apel/calist.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/filename.el
+%%EMACS_LIBDIR%%/site-lisp/apel/filename.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/install.el
+%%EMACS_LIBDIR%%/site-lisp/apel/install.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/mule-caesar.el
+%%EMACS_LIBDIR%%/site-lisp/apel/mule-caesar.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/path-util.el
+%%EMACS_LIBDIR%%/site-lisp/apel/path-util.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/richtext.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/richtext.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poe.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poe.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-ltn1.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-ltn1.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcharset.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcharset.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-ltn1.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-ltn1.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/invisible.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/invisible.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/inv-19.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/inv-19.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/broken.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/broken.elc
+%%EMACS_LIBDIR%%/site-lisp/apel-setup.el
+@dirrm %%EMACS_LIBDIR%%/site-lisp/apel
+@dirrm %%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu
diff --git a/editors/apel/pkg-plist.emacs20 b/editors/apel/pkg-plist.emacs20
new file mode 100644
index 000000000000..d84a6952e6e7
--- /dev/null
+++ b/editors/apel/pkg-plist.emacs20
@@ -0,0 +1,44 @@
+%%EMACS_LIBDIR%%/site-lisp/apel/alist.el
+%%EMACS_LIBDIR%%/site-lisp/apel/alist.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/calist.el
+%%EMACS_LIBDIR%%/site-lisp/apel/calist.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/filename.el
+%%EMACS_LIBDIR%%/site-lisp/apel/filename.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/install.el
+%%EMACS_LIBDIR%%/site-lisp/apel/install.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/mule-caesar.el
+%%EMACS_LIBDIR%%/site-lisp/apel/mule-caesar.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/path-util.el
+%%EMACS_LIBDIR%%/site-lisp/apel/path-util.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/inv-19.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/inv-19.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/invisible.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/invisible.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/richtext.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/richtext.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poe.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poe.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-20.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-20.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-e20.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-e20.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-e20_3.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-e20_3.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcharset.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcharset.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-20.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-20.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-e20.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-e20.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl-20.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl-20.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/broken.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/broken.elc
+@dirrm %%EMACS_LIBDIR%%/site-lisp/apel
+@dirrm %%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu
diff --git a/editors/apel/pkg-plist.emacs21 b/editors/apel/pkg-plist.emacs21
new file mode 100644
index 000000000000..d84a6952e6e7
--- /dev/null
+++ b/editors/apel/pkg-plist.emacs21
@@ -0,0 +1,44 @@
+%%EMACS_LIBDIR%%/site-lisp/apel/alist.el
+%%EMACS_LIBDIR%%/site-lisp/apel/alist.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/calist.el
+%%EMACS_LIBDIR%%/site-lisp/apel/calist.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/filename.el
+%%EMACS_LIBDIR%%/site-lisp/apel/filename.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/install.el
+%%EMACS_LIBDIR%%/site-lisp/apel/install.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/mule-caesar.el
+%%EMACS_LIBDIR%%/site-lisp/apel/mule-caesar.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/path-util.el
+%%EMACS_LIBDIR%%/site-lisp/apel/path-util.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/inv-19.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/inv-19.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/invisible.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/invisible.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/richtext.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/richtext.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poe.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poe.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-20.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-20.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-e20.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-e20.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-e20_3.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-e20_3.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcharset.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcharset.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-20.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-20.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-e20.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-e20.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl-20.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl-20.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/broken.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/broken.elc
+@dirrm %%EMACS_LIBDIR%%/site-lisp/apel
+@dirrm %%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu
diff --git a/editors/apel/pkg-plist.mule b/editors/apel/pkg-plist.mule
new file mode 100644
index 000000000000..5f6e08245f00
--- /dev/null
+++ b/editors/apel/pkg-plist.mule
@@ -0,0 +1,41 @@
+%%EMACS_LIBDIR%%/site-lisp/apel/alist.el
+%%EMACS_LIBDIR%%/site-lisp/apel/alist.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/calist.el
+%%EMACS_LIBDIR%%/site-lisp/apel/calist.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/filename.el
+%%EMACS_LIBDIR%%/site-lisp/apel/filename.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/install.el
+%%EMACS_LIBDIR%%/site-lisp/apel/install.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/mule-caesar.el
+%%EMACS_LIBDIR%%/site-lisp/apel/mule-caesar.elc
+%%EMACS_LIBDIR%%/site-lisp/apel/path-util.el
+%%EMACS_LIBDIR%%/site-lisp/apel/path-util.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu-mule.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/emu-mule.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/richtext.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/richtext.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poe.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poe.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-om.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/poem-om.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcharset.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcharset.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-om.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/mcs-om.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl-om.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/pccl-om.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/invisible.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/invisible.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/inv-19.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/inv-19.elc
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/broken.el
+%%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu/broken.elc
+%%EMACS_LIBDIR%%/site-lisp/apel-setup.el
+@dirrm %%EMACS_LIBDIR%%/site-lisp/apel
+@dirrm %%EMACS_LIBDIR%%/%%EMACS_VER%%/site-lisp/emu
diff --git a/editors/apel/scripts/configure b/editors/apel/scripts/configure
new file mode 100644
index 000000000000..8c2d04dc6aa9
--- /dev/null
+++ b/editors/apel/scripts/configure
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+TARGETS='apel-setup.el'
+
+for i in ${TARGETS}
+do
+ cat ${WRKDIR}/${i}.in | /usr/bin/sed \
+ -e "s;@@PREFIX@@;${PREFIX};g" \
+ -e "s;@@EMACS_LIBDIR@@;${EMACS_LIBDIR};g" \
+ -e "s;@@EMACS_VER@@;${EMACS_VER};g" \
+ > ${WRKDIR}/${i}
+done