summaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorshige <shige@FreeBSD.org>1999-05-09 16:34:29 +0000
committershige <shige@FreeBSD.org>1999-05-09 16:34:29 +0000
commitd4e21b904c5ce4bb7564d136c3228444374512a5 (patch)
treeed6830bc838678ec5859b0b12f2eae02a4613e84 /editors
parent8ed5330b56787a1612aaef003f33c457f2326c71 (diff)
downloadFreeBSD-ports-d4e21b904c5ce4bb7564d136c3228444374512a5.zip
FreeBSD-ports-d4e21b904c5ce4bb7564d136c3228444374512a5.tar.gz
New port: editors/flim-emacs-current.
Diffstat (limited to 'editors')
-rw-r--r--editors/flim-emacs-current/Makefile110
-rw-r--r--editors/flim-emacs-current/distinfo1
-rw-r--r--editors/flim-emacs-current/files/patch-aa11
-rw-r--r--editors/flim-emacs-current/files/patch-ac13
-rw-r--r--editors/flim-emacs-current/files/patch-ad13
-rw-r--r--editors/flim-emacs-current/pkg-comment1
-rw-r--r--editors/flim-emacs-current/pkg-descr19
-rw-r--r--editors/flim-emacs-current/pkg-plist48
-rw-r--r--editors/flim-emacs-current/scripts/configure14
-rw-r--r--editors/flim/Makefile110
-rw-r--r--editors/flim/distinfo1
-rw-r--r--editors/flim/files/patch-aa11
-rw-r--r--editors/flim/files/patch-ac13
-rw-r--r--editors/flim/files/patch-ad13
-rw-r--r--editors/flim/pkg-comment1
-rw-r--r--editors/flim/pkg-comment.emacs201
-rw-r--r--editors/flim/pkg-comment.emacs211
-rw-r--r--editors/flim/pkg-descr19
-rw-r--r--editors/flim/pkg-descr.emacs2019
-rw-r--r--editors/flim/pkg-descr.emacs2119
-rw-r--r--editors/flim/pkg-plist48
-rw-r--r--editors/flim/pkg-plist.emacs2048
-rw-r--r--editors/flim/pkg-plist.emacs2148
-rw-r--r--editors/flim/scripts/configure14
-rw-r--r--editors/flim113-emacs/Makefile110
-rw-r--r--editors/flim113-emacs/distinfo1
-rw-r--r--editors/flim113-emacs/files/patch-aa11
-rw-r--r--editors/flim113-emacs/files/patch-ac13
-rw-r--r--editors/flim113-emacs/files/patch-ad13
-rw-r--r--editors/flim113-emacs/pkg-comment1
-rw-r--r--editors/flim113-emacs/pkg-descr19
-rw-r--r--editors/flim113-emacs/pkg-plist48
-rw-r--r--editors/flim113-emacs/scripts/configure14
-rw-r--r--editors/flim113/Makefile110
-rw-r--r--editors/flim113/distinfo1
-rw-r--r--editors/flim113/files/patch-aa11
-rw-r--r--editors/flim113/files/patch-ac13
-rw-r--r--editors/flim113/files/patch-ad13
-rw-r--r--editors/flim113/pkg-comment1
-rw-r--r--editors/flim113/pkg-comment.emacs191
-rw-r--r--editors/flim113/pkg-descr19
-rw-r--r--editors/flim113/pkg-descr.emacs1919
-rw-r--r--editors/flim113/pkg-plist48
-rw-r--r--editors/flim113/pkg-plist.emacs1948
-rw-r--r--editors/flim113/scripts/configure14
-rw-r--r--editors/flim114-emacs20/Makefile110
-rw-r--r--editors/flim114-emacs20/distinfo1
-rw-r--r--editors/flim114-emacs20/files/patch-aa11
-rw-r--r--editors/flim114-emacs20/files/patch-ac13
-rw-r--r--editors/flim114-emacs20/files/patch-ad13
-rw-r--r--editors/flim114-emacs20/pkg-comment1
-rw-r--r--editors/flim114-emacs20/pkg-descr19
-rw-r--r--editors/flim114-emacs20/pkg-plist48
-rw-r--r--editors/flim114-emacs20/scripts/configure14
54 files changed, 1354 insertions, 0 deletions
diff --git a/editors/flim-emacs-current/Makefile b/editors/flim-emacs-current/Makefile
new file mode 100644
index 0000000..a283c84
--- /dev/null
+++ b/editors/flim-emacs-current/Makefile
@@ -0,0 +1,110 @@
+# New ports collection makefile for: flim for emacs
+# Version required: 1.12.5
+# Date created: 9 May 1999
+# Whom: Shigeyuki FUKUSHIMA <shige@FreeBSD.ORG>
+#
+# $Id$
+#
+
+DISTNAME= flim-${FLIM_VER}
+CATEGORIES= editors elisp
+MASTER_SITES= ftp://ftp.jaist.ac.jp/pub/GNU/elisp/flim/flim-1.12/
+
+MAINTAINER?= shige@FreeBSD.ORG
+
+PORTCLASS?= master
+
+# distfile version
+FLIM_VER= 1.12.5
+FLIMDOCDIR= share/doc/flim
+FLIM_SETUPEL= flim-setup.el
+
+.if (${PORTCLASS} == "master")
+# for emacs
+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 RUN_DEPENDS-emacs port name has the suffix '-common'.
+.if !defined(HAVE_COMMON_PORT)
+HAVE_COMMON_PORT= NO
+.endif
+# if RUN_DEPENDS-emacs needs setup elisp
+.if !defined(REQUIRE_SETUP)
+REQUIRE_SETUPEL= NO
+.endif
+
+.if defined(EMACS_PORT)
+PKGNAME= flim-${EMACS_PORT}-${FLIM_VER}
+EMACS_CMD= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
+BUILD_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
+.if defined(HAVE_COMMON_PORT) && (${HAVE_COMMON_PORT} == "YES")
+RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common
+.else
+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} \
+ FLIMDOCDIR=${FLIMDOCDIR}
+MAKE_FLAGS= EMACS=${EMACS_CMD}
+.if (${EMACS_VER} == "19.34")
+# depends on custom: emacs-19.34 or mule-19.34
+BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT}
+RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT}
+.endif
+# depends on apel
+BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT}
+RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT}
+.else
+.BEGIN:
+ @${ECHO} "Error: Bad port."
+ @${ECHO} "You must define EMACS_NAME, EMACS_PORT, EMACS_VER, EMACS_LIBDIR."
+ @${FALSE}
+.endif
+
+# info files JIS to EUC
+BUILD_DEPENDS+= nkf:${PORTSDIR}/japanese/nkf
+
+.if (${REQUIRE_SETUPEL} == "YES")
+pre-configure:
+ @${CP} ${FILESDIR}/${FLIM_SETUPEL}.in ${WRKDIR}
+.endif
+
+.include <bsd.port.pre.mk>
+
+MAKEINFO= makeinfo --no-split --no-validate
+
+post-build:
+ @(cd ${WRKSRC} ; \
+ for i in mime-en.texi mime-ja.texi; do \
+ ${MV} $${i} $${i}.jis ; \
+ ${CAT} $${i}.jis | nkf -e > $${i} ; \
+ ${ECHO_MSG} "===> Please ignore the following errors." ; \
+ ${MAKEINFO} $${i} || ${TRUE} ; \
+ done)
+
+post-install:
+ @(cd ${WRKSRC} ; \
+ for i in mime-en.info mime-ja.info; do \
+ ${INSTALL_DATA} ${WRKSRC}/$${i} ${PREFIX}/info ; \
+ install-info ${PREFIX}/info/$${i} ${PREFIX}/info/dir ; \
+ done)
+.if (${REQUIRE_SETUPEL} == "YES")
+ @${INSTALL_DATA} ${WRKDIR}/${FLIM_SETUPEL} \
+ ${PREFIX}/${EMACS_LIBDIR}/site-lisp
+.endif
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/${FLIMDOCDIR}
+ @(cd ${WRKSRC} ; \
+ for i in ChangeLog README.* NEWS VERSION ; do \
+ ${INSTALL_DATA} $${i} ${PREFIX}/${FLIMDOCDIR}/ ; \
+ done)
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/editors/flim-emacs-current/distinfo b/editors/flim-emacs-current/distinfo
new file mode 100644
index 0000000..160519c
--- /dev/null
+++ b/editors/flim-emacs-current/distinfo
@@ -0,0 +1 @@
+MD5 (flim-1.12.5.tar.gz) = 4424ecbbdca8ec46cbc05eaefd32fcf8
diff --git a/editors/flim-emacs-current/files/patch-aa b/editors/flim-emacs-current/files/patch-aa
new file mode 100644
index 0000000..450d2b6
--- /dev/null
+++ b/editors/flim-emacs-current/files/patch-aa
@@ -0,0 +1,11 @@
+--- FLIM-CFG.orig Tue Sep 15 15:26:08 1998
++++ FLIM-CFG Sun May 9 01:33:26 1999
+@@ -8,6 +8,8 @@
+
+ (add-to-list 'load-path
+ (expand-file-name "../../site-lisp/apel" data-directory))
++(add-to-list 'load-path
++ (expand-file-name "../site-lisp/emu" data-directory))
+
+ (if (boundp 'LISPDIR)
+ (progn
diff --git a/editors/flim-emacs-current/files/patch-ac b/editors/flim-emacs-current/files/patch-ac
new file mode 100644
index 0000000..71f45d4
--- /dev/null
+++ b/editors/flim-emacs-current/files/patch-ac
@@ -0,0 +1,13 @@
+--- mime-en.texi.orig Wed Jan 27 23:12:41 1999
++++ mime-en.texi Tue Mar 9 06:10:11 1999
+@@ -2,6 +2,10 @@
+ @c Generated automatically from mime-en.sgml by sinfo 3.7.
+ @setfilename mime-en.info
+ @settitle{FLIM 1.12 Reference Manual about MIME Features}
++@dircategory The Emacs editor and associated tools
++@direntry
++* mime-en: (mime-en). MIME features for GNU Emacs. (English)
++@end direntry
+ @titlepage
+ @title FLIM 1.12 Reference Manual about MIME Features
+ @author MORIOKA Tomohiko <morioka@@jaist.ac.jp>
diff --git a/editors/flim-emacs-current/files/patch-ad b/editors/flim-emacs-current/files/patch-ad
new file mode 100644
index 0000000..3ea7ff6
--- /dev/null
+++ b/editors/flim-emacs-current/files/patch-ad
@@ -0,0 +1,13 @@
+--- mime-ja.texi.orig Wed Jan 27 23:12:42 1999
++++ mime-ja.texi Tue Mar 9 06:11:05 1999
+@@ -2,6 +2,10 @@
+ @c Generated automatically from mime-ja.sgml by sinfo 3.7.
+ @setfilename mime-ja.info
+ @settitle{FLIM 1.12 MIME $B5!G=@bL@=q(B}
++@dircategory The Emacs editor and associated tools
++@direntry
++* mime-ja: (mime-ja). MIME features for GNU Emacs. (Japanese)
++@end direntry
+ @titlepage
+ @title FLIM 1.12 MIME $B5!G=@bL@=q(B
+ @author $B<i2,(B $BCNI'(B <morioka@@jaist.ac.jp>
diff --git a/editors/flim-emacs-current/pkg-comment b/editors/flim-emacs-current/pkg-comment
new file mode 100644
index 0000000..02ad795
--- /dev/null
+++ b/editors/flim-emacs-current/pkg-comment
@@ -0,0 +1 @@
+FLIM, message representation or encoding emacs lisp library for emacs.
diff --git a/editors/flim-emacs-current/pkg-descr b/editors/flim-emacs-current/pkg-descr
new file mode 100644
index 0000000..111259a
--- /dev/null
+++ b/editors/flim-emacs-current/pkg-descr
@@ -0,0 +1,19 @@
+FLIM, message representation or encoding emacs lisp library for emacs.
+
+ FLIM is a library to provide basic features about message
+ representation or encoding. It consists of following
+ modules:
+ - STD 11 (RFC 822) parser and utility
+ - MIME library
+ - mailcap parser and utility
+
+ FLIM is installed the following directory tree:
+ ${PREFIX}/share/emacs/site-lisp/flim/ --- FLIM
+
+
+To use flim, put the following setup into your ~/.emacs:
+
+ (require 'apel-setup)
+ (require 'flim-setup)
+
+--- Porting by shige <shige@FreeBSD.ORG>
diff --git a/editors/flim-emacs-current/pkg-plist b/editors/flim-emacs-current/pkg-plist
new file mode 100644
index 0000000..7dcf7c2
--- /dev/null
+++ b/editors/flim-emacs-current/pkg-plist
@@ -0,0 +1,48 @@
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-decode.el
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-decode.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-encode.el
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-encode.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mailcap.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mailcap.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-b-el.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-b-el.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-g.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-g.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-q.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-q.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-u.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-u.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-def.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-def.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-parse.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-parse.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmbuffer.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmbuffer.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmcooked.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmcooked.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmgeneric.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmgeneric.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/std11.el
+%%EMACS_LIBDIR%%/site-lisp/flim/std11.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/smtp.el
+%%EMACS_LIBDIR%%/site-lisp/flim/smtp.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/smtpmail.el
+%%EMACS_LIBDIR%%/site-lisp/flim/smtpmail.elc
+@dirrm %%EMACS_LIBDIR%%/site-lisp/flim
+%%FLIMDOCDIR%%/ChangeLog
+%%FLIMDOCDIR%%/NEWS
+%%FLIMDOCDIR%%/README.en
+%%FLIMDOCDIR%%/README.ja
+%%FLIMDOCDIR%%/VERSION
+@dirrm %%FLIMDOCDIR%%
+@unexec install-info --delete %D/info/mime-en.info %D/info/dir
+@unexec install-info --delete %D/info/mime-ja.info %D/info/dir
+info/mime-en.info
+info/mime-ja.info
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
+@exec install-info %D/info/mime-en.info %D/info/dir
+@exec install-info %D/info/mime-ja.info %D/info/dir
diff --git a/editors/flim-emacs-current/scripts/configure b/editors/flim-emacs-current/scripts/configure
new file mode 100644
index 0000000..16e40f1
--- /dev/null
+++ b/editors/flim-emacs-current/scripts/configure
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+TARGETS='flim-setup.el'
+
+for i in ${TARGETS}
+do
+ if [ -f ${WRKDIR}/${i}.in ]; then
+ 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}
+ fi
+done
diff --git a/editors/flim/Makefile b/editors/flim/Makefile
new file mode 100644
index 0000000..a283c84
--- /dev/null
+++ b/editors/flim/Makefile
@@ -0,0 +1,110 @@
+# New ports collection makefile for: flim for emacs
+# Version required: 1.12.5
+# Date created: 9 May 1999
+# Whom: Shigeyuki FUKUSHIMA <shige@FreeBSD.ORG>
+#
+# $Id$
+#
+
+DISTNAME= flim-${FLIM_VER}
+CATEGORIES= editors elisp
+MASTER_SITES= ftp://ftp.jaist.ac.jp/pub/GNU/elisp/flim/flim-1.12/
+
+MAINTAINER?= shige@FreeBSD.ORG
+
+PORTCLASS?= master
+
+# distfile version
+FLIM_VER= 1.12.5
+FLIMDOCDIR= share/doc/flim
+FLIM_SETUPEL= flim-setup.el
+
+.if (${PORTCLASS} == "master")
+# for emacs
+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 RUN_DEPENDS-emacs port name has the suffix '-common'.
+.if !defined(HAVE_COMMON_PORT)
+HAVE_COMMON_PORT= NO
+.endif
+# if RUN_DEPENDS-emacs needs setup elisp
+.if !defined(REQUIRE_SETUP)
+REQUIRE_SETUPEL= NO
+.endif
+
+.if defined(EMACS_PORT)
+PKGNAME= flim-${EMACS_PORT}-${FLIM_VER}
+EMACS_CMD= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
+BUILD_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
+.if defined(HAVE_COMMON_PORT) && (${HAVE_COMMON_PORT} == "YES")
+RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common
+.else
+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} \
+ FLIMDOCDIR=${FLIMDOCDIR}
+MAKE_FLAGS= EMACS=${EMACS_CMD}
+.if (${EMACS_VER} == "19.34")
+# depends on custom: emacs-19.34 or mule-19.34
+BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT}
+RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT}
+.endif
+# depends on apel
+BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT}
+RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT}
+.else
+.BEGIN:
+ @${ECHO} "Error: Bad port."
+ @${ECHO} "You must define EMACS_NAME, EMACS_PORT, EMACS_VER, EMACS_LIBDIR."
+ @${FALSE}
+.endif
+
+# info files JIS to EUC
+BUILD_DEPENDS+= nkf:${PORTSDIR}/japanese/nkf
+
+.if (${REQUIRE_SETUPEL} == "YES")
+pre-configure:
+ @${CP} ${FILESDIR}/${FLIM_SETUPEL}.in ${WRKDIR}
+.endif
+
+.include <bsd.port.pre.mk>
+
+MAKEINFO= makeinfo --no-split --no-validate
+
+post-build:
+ @(cd ${WRKSRC} ; \
+ for i in mime-en.texi mime-ja.texi; do \
+ ${MV} $${i} $${i}.jis ; \
+ ${CAT} $${i}.jis | nkf -e > $${i} ; \
+ ${ECHO_MSG} "===> Please ignore the following errors." ; \
+ ${MAKEINFO} $${i} || ${TRUE} ; \
+ done)
+
+post-install:
+ @(cd ${WRKSRC} ; \
+ for i in mime-en.info mime-ja.info; do \
+ ${INSTALL_DATA} ${WRKSRC}/$${i} ${PREFIX}/info ; \
+ install-info ${PREFIX}/info/$${i} ${PREFIX}/info/dir ; \
+ done)
+.if (${REQUIRE_SETUPEL} == "YES")
+ @${INSTALL_DATA} ${WRKDIR}/${FLIM_SETUPEL} \
+ ${PREFIX}/${EMACS_LIBDIR}/site-lisp
+.endif
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/${FLIMDOCDIR}
+ @(cd ${WRKSRC} ; \
+ for i in ChangeLog README.* NEWS VERSION ; do \
+ ${INSTALL_DATA} $${i} ${PREFIX}/${FLIMDOCDIR}/ ; \
+ done)
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/editors/flim/distinfo b/editors/flim/distinfo
new file mode 100644
index 0000000..160519c
--- /dev/null
+++ b/editors/flim/distinfo
@@ -0,0 +1 @@
+MD5 (flim-1.12.5.tar.gz) = 4424ecbbdca8ec46cbc05eaefd32fcf8
diff --git a/editors/flim/files/patch-aa b/editors/flim/files/patch-aa
new file mode 100644
index 0000000..450d2b6
--- /dev/null
+++ b/editors/flim/files/patch-aa
@@ -0,0 +1,11 @@
+--- FLIM-CFG.orig Tue Sep 15 15:26:08 1998
++++ FLIM-CFG Sun May 9 01:33:26 1999
+@@ -8,6 +8,8 @@
+
+ (add-to-list 'load-path
+ (expand-file-name "../../site-lisp/apel" data-directory))
++(add-to-list 'load-path
++ (expand-file-name "../site-lisp/emu" data-directory))
+
+ (if (boundp 'LISPDIR)
+ (progn
diff --git a/editors/flim/files/patch-ac b/editors/flim/files/patch-ac
new file mode 100644
index 0000000..71f45d4
--- /dev/null
+++ b/editors/flim/files/patch-ac
@@ -0,0 +1,13 @@
+--- mime-en.texi.orig Wed Jan 27 23:12:41 1999
++++ mime-en.texi Tue Mar 9 06:10:11 1999
+@@ -2,6 +2,10 @@
+ @c Generated automatically from mime-en.sgml by sinfo 3.7.
+ @setfilename mime-en.info
+ @settitle{FLIM 1.12 Reference Manual about MIME Features}
++@dircategory The Emacs editor and associated tools
++@direntry
++* mime-en: (mime-en). MIME features for GNU Emacs. (English)
++@end direntry
+ @titlepage
+ @title FLIM 1.12 Reference Manual about MIME Features
+ @author MORIOKA Tomohiko <morioka@@jaist.ac.jp>
diff --git a/editors/flim/files/patch-ad b/editors/flim/files/patch-ad
new file mode 100644
index 0000000..3ea7ff6
--- /dev/null
+++ b/editors/flim/files/patch-ad
@@ -0,0 +1,13 @@
+--- mime-ja.texi.orig Wed Jan 27 23:12:42 1999
++++ mime-ja.texi Tue Mar 9 06:11:05 1999
+@@ -2,6 +2,10 @@
+ @c Generated automatically from mime-ja.sgml by sinfo 3.7.
+ @setfilename mime-ja.info
+ @settitle{FLIM 1.12 MIME $B5!G=@bL@=q(B}
++@dircategory The Emacs editor and associated tools
++@direntry
++* mime-ja: (mime-ja). MIME features for GNU Emacs. (Japanese)
++@end direntry
+ @titlepage
+ @title FLIM 1.12 MIME $B5!G=@bL@=q(B
+ @author $B<i2,(B $BCNI'(B <morioka@@jaist.ac.jp>
diff --git a/editors/flim/pkg-comment b/editors/flim/pkg-comment
new file mode 100644
index 0000000..02ad795
--- /dev/null
+++ b/editors/flim/pkg-comment
@@ -0,0 +1 @@
+FLIM, message representation or encoding emacs lisp library for emacs.
diff --git a/editors/flim/pkg-comment.emacs20 b/editors/flim/pkg-comment.emacs20
new file mode 100644
index 0000000..02ad795
--- /dev/null
+++ b/editors/flim/pkg-comment.emacs20
@@ -0,0 +1 @@
+FLIM, message representation or encoding emacs lisp library for emacs.
diff --git a/editors/flim/pkg-comment.emacs21 b/editors/flim/pkg-comment.emacs21
new file mode 100644
index 0000000..02ad795
--- /dev/null
+++ b/editors/flim/pkg-comment.emacs21
@@ -0,0 +1 @@
+FLIM, message representation or encoding emacs lisp library for emacs.
diff --git a/editors/flim/pkg-descr b/editors/flim/pkg-descr
new file mode 100644
index 0000000..111259a
--- /dev/null
+++ b/editors/flim/pkg-descr
@@ -0,0 +1,19 @@
+FLIM, message representation or encoding emacs lisp library for emacs.
+
+ FLIM is a library to provide basic features about message
+ representation or encoding. It consists of following
+ modules:
+ - STD 11 (RFC 822) parser and utility
+ - MIME library
+ - mailcap parser and utility
+
+ FLIM is installed the following directory tree:
+ ${PREFIX}/share/emacs/site-lisp/flim/ --- FLIM
+
+
+To use flim, put the following setup into your ~/.emacs:
+
+ (require 'apel-setup)
+ (require 'flim-setup)
+
+--- Porting by shige <shige@FreeBSD.ORG>
diff --git a/editors/flim/pkg-descr.emacs20 b/editors/flim/pkg-descr.emacs20
new file mode 100644
index 0000000..111259a
--- /dev/null
+++ b/editors/flim/pkg-descr.emacs20
@@ -0,0 +1,19 @@
+FLIM, message representation or encoding emacs lisp library for emacs.
+
+ FLIM is a library to provide basic features about message
+ representation or encoding. It consists of following
+ modules:
+ - STD 11 (RFC 822) parser and utility
+ - MIME library
+ - mailcap parser and utility
+
+ FLIM is installed the following directory tree:
+ ${PREFIX}/share/emacs/site-lisp/flim/ --- FLIM
+
+
+To use flim, put the following setup into your ~/.emacs:
+
+ (require 'apel-setup)
+ (require 'flim-setup)
+
+--- Porting by shige <shige@FreeBSD.ORG>
diff --git a/editors/flim/pkg-descr.emacs21 b/editors/flim/pkg-descr.emacs21
new file mode 100644
index 0000000..111259a
--- /dev/null
+++ b/editors/flim/pkg-descr.emacs21
@@ -0,0 +1,19 @@
+FLIM, message representation or encoding emacs lisp library for emacs.
+
+ FLIM is a library to provide basic features about message
+ representation or encoding. It consists of following
+ modules:
+ - STD 11 (RFC 822) parser and utility
+ - MIME library
+ - mailcap parser and utility
+
+ FLIM is installed the following directory tree:
+ ${PREFIX}/share/emacs/site-lisp/flim/ --- FLIM
+
+
+To use flim, put the following setup into your ~/.emacs:
+
+ (require 'apel-setup)
+ (require 'flim-setup)
+
+--- Porting by shige <shige@FreeBSD.ORG>
diff --git a/editors/flim/pkg-plist b/editors/flim/pkg-plist
new file mode 100644
index 0000000..7dcf7c2
--- /dev/null
+++ b/editors/flim/pkg-plist
@@ -0,0 +1,48 @@
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-decode.el
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-decode.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-encode.el
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-encode.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mailcap.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mailcap.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-b-el.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-b-el.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-g.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-g.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-q.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-q.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-u.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-u.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-def.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-def.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-parse.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-parse.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmbuffer.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmbuffer.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmcooked.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmcooked.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmgeneric.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmgeneric.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/std11.el
+%%EMACS_LIBDIR%%/site-lisp/flim/std11.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/smtp.el
+%%EMACS_LIBDIR%%/site-lisp/flim/smtp.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/smtpmail.el
+%%EMACS_LIBDIR%%/site-lisp/flim/smtpmail.elc
+@dirrm %%EMACS_LIBDIR%%/site-lisp/flim
+%%FLIMDOCDIR%%/ChangeLog
+%%FLIMDOCDIR%%/NEWS
+%%FLIMDOCDIR%%/README.en
+%%FLIMDOCDIR%%/README.ja
+%%FLIMDOCDIR%%/VERSION
+@dirrm %%FLIMDOCDIR%%
+@unexec install-info --delete %D/info/mime-en.info %D/info/dir
+@unexec install-info --delete %D/info/mime-ja.info %D/info/dir
+info/mime-en.info
+info/mime-ja.info
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
+@exec install-info %D/info/mime-en.info %D/info/dir
+@exec install-info %D/info/mime-ja.info %D/info/dir
diff --git a/editors/flim/pkg-plist.emacs20 b/editors/flim/pkg-plist.emacs20
new file mode 100644
index 0000000..7dcf7c2
--- /dev/null
+++ b/editors/flim/pkg-plist.emacs20
@@ -0,0 +1,48 @@
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-decode.el
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-decode.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-encode.el
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-encode.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mailcap.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mailcap.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-b-el.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-b-el.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-g.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-g.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-q.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-q.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-u.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-u.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-def.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-def.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-parse.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-parse.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmbuffer.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmbuffer.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmcooked.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmcooked.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmgeneric.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmgeneric.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/std11.el
+%%EMACS_LIBDIR%%/site-lisp/flim/std11.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/smtp.el
+%%EMACS_LIBDIR%%/site-lisp/flim/smtp.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/smtpmail.el
+%%EMACS_LIBDIR%%/site-lisp/flim/smtpmail.elc
+@dirrm %%EMACS_LIBDIR%%/site-lisp/flim
+%%FLIMDOCDIR%%/ChangeLog
+%%FLIMDOCDIR%%/NEWS
+%%FLIMDOCDIR%%/README.en
+%%FLIMDOCDIR%%/README.ja
+%%FLIMDOCDIR%%/VERSION
+@dirrm %%FLIMDOCDIR%%
+@unexec install-info --delete %D/info/mime-en.info %D/info/dir
+@unexec install-info --delete %D/info/mime-ja.info %D/info/dir
+info/mime-en.info
+info/mime-ja.info
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
+@exec install-info %D/info/mime-en.info %D/info/dir
+@exec install-info %D/info/mime-ja.info %D/info/dir
diff --git a/editors/flim/pkg-plist.emacs21 b/editors/flim/pkg-plist.emacs21
new file mode 100644
index 0000000..7dcf7c2
--- /dev/null
+++ b/editors/flim/pkg-plist.emacs21
@@ -0,0 +1,48 @@
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-decode.el
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-decode.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-encode.el
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-encode.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mailcap.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mailcap.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-b-el.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-b-el.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-g.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-g.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-q.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-q.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-u.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-u.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-def.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-def.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-parse.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-parse.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmbuffer.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmbuffer.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmcooked.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmcooked.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmgeneric.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmgeneric.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/std11.el
+%%EMACS_LIBDIR%%/site-lisp/flim/std11.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/smtp.el
+%%EMACS_LIBDIR%%/site-lisp/flim/smtp.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/smtpmail.el
+%%EMACS_LIBDIR%%/site-lisp/flim/smtpmail.elc
+@dirrm %%EMACS_LIBDIR%%/site-lisp/flim
+%%FLIMDOCDIR%%/ChangeLog
+%%FLIMDOCDIR%%/NEWS
+%%FLIMDOCDIR%%/README.en
+%%FLIMDOCDIR%%/README.ja
+%%FLIMDOCDIR%%/VERSION
+@dirrm %%FLIMDOCDIR%%
+@unexec install-info --delete %D/info/mime-en.info %D/info/dir
+@unexec install-info --delete %D/info/mime-ja.info %D/info/dir
+info/mime-en.info
+info/mime-ja.info
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
+@exec install-info %D/info/mime-en.info %D/info/dir
+@exec install-info %D/info/mime-ja.info %D/info/dir
diff --git a/editors/flim/scripts/configure b/editors/flim/scripts/configure
new file mode 100644
index 0000000..16e40f1
--- /dev/null
+++ b/editors/flim/scripts/configure
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+TARGETS='flim-setup.el'
+
+for i in ${TARGETS}
+do
+ if [ -f ${WRKDIR}/${i}.in ]; then
+ 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}
+ fi
+done
diff --git a/editors/flim113-emacs/Makefile b/editors/flim113-emacs/Makefile
new file mode 100644
index 0000000..a283c84
--- /dev/null
+++ b/editors/flim113-emacs/Makefile
@@ -0,0 +1,110 @@
+# New ports collection makefile for: flim for emacs
+# Version required: 1.12.5
+# Date created: 9 May 1999
+# Whom: Shigeyuki FUKUSHIMA <shige@FreeBSD.ORG>
+#
+# $Id$
+#
+
+DISTNAME= flim-${FLIM_VER}
+CATEGORIES= editors elisp
+MASTER_SITES= ftp://ftp.jaist.ac.jp/pub/GNU/elisp/flim/flim-1.12/
+
+MAINTAINER?= shige@FreeBSD.ORG
+
+PORTCLASS?= master
+
+# distfile version
+FLIM_VER= 1.12.5
+FLIMDOCDIR= share/doc/flim
+FLIM_SETUPEL= flim-setup.el
+
+.if (${PORTCLASS} == "master")
+# for emacs
+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 RUN_DEPENDS-emacs port name has the suffix '-common'.
+.if !defined(HAVE_COMMON_PORT)
+HAVE_COMMON_PORT= NO
+.endif
+# if RUN_DEPENDS-emacs needs setup elisp
+.if !defined(REQUIRE_SETUP)
+REQUIRE_SETUPEL= NO
+.endif
+
+.if defined(EMACS_PORT)
+PKGNAME= flim-${EMACS_PORT}-${FLIM_VER}
+EMACS_CMD= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
+BUILD_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
+.if defined(HAVE_COMMON_PORT) && (${HAVE_COMMON_PORT} == "YES")
+RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common
+.else
+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} \
+ FLIMDOCDIR=${FLIMDOCDIR}
+MAKE_FLAGS= EMACS=${EMACS_CMD}
+.if (${EMACS_VER} == "19.34")
+# depends on custom: emacs-19.34 or mule-19.34
+BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT}
+RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT}
+.endif
+# depends on apel
+BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT}
+RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT}
+.else
+.BEGIN:
+ @${ECHO} "Error: Bad port."
+ @${ECHO} "You must define EMACS_NAME, EMACS_PORT, EMACS_VER, EMACS_LIBDIR."
+ @${FALSE}
+.endif
+
+# info files JIS to EUC
+BUILD_DEPENDS+= nkf:${PORTSDIR}/japanese/nkf
+
+.if (${REQUIRE_SETUPEL} == "YES")
+pre-configure:
+ @${CP} ${FILESDIR}/${FLIM_SETUPEL}.in ${WRKDIR}
+.endif
+
+.include <bsd.port.pre.mk>
+
+MAKEINFO= makeinfo --no-split --no-validate
+
+post-build:
+ @(cd ${WRKSRC} ; \
+ for i in mime-en.texi mime-ja.texi; do \
+ ${MV} $${i} $${i}.jis ; \
+ ${CAT} $${i}.jis | nkf -e > $${i} ; \
+ ${ECHO_MSG} "===> Please ignore the following errors." ; \
+ ${MAKEINFO} $${i} || ${TRUE} ; \
+ done)
+
+post-install:
+ @(cd ${WRKSRC} ; \
+ for i in mime-en.info mime-ja.info; do \
+ ${INSTALL_DATA} ${WRKSRC}/$${i} ${PREFIX}/info ; \
+ install-info ${PREFIX}/info/$${i} ${PREFIX}/info/dir ; \
+ done)
+.if (${REQUIRE_SETUPEL} == "YES")
+ @${INSTALL_DATA} ${WRKDIR}/${FLIM_SETUPEL} \
+ ${PREFIX}/${EMACS_LIBDIR}/site-lisp
+.endif
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/${FLIMDOCDIR}
+ @(cd ${WRKSRC} ; \
+ for i in ChangeLog README.* NEWS VERSION ; do \
+ ${INSTALL_DATA} $${i} ${PREFIX}/${FLIMDOCDIR}/ ; \
+ done)
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/editors/flim113-emacs/distinfo b/editors/flim113-emacs/distinfo
new file mode 100644
index 0000000..160519c
--- /dev/null
+++ b/editors/flim113-emacs/distinfo
@@ -0,0 +1 @@
+MD5 (flim-1.12.5.tar.gz) = 4424ecbbdca8ec46cbc05eaefd32fcf8
diff --git a/editors/flim113-emacs/files/patch-aa b/editors/flim113-emacs/files/patch-aa
new file mode 100644
index 0000000..450d2b6
--- /dev/null
+++ b/editors/flim113-emacs/files/patch-aa
@@ -0,0 +1,11 @@
+--- FLIM-CFG.orig Tue Sep 15 15:26:08 1998
++++ FLIM-CFG Sun May 9 01:33:26 1999
+@@ -8,6 +8,8 @@
+
+ (add-to-list 'load-path
+ (expand-file-name "../../site-lisp/apel" data-directory))
++(add-to-list 'load-path
++ (expand-file-name "../site-lisp/emu" data-directory))
+
+ (if (boundp 'LISPDIR)
+ (progn
diff --git a/editors/flim113-emacs/files/patch-ac b/editors/flim113-emacs/files/patch-ac
new file mode 100644
index 0000000..71f45d4
--- /dev/null
+++ b/editors/flim113-emacs/files/patch-ac
@@ -0,0 +1,13 @@
+--- mime-en.texi.orig Wed Jan 27 23:12:41 1999
++++ mime-en.texi Tue Mar 9 06:10:11 1999
+@@ -2,6 +2,10 @@
+ @c Generated automatically from mime-en.sgml by sinfo 3.7.
+ @setfilename mime-en.info
+ @settitle{FLIM 1.12 Reference Manual about MIME Features}
++@dircategory The Emacs editor and associated tools
++@direntry
++* mime-en: (mime-en). MIME features for GNU Emacs. (English)
++@end direntry
+ @titlepage
+ @title FLIM 1.12 Reference Manual about MIME Features
+ @author MORIOKA Tomohiko <morioka@@jaist.ac.jp>
diff --git a/editors/flim113-emacs/files/patch-ad b/editors/flim113-emacs/files/patch-ad
new file mode 100644
index 0000000..3ea7ff6
--- /dev/null
+++ b/editors/flim113-emacs/files/patch-ad
@@ -0,0 +1,13 @@
+--- mime-ja.texi.orig Wed Jan 27 23:12:42 1999
++++ mime-ja.texi Tue Mar 9 06:11:05 1999
+@@ -2,6 +2,10 @@
+ @c Generated automatically from mime-ja.sgml by sinfo 3.7.
+ @setfilename mime-ja.info
+ @settitle{FLIM 1.12 MIME $B5!G=@bL@=q(B}
++@dircategory The Emacs editor and associated tools
++@direntry
++* mime-ja: (mime-ja). MIME features for GNU Emacs. (Japanese)
++@end direntry
+ @titlepage
+ @title FLIM 1.12 MIME $B5!G=@bL@=q(B
+ @author $B<i2,(B $BCNI'(B <morioka@@jaist.ac.jp>
diff --git a/editors/flim113-emacs/pkg-comment b/editors/flim113-emacs/pkg-comment
new file mode 100644
index 0000000..02ad795
--- /dev/null
+++ b/editors/flim113-emacs/pkg-comment
@@ -0,0 +1 @@
+FLIM, message representation or encoding emacs lisp library for emacs.
diff --git a/editors/flim113-emacs/pkg-descr b/editors/flim113-emacs/pkg-descr
new file mode 100644
index 0000000..111259a
--- /dev/null
+++ b/editors/flim113-emacs/pkg-descr
@@ -0,0 +1,19 @@
+FLIM, message representation or encoding emacs lisp library for emacs.
+
+ FLIM is a library to provide basic features about message
+ representation or encoding. It consists of following
+ modules:
+ - STD 11 (RFC 822) parser and utility
+ - MIME library
+ - mailcap parser and utility
+
+ FLIM is installed the following directory tree:
+ ${PREFIX}/share/emacs/site-lisp/flim/ --- FLIM
+
+
+To use flim, put the following setup into your ~/.emacs:
+
+ (require 'apel-setup)
+ (require 'flim-setup)
+
+--- Porting by shige <shige@FreeBSD.ORG>
diff --git a/editors/flim113-emacs/pkg-plist b/editors/flim113-emacs/pkg-plist
new file mode 100644
index 0000000..7dcf7c2
--- /dev/null
+++ b/editors/flim113-emacs/pkg-plist
@@ -0,0 +1,48 @@
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-decode.el
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-decode.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-encode.el
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-encode.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mailcap.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mailcap.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-b-el.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-b-el.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-g.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-g.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-q.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-q.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-u.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-u.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-def.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-def.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-parse.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-parse.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmbuffer.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmbuffer.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmcooked.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmcooked.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmgeneric.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmgeneric.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/std11.el
+%%EMACS_LIBDIR%%/site-lisp/flim/std11.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/smtp.el
+%%EMACS_LIBDIR%%/site-lisp/flim/smtp.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/smtpmail.el
+%%EMACS_LIBDIR%%/site-lisp/flim/smtpmail.elc
+@dirrm %%EMACS_LIBDIR%%/site-lisp/flim
+%%FLIMDOCDIR%%/ChangeLog
+%%FLIMDOCDIR%%/NEWS
+%%FLIMDOCDIR%%/README.en
+%%FLIMDOCDIR%%/README.ja
+%%FLIMDOCDIR%%/VERSION
+@dirrm %%FLIMDOCDIR%%
+@unexec install-info --delete %D/info/mime-en.info %D/info/dir
+@unexec install-info --delete %D/info/mime-ja.info %D/info/dir
+info/mime-en.info
+info/mime-ja.info
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
+@exec install-info %D/info/mime-en.info %D/info/dir
+@exec install-info %D/info/mime-ja.info %D/info/dir
diff --git a/editors/flim113-emacs/scripts/configure b/editors/flim113-emacs/scripts/configure
new file mode 100644
index 0000000..16e40f1
--- /dev/null
+++ b/editors/flim113-emacs/scripts/configure
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+TARGETS='flim-setup.el'
+
+for i in ${TARGETS}
+do
+ if [ -f ${WRKDIR}/${i}.in ]; then
+ 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}
+ fi
+done
diff --git a/editors/flim113/Makefile b/editors/flim113/Makefile
new file mode 100644
index 0000000..a283c84
--- /dev/null
+++ b/editors/flim113/Makefile
@@ -0,0 +1,110 @@
+# New ports collection makefile for: flim for emacs
+# Version required: 1.12.5
+# Date created: 9 May 1999
+# Whom: Shigeyuki FUKUSHIMA <shige@FreeBSD.ORG>
+#
+# $Id$
+#
+
+DISTNAME= flim-${FLIM_VER}
+CATEGORIES= editors elisp
+MASTER_SITES= ftp://ftp.jaist.ac.jp/pub/GNU/elisp/flim/flim-1.12/
+
+MAINTAINER?= shige@FreeBSD.ORG
+
+PORTCLASS?= master
+
+# distfile version
+FLIM_VER= 1.12.5
+FLIMDOCDIR= share/doc/flim
+FLIM_SETUPEL= flim-setup.el
+
+.if (${PORTCLASS} == "master")
+# for emacs
+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 RUN_DEPENDS-emacs port name has the suffix '-common'.
+.if !defined(HAVE_COMMON_PORT)
+HAVE_COMMON_PORT= NO
+.endif
+# if RUN_DEPENDS-emacs needs setup elisp
+.if !defined(REQUIRE_SETUP)
+REQUIRE_SETUPEL= NO
+.endif
+
+.if defined(EMACS_PORT)
+PKGNAME= flim-${EMACS_PORT}-${FLIM_VER}
+EMACS_CMD= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
+BUILD_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
+.if defined(HAVE_COMMON_PORT) && (${HAVE_COMMON_PORT} == "YES")
+RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common
+.else
+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} \
+ FLIMDOCDIR=${FLIMDOCDIR}
+MAKE_FLAGS= EMACS=${EMACS_CMD}
+.if (${EMACS_VER} == "19.34")
+# depends on custom: emacs-19.34 or mule-19.34
+BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT}
+RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT}
+.endif
+# depends on apel
+BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT}
+RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT}
+.else
+.BEGIN:
+ @${ECHO} "Error: Bad port."
+ @${ECHO} "You must define EMACS_NAME, EMACS_PORT, EMACS_VER, EMACS_LIBDIR."
+ @${FALSE}
+.endif
+
+# info files JIS to EUC
+BUILD_DEPENDS+= nkf:${PORTSDIR}/japanese/nkf
+
+.if (${REQUIRE_SETUPEL} == "YES")
+pre-configure:
+ @${CP} ${FILESDIR}/${FLIM_SETUPEL}.in ${WRKDIR}
+.endif
+
+.include <bsd.port.pre.mk>
+
+MAKEINFO= makeinfo --no-split --no-validate
+
+post-build:
+ @(cd ${WRKSRC} ; \
+ for i in mime-en.texi mime-ja.texi; do \
+ ${MV} $${i} $${i}.jis ; \
+ ${CAT} $${i}.jis | nkf -e > $${i} ; \
+ ${ECHO_MSG} "===> Please ignore the following errors." ; \
+ ${MAKEINFO} $${i} || ${TRUE} ; \
+ done)
+
+post-install:
+ @(cd ${WRKSRC} ; \
+ for i in mime-en.info mime-ja.info; do \
+ ${INSTALL_DATA} ${WRKSRC}/$${i} ${PREFIX}/info ; \
+ install-info ${PREFIX}/info/$${i} ${PREFIX}/info/dir ; \
+ done)
+.if (${REQUIRE_SETUPEL} == "YES")
+ @${INSTALL_DATA} ${WRKDIR}/${FLIM_SETUPEL} \
+ ${PREFIX}/${EMACS_LIBDIR}/site-lisp
+.endif
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/${FLIMDOCDIR}
+ @(cd ${WRKSRC} ; \
+ for i in ChangeLog README.* NEWS VERSION ; do \
+ ${INSTALL_DATA} $${i} ${PREFIX}/${FLIMDOCDIR}/ ; \
+ done)
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/editors/flim113/distinfo b/editors/flim113/distinfo
new file mode 100644
index 0000000..160519c
--- /dev/null
+++ b/editors/flim113/distinfo
@@ -0,0 +1 @@
+MD5 (flim-1.12.5.tar.gz) = 4424ecbbdca8ec46cbc05eaefd32fcf8
diff --git a/editors/flim113/files/patch-aa b/editors/flim113/files/patch-aa
new file mode 100644
index 0000000..450d2b6
--- /dev/null
+++ b/editors/flim113/files/patch-aa
@@ -0,0 +1,11 @@
+--- FLIM-CFG.orig Tue Sep 15 15:26:08 1998
++++ FLIM-CFG Sun May 9 01:33:26 1999
+@@ -8,6 +8,8 @@
+
+ (add-to-list 'load-path
+ (expand-file-name "../../site-lisp/apel" data-directory))
++(add-to-list 'load-path
++ (expand-file-name "../site-lisp/emu" data-directory))
+
+ (if (boundp 'LISPDIR)
+ (progn
diff --git a/editors/flim113/files/patch-ac b/editors/flim113/files/patch-ac
new file mode 100644
index 0000000..71f45d4
--- /dev/null
+++ b/editors/flim113/files/patch-ac
@@ -0,0 +1,13 @@
+--- mime-en.texi.orig Wed Jan 27 23:12:41 1999
++++ mime-en.texi Tue Mar 9 06:10:11 1999
+@@ -2,6 +2,10 @@
+ @c Generated automatically from mime-en.sgml by sinfo 3.7.
+ @setfilename mime-en.info
+ @settitle{FLIM 1.12 Reference Manual about MIME Features}
++@dircategory The Emacs editor and associated tools
++@direntry
++* mime-en: (mime-en). MIME features for GNU Emacs. (English)
++@end direntry
+ @titlepage
+ @title FLIM 1.12 Reference Manual about MIME Features
+ @author MORIOKA Tomohiko <morioka@@jaist.ac.jp>
diff --git a/editors/flim113/files/patch-ad b/editors/flim113/files/patch-ad
new file mode 100644
index 0000000..3ea7ff6
--- /dev/null
+++ b/editors/flim113/files/patch-ad
@@ -0,0 +1,13 @@
+--- mime-ja.texi.orig Wed Jan 27 23:12:42 1999
++++ mime-ja.texi Tue Mar 9 06:11:05 1999
+@@ -2,6 +2,10 @@
+ @c Generated automatically from mime-ja.sgml by sinfo 3.7.
+ @setfilename mime-ja.info
+ @settitle{FLIM 1.12 MIME $B5!G=@bL@=q(B}
++@dircategory The Emacs editor and associated tools
++@direntry
++* mime-ja: (mime-ja). MIME features for GNU Emacs. (Japanese)
++@end direntry
+ @titlepage
+ @title FLIM 1.12 MIME $B5!G=@bL@=q(B
+ @author $B<i2,(B $BCNI'(B <morioka@@jaist.ac.jp>
diff --git a/editors/flim113/pkg-comment b/editors/flim113/pkg-comment
new file mode 100644
index 0000000..02ad795
--- /dev/null
+++ b/editors/flim113/pkg-comment
@@ -0,0 +1 @@
+FLIM, message representation or encoding emacs lisp library for emacs.
diff --git a/editors/flim113/pkg-comment.emacs19 b/editors/flim113/pkg-comment.emacs19
new file mode 100644
index 0000000..02ad795
--- /dev/null
+++ b/editors/flim113/pkg-comment.emacs19
@@ -0,0 +1 @@
+FLIM, message representation or encoding emacs lisp library for emacs.
diff --git a/editors/flim113/pkg-descr b/editors/flim113/pkg-descr
new file mode 100644
index 0000000..111259a
--- /dev/null
+++ b/editors/flim113/pkg-descr
@@ -0,0 +1,19 @@
+FLIM, message representation or encoding emacs lisp library for emacs.
+
+ FLIM is a library to provide basic features about message
+ representation or encoding. It consists of following
+ modules:
+ - STD 11 (RFC 822) parser and utility
+ - MIME library
+ - mailcap parser and utility
+
+ FLIM is installed the following directory tree:
+ ${PREFIX}/share/emacs/site-lisp/flim/ --- FLIM
+
+
+To use flim, put the following setup into your ~/.emacs:
+
+ (require 'apel-setup)
+ (require 'flim-setup)
+
+--- Porting by shige <shige@FreeBSD.ORG>
diff --git a/editors/flim113/pkg-descr.emacs19 b/editors/flim113/pkg-descr.emacs19
new file mode 100644
index 0000000..111259a
--- /dev/null
+++ b/editors/flim113/pkg-descr.emacs19
@@ -0,0 +1,19 @@
+FLIM, message representation or encoding emacs lisp library for emacs.
+
+ FLIM is a library to provide basic features about message
+ representation or encoding. It consists of following
+ modules:
+ - STD 11 (RFC 822) parser and utility
+ - MIME library
+ - mailcap parser and utility
+
+ FLIM is installed the following directory tree:
+ ${PREFIX}/share/emacs/site-lisp/flim/ --- FLIM
+
+
+To use flim, put the following setup into your ~/.emacs:
+
+ (require 'apel-setup)
+ (require 'flim-setup)
+
+--- Porting by shige <shige@FreeBSD.ORG>
diff --git a/editors/flim113/pkg-plist b/editors/flim113/pkg-plist
new file mode 100644
index 0000000..7dcf7c2
--- /dev/null
+++ b/editors/flim113/pkg-plist
@@ -0,0 +1,48 @@
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-decode.el
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-decode.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-encode.el
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-encode.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mailcap.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mailcap.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-b-el.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-b-el.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-g.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-g.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-q.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-q.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-u.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-u.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-def.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-def.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-parse.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-parse.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmbuffer.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmbuffer.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmcooked.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmcooked.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmgeneric.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmgeneric.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/std11.el
+%%EMACS_LIBDIR%%/site-lisp/flim/std11.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/smtp.el
+%%EMACS_LIBDIR%%/site-lisp/flim/smtp.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/smtpmail.el
+%%EMACS_LIBDIR%%/site-lisp/flim/smtpmail.elc
+@dirrm %%EMACS_LIBDIR%%/site-lisp/flim
+%%FLIMDOCDIR%%/ChangeLog
+%%FLIMDOCDIR%%/NEWS
+%%FLIMDOCDIR%%/README.en
+%%FLIMDOCDIR%%/README.ja
+%%FLIMDOCDIR%%/VERSION
+@dirrm %%FLIMDOCDIR%%
+@unexec install-info --delete %D/info/mime-en.info %D/info/dir
+@unexec install-info --delete %D/info/mime-ja.info %D/info/dir
+info/mime-en.info
+info/mime-ja.info
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
+@exec install-info %D/info/mime-en.info %D/info/dir
+@exec install-info %D/info/mime-ja.info %D/info/dir
diff --git a/editors/flim113/pkg-plist.emacs19 b/editors/flim113/pkg-plist.emacs19
new file mode 100644
index 0000000..7dcf7c2
--- /dev/null
+++ b/editors/flim113/pkg-plist.emacs19
@@ -0,0 +1,48 @@
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-decode.el
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-decode.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-encode.el
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-encode.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mailcap.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mailcap.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-b-el.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-b-el.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-g.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-g.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-q.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-q.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-u.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-u.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-def.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-def.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-parse.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-parse.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmbuffer.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmbuffer.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmcooked.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmcooked.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmgeneric.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmgeneric.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/std11.el
+%%EMACS_LIBDIR%%/site-lisp/flim/std11.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/smtp.el
+%%EMACS_LIBDIR%%/site-lisp/flim/smtp.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/smtpmail.el
+%%EMACS_LIBDIR%%/site-lisp/flim/smtpmail.elc
+@dirrm %%EMACS_LIBDIR%%/site-lisp/flim
+%%FLIMDOCDIR%%/ChangeLog
+%%FLIMDOCDIR%%/NEWS
+%%FLIMDOCDIR%%/README.en
+%%FLIMDOCDIR%%/README.ja
+%%FLIMDOCDIR%%/VERSION
+@dirrm %%FLIMDOCDIR%%
+@unexec install-info --delete %D/info/mime-en.info %D/info/dir
+@unexec install-info --delete %D/info/mime-ja.info %D/info/dir
+info/mime-en.info
+info/mime-ja.info
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
+@exec install-info %D/info/mime-en.info %D/info/dir
+@exec install-info %D/info/mime-ja.info %D/info/dir
diff --git a/editors/flim113/scripts/configure b/editors/flim113/scripts/configure
new file mode 100644
index 0000000..16e40f1
--- /dev/null
+++ b/editors/flim113/scripts/configure
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+TARGETS='flim-setup.el'
+
+for i in ${TARGETS}
+do
+ if [ -f ${WRKDIR}/${i}.in ]; then
+ 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}
+ fi
+done
diff --git a/editors/flim114-emacs20/Makefile b/editors/flim114-emacs20/Makefile
new file mode 100644
index 0000000..a283c84
--- /dev/null
+++ b/editors/flim114-emacs20/Makefile
@@ -0,0 +1,110 @@
+# New ports collection makefile for: flim for emacs
+# Version required: 1.12.5
+# Date created: 9 May 1999
+# Whom: Shigeyuki FUKUSHIMA <shige@FreeBSD.ORG>
+#
+# $Id$
+#
+
+DISTNAME= flim-${FLIM_VER}
+CATEGORIES= editors elisp
+MASTER_SITES= ftp://ftp.jaist.ac.jp/pub/GNU/elisp/flim/flim-1.12/
+
+MAINTAINER?= shige@FreeBSD.ORG
+
+PORTCLASS?= master
+
+# distfile version
+FLIM_VER= 1.12.5
+FLIMDOCDIR= share/doc/flim
+FLIM_SETUPEL= flim-setup.el
+
+.if (${PORTCLASS} == "master")
+# for emacs
+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 RUN_DEPENDS-emacs port name has the suffix '-common'.
+.if !defined(HAVE_COMMON_PORT)
+HAVE_COMMON_PORT= NO
+.endif
+# if RUN_DEPENDS-emacs needs setup elisp
+.if !defined(REQUIRE_SETUP)
+REQUIRE_SETUPEL= NO
+.endif
+
+.if defined(EMACS_PORT)
+PKGNAME= flim-${EMACS_PORT}-${FLIM_VER}
+EMACS_CMD= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
+BUILD_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
+.if defined(HAVE_COMMON_PORT) && (${HAVE_COMMON_PORT} == "YES")
+RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common
+.else
+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} \
+ FLIMDOCDIR=${FLIMDOCDIR}
+MAKE_FLAGS= EMACS=${EMACS_CMD}
+.if (${EMACS_VER} == "19.34")
+# depends on custom: emacs-19.34 or mule-19.34
+BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT}
+RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT}
+.endif
+# depends on apel
+BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT}
+RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT}
+.else
+.BEGIN:
+ @${ECHO} "Error: Bad port."
+ @${ECHO} "You must define EMACS_NAME, EMACS_PORT, EMACS_VER, EMACS_LIBDIR."
+ @${FALSE}
+.endif
+
+# info files JIS to EUC
+BUILD_DEPENDS+= nkf:${PORTSDIR}/japanese/nkf
+
+.if (${REQUIRE_SETUPEL} == "YES")
+pre-configure:
+ @${CP} ${FILESDIR}/${FLIM_SETUPEL}.in ${WRKDIR}
+.endif
+
+.include <bsd.port.pre.mk>
+
+MAKEINFO= makeinfo --no-split --no-validate
+
+post-build:
+ @(cd ${WRKSRC} ; \
+ for i in mime-en.texi mime-ja.texi; do \
+ ${MV} $${i} $${i}.jis ; \
+ ${CAT} $${i}.jis | nkf -e > $${i} ; \
+ ${ECHO_MSG} "===> Please ignore the following errors." ; \
+ ${MAKEINFO} $${i} || ${TRUE} ; \
+ done)
+
+post-install:
+ @(cd ${WRKSRC} ; \
+ for i in mime-en.info mime-ja.info; do \
+ ${INSTALL_DATA} ${WRKSRC}/$${i} ${PREFIX}/info ; \
+ install-info ${PREFIX}/info/$${i} ${PREFIX}/info/dir ; \
+ done)
+.if (${REQUIRE_SETUPEL} == "YES")
+ @${INSTALL_DATA} ${WRKDIR}/${FLIM_SETUPEL} \
+ ${PREFIX}/${EMACS_LIBDIR}/site-lisp
+.endif
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/${FLIMDOCDIR}
+ @(cd ${WRKSRC} ; \
+ for i in ChangeLog README.* NEWS VERSION ; do \
+ ${INSTALL_DATA} $${i} ${PREFIX}/${FLIMDOCDIR}/ ; \
+ done)
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/editors/flim114-emacs20/distinfo b/editors/flim114-emacs20/distinfo
new file mode 100644
index 0000000..160519c
--- /dev/null
+++ b/editors/flim114-emacs20/distinfo
@@ -0,0 +1 @@
+MD5 (flim-1.12.5.tar.gz) = 4424ecbbdca8ec46cbc05eaefd32fcf8
diff --git a/editors/flim114-emacs20/files/patch-aa b/editors/flim114-emacs20/files/patch-aa
new file mode 100644
index 0000000..450d2b6
--- /dev/null
+++ b/editors/flim114-emacs20/files/patch-aa
@@ -0,0 +1,11 @@
+--- FLIM-CFG.orig Tue Sep 15 15:26:08 1998
++++ FLIM-CFG Sun May 9 01:33:26 1999
+@@ -8,6 +8,8 @@
+
+ (add-to-list 'load-path
+ (expand-file-name "../../site-lisp/apel" data-directory))
++(add-to-list 'load-path
++ (expand-file-name "../site-lisp/emu" data-directory))
+
+ (if (boundp 'LISPDIR)
+ (progn
diff --git a/editors/flim114-emacs20/files/patch-ac b/editors/flim114-emacs20/files/patch-ac
new file mode 100644
index 0000000..71f45d4
--- /dev/null
+++ b/editors/flim114-emacs20/files/patch-ac
@@ -0,0 +1,13 @@
+--- mime-en.texi.orig Wed Jan 27 23:12:41 1999
++++ mime-en.texi Tue Mar 9 06:10:11 1999
+@@ -2,6 +2,10 @@
+ @c Generated automatically from mime-en.sgml by sinfo 3.7.
+ @setfilename mime-en.info
+ @settitle{FLIM 1.12 Reference Manual about MIME Features}
++@dircategory The Emacs editor and associated tools
++@direntry
++* mime-en: (mime-en). MIME features for GNU Emacs. (English)
++@end direntry
+ @titlepage
+ @title FLIM 1.12 Reference Manual about MIME Features
+ @author MORIOKA Tomohiko <morioka@@jaist.ac.jp>
diff --git a/editors/flim114-emacs20/files/patch-ad b/editors/flim114-emacs20/files/patch-ad
new file mode 100644
index 0000000..3ea7ff6
--- /dev/null
+++ b/editors/flim114-emacs20/files/patch-ad
@@ -0,0 +1,13 @@
+--- mime-ja.texi.orig Wed Jan 27 23:12:42 1999
++++ mime-ja.texi Tue Mar 9 06:11:05 1999
+@@ -2,6 +2,10 @@
+ @c Generated automatically from mime-ja.sgml by sinfo 3.7.
+ @setfilename mime-ja.info
+ @settitle{FLIM 1.12 MIME $B5!G=@bL@=q(B}
++@dircategory The Emacs editor and associated tools
++@direntry
++* mime-ja: (mime-ja). MIME features for GNU Emacs. (Japanese)
++@end direntry
+ @titlepage
+ @title FLIM 1.12 MIME $B5!G=@bL@=q(B
+ @author $B<i2,(B $BCNI'(B <morioka@@jaist.ac.jp>
diff --git a/editors/flim114-emacs20/pkg-comment b/editors/flim114-emacs20/pkg-comment
new file mode 100644
index 0000000..02ad795
--- /dev/null
+++ b/editors/flim114-emacs20/pkg-comment
@@ -0,0 +1 @@
+FLIM, message representation or encoding emacs lisp library for emacs.
diff --git a/editors/flim114-emacs20/pkg-descr b/editors/flim114-emacs20/pkg-descr
new file mode 100644
index 0000000..111259a
--- /dev/null
+++ b/editors/flim114-emacs20/pkg-descr
@@ -0,0 +1,19 @@
+FLIM, message representation or encoding emacs lisp library for emacs.
+
+ FLIM is a library to provide basic features about message
+ representation or encoding. It consists of following
+ modules:
+ - STD 11 (RFC 822) parser and utility
+ - MIME library
+ - mailcap parser and utility
+
+ FLIM is installed the following directory tree:
+ ${PREFIX}/share/emacs/site-lisp/flim/ --- FLIM
+
+
+To use flim, put the following setup into your ~/.emacs:
+
+ (require 'apel-setup)
+ (require 'flim-setup)
+
+--- Porting by shige <shige@FreeBSD.ORG>
diff --git a/editors/flim114-emacs20/pkg-plist b/editors/flim114-emacs20/pkg-plist
new file mode 100644
index 0000000..7dcf7c2
--- /dev/null
+++ b/editors/flim114-emacs20/pkg-plist
@@ -0,0 +1,48 @@
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-decode.el
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-decode.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-encode.el
+%%EMACS_LIBDIR%%/site-lisp/flim/eword-encode.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mailcap.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mailcap.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-b-el.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-b-el.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-g.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-g.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-q.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-q.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-u.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel-u.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mel.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mel.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-def.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-def.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-parse.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime-parse.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mime.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mime.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmbuffer.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmbuffer.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmcooked.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmcooked.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/mmgeneric.el
+%%EMACS_LIBDIR%%/site-lisp/flim/mmgeneric.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/std11.el
+%%EMACS_LIBDIR%%/site-lisp/flim/std11.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/smtp.el
+%%EMACS_LIBDIR%%/site-lisp/flim/smtp.elc
+%%EMACS_LIBDIR%%/site-lisp/flim/smtpmail.el
+%%EMACS_LIBDIR%%/site-lisp/flim/smtpmail.elc
+@dirrm %%EMACS_LIBDIR%%/site-lisp/flim
+%%FLIMDOCDIR%%/ChangeLog
+%%FLIMDOCDIR%%/NEWS
+%%FLIMDOCDIR%%/README.en
+%%FLIMDOCDIR%%/README.ja
+%%FLIMDOCDIR%%/VERSION
+@dirrm %%FLIMDOCDIR%%
+@unexec install-info --delete %D/info/mime-en.info %D/info/dir
+@unexec install-info --delete %D/info/mime-ja.info %D/info/dir
+info/mime-en.info
+info/mime-ja.info
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
+@exec install-info %D/info/mime-en.info %D/info/dir
+@exec install-info %D/info/mime-ja.info %D/info/dir
diff --git a/editors/flim114-emacs20/scripts/configure b/editors/flim114-emacs20/scripts/configure
new file mode 100644
index 0000000..16e40f1
--- /dev/null
+++ b/editors/flim114-emacs20/scripts/configure
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+TARGETS='flim-setup.el'
+
+for i in ${TARGETS}
+do
+ if [ -f ${WRKDIR}/${i}.in ]; then
+ 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}
+ fi
+done
OpenPOWER on IntegriCloud