diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/flim-emacs/Makefile | 110 | ||||
-rw-r--r-- | editors/flim-emacs/distinfo | 1 | ||||
-rw-r--r-- | editors/flim-emacs/files/patch-aa | 11 | ||||
-rw-r--r-- | editors/flim-emacs/files/patch-ac | 14 | ||||
-rw-r--r-- | editors/flim-emacs/files/patch-ad | 14 | ||||
-rw-r--r-- | editors/flim-emacs/pkg-comment | 1 | ||||
-rw-r--r-- | editors/flim-emacs/pkg-descr | 19 | ||||
-rw-r--r-- | editors/flim-emacs/pkg-plist | 39 | ||||
-rw-r--r-- | editors/flim-emacs/scripts/configure | 14 |
9 files changed, 223 insertions, 0 deletions
diff --git a/editors/flim-emacs/Makefile b/editors/flim-emacs/Makefile new file mode 100644 index 000000000000..73c5abfb6a89 --- /dev/null +++ b/editors/flim-emacs/Makefile @@ -0,0 +1,110 @@ +# New ports collection makefile for: flim for emacs +# Version required: 1.9.2 +# 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.09/ + +MAINTAINER?= shige@FreeBSD.ORG + +PORTCLASS?= master + +# distfile version +FLIM_VER= 1.9.2 +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.* ; do \ + ${INSTALL_DATA} $${i} ${PREFIX}/${FLIMDOCDIR}/ ; \ + done) +.endif + +.include <bsd.port.post.mk> diff --git a/editors/flim-emacs/distinfo b/editors/flim-emacs/distinfo new file mode 100644 index 000000000000..4593ae0da938 --- /dev/null +++ b/editors/flim-emacs/distinfo @@ -0,0 +1 @@ +MD5 (flim-1.9.2.tar.gz) = 081476315ef93663d8567fb5b93ab921 diff --git a/editors/flim-emacs/files/patch-aa b/editors/flim-emacs/files/patch-aa new file mode 100644 index 000000000000..450d2b6f8af6 --- /dev/null +++ b/editors/flim-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/flim-emacs/files/patch-ac b/editors/flim-emacs/files/patch-ac new file mode 100644 index 000000000000..f66045768546 --- /dev/null +++ b/editors/flim-emacs/files/patch-ac @@ -0,0 +1,14 @@ +--- mime-en.texi.orig Sun Dec 27 17:48:47 1998 ++++ mime-en.texi Sun Dec 27 17:49:17 1998 +@@ -9,6 +9,11 @@ + @node Top, Introduction, (dir), (dir) + @top FLIM 1.9 Manual about MIME Features + ++@dircategory The Emacs editor and associated tools ++@direntry ++* mime-en: (mime-en). MIME features for GNU Emacs. (English) ++@end direntry ++ + @ifinfo + + This file documents MIME features of FLIM, a Internet message diff --git a/editors/flim-emacs/files/patch-ad b/editors/flim-emacs/files/patch-ad new file mode 100644 index 000000000000..479cdb38146b --- /dev/null +++ b/editors/flim-emacs/files/patch-ad @@ -0,0 +1,14 @@ +--- mime-ja.texi.orig Sun Dec 27 17:46:55 1998 ++++ mime-ja.texi Sun Dec 27 17:48:34 1998 +@@ -9,6 +9,11 @@ + @node Top, Introduction, (dir), (dir) + @top FLIM 1.9 MIME 機能説明書 + ++@dircategory The Emacs editor and associated tools ++@direntry ++* mime-ja: (mime-ja). MIME features for GNU Emacs. (Japanese) ++@end direntry ++ + @ifinfo + + This file documents MIME features of FLIM, a Internet message diff --git a/editors/flim-emacs/pkg-comment b/editors/flim-emacs/pkg-comment new file mode 100644 index 000000000000..02ad795f7203 --- /dev/null +++ b/editors/flim-emacs/pkg-comment @@ -0,0 +1 @@ +FLIM, message representation or encoding emacs lisp library for emacs. diff --git a/editors/flim-emacs/pkg-descr b/editors/flim-emacs/pkg-descr new file mode 100644 index 000000000000..111259a2cdfb --- /dev/null +++ b/editors/flim-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/flim-emacs/pkg-plist b/editors/flim-emacs/pkg-plist new file mode 100644 index 000000000000..cf78cb509d79 --- /dev/null +++ b/editors/flim-emacs/pkg-plist @@ -0,0 +1,39 @@ +%%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 +%%EMACS_LIBDIR%%/site-lisp/flim/mel-b.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/std11.el +%%EMACS_LIBDIR%%/site-lisp/flim/std11.elc +@dirrm %%EMACS_LIBDIR%%/site-lisp/flim +%%FLIMDOCDIR%%/ChangeLog +%%FLIMDOCDIR%%/README.en +@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/scripts/configure b/editors/flim-emacs/scripts/configure new file mode 100644 index 000000000000..16e40f15739a --- /dev/null +++ b/editors/flim-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 |