1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

New port: editors/flim-emacs.

This commit is contained in:
Shigeyuki Fukushima 1999-05-09 16:19:28 +00:00
parent e487214552
commit 86353a54be
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=18640
9 changed files with 223 additions and 0 deletions

110
editors/flim-emacs/Makefile Normal file
View File

@ -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>

View File

@ -0,0 +1 @@
MD5 (flim-1.9.2.tar.gz) = 081476315ef93663d8567fb5b93ab921

View File

@ -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

View File

@ -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

View File

@ -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 $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
+
@ifinfo
This file documents MIME features of FLIM, a Internet message

View File

@ -0,0 +1 @@
FLIM, message representation or encoding emacs lisp library for emacs.

View File

@ -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>

View File

@ -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

14
editors/flim-emacs/scripts/configure vendored Normal file
View File

@ -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