ports/114383: [New Port] texproc/yaml-mode.el: Simple major mode to edit YAML file for Emacsen

KIMURA Yasuhiro yasu at utahime.org
Sun Aug 5 01:52:15 UTC 2007


Attached files are modified version including following change:

* Remove default value definition of EMACS_PORT_NAME from
  yaml-mode.el/Makefile as it is defined in bsd.emacs.mk now.
* Add yaml-mode.el-emacs21/Makefile, slave port for Emacs 21.

Please commit them instead of original ones.

Regards.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	yaml-mode.el
#	yaml-mode.el/pkg-plist
#	yaml-mode.el/pkg-descr
#	yaml-mode.el/distinfo
#	yaml-mode.el/Makefile
#	yaml-mode.el/files
#	yaml-mode.el/files/patch-Makefile
#	yaml-mode.el/pkg-message
#	yaml-mode.el-emacs21
#	yaml-mode.el-emacs21/Makefile
#
echo c - yaml-mode.el
mkdir -p yaml-mode.el > /dev/null 2>&1
echo x - yaml-mode.el/pkg-plist
sed 's/^X//' >yaml-mode.el/pkg-plist << 'END-of-yaml-mode.el/pkg-plist'
X%%EMACS_VERSION_SITE_LISPDIR%%/yaml-mode.el
X%%EMACS_VERSION_SITE_LISPDIR%%/yaml-mode.elc
X%%PORTDOCS%%%%DOCSDIR%%/Changes
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-yaml-mode.el/pkg-plist
echo x - yaml-mode.el/pkg-descr
sed 's/^X//' >yaml-mode.el/pkg-descr << 'END-of-yaml-mode.el/pkg-descr'
XThis is a major mode for editing files in the YAML data serialization format. 
X
XWWW: http://yaml-mode.clouder.jp/
END-of-yaml-mode.el/pkg-descr
echo x - yaml-mode.el/distinfo
sed 's/^X//' >yaml-mode.el/distinfo << 'END-of-yaml-mode.el/distinfo'
XMD5 (yaml-mode-0.0.3.tar.gz?format=raw) = fe3bddf9c12c2ab69f62ccd4109dc59a
XSHA256 (yaml-mode-0.0.3.tar.gz?format=raw) = f0235b33f995a2dc663b65127d298daef2ba65e31af038c5e81b597af43ee0ce
XSIZE (yaml-mode-0.0.3.tar.gz?format=raw) = 5755
END-of-yaml-mode.el/distinfo
echo x - yaml-mode.el/Makefile
sed 's/^X//' >yaml-mode.el/Makefile << 'END-of-yaml-mode.el/Makefile'
X# New ports collection makefile for:	yaml-mode.el
X# Date created:				07 Jun 2007
X# Whom:					KIMURA Yasuhiro <yasu at utahime.org>
X#
X# $FreeBSD:$
X#
X
XPORTNAME=	yaml-mode.el
XPORTVERSION=	0.0.3
XCATEGORIES=	textproc elisp
XMASTER_SITES=	http://yaml-mode.clouder.jp/attachment/wiki/WikiStart/
XPKGNAMESUFFIX=	-${EMACS_PORT_NAME}
XDISTNAME=	${PORTNAME:S/.el$//}-${PORTVERSION}
XDISTFILES=	${DISTNAME}${EXTRACT_SUFX}?format=raw
X
XMAINTAINER=	yasu at utahime.org
XCOMMENT=	Simple major mode to edit YAML file for Emacsen
X
XUSE_EMACS=	yes
X
XMAKE_ENV+=	LISPDIR=${LISPDIR}
X
XLISPDIR=	${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X.for file in Changes README
X	${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR}
X.endfor
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-yaml-mode.el/Makefile
echo c - yaml-mode.el/files
mkdir -p yaml-mode.el/files > /dev/null 2>&1
echo x - yaml-mode.el/files/patch-Makefile
sed 's/^X//' >yaml-mode.el/files/patch-Makefile << 'END-of-yaml-mode.el/files/patch-Makefile'
X--- Makefile.orig	Thu Jan 25 15:51:27 2007
X+++ Makefile	Sat Jul  7 21:41:49 2007
X@@ -1,10 +1,10 @@
X VERSION=0.0.3
X-EMACS = emacs
X-PREFIX = /usr/local
X-INSTALLLIBDIR = $(PREFIX)/share/emacs/site-lisp
X+EMACS = $(EMACS_CMD)
X+#PREFIX = /usr/local
X+INSTALLLIBDIR = $(LISPDIR)
X FLAGS = -batch -L $(INSTALLLIBDIR) -q -f batch-byte-compile
X SRC = yaml-mode.el
X-INSTALL = /usr/bin/install -c -m 444
X+INSTALL = $(BSD_INSTALL_DATA)
X 
X all: bytecompile
X 
END-of-yaml-mode.el/files/patch-Makefile
echo x - yaml-mode.el/pkg-message
sed 's/^X//' >yaml-mode.el/pkg-message << 'END-of-yaml-mode.el/pkg-message'
X**********************************************************************
XTo use yaml-mode, you should add following lines to your .emacs file:
X
X(require 'yaml-mode)
X(add-to-list 'auto-mode-alist '("\\.yaml$" . yaml-mode))
X(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
X
X**********************************************************************
END-of-yaml-mode.el/pkg-message
echo c - yaml-mode.el-emacs21
mkdir -p yaml-mode.el-emacs21 > /dev/null 2>&1
echo x - yaml-mode.el-emacs21/Makefile
sed 's/^X//' >yaml-mode.el-emacs21/Makefile << 'END-of-yaml-mode.el-emacs21/Makefile'
X# New ports collection makefile for:	yaml-mode.el
X# Date created:				07 Jun 2007
X# Whom:					KIMURA Yasuhiro <yasu at utahime.org>
X#
X# $FreeBSD:$
X#
X
XMASTERDIR=	${.CURDIR}/../yaml-mode.el
X
XUSE_EMACS=	yes
XEMACS_PORT_NAME=	emacs21
X
X.include "${MASTERDIR}/Makefile"
END-of-yaml-mode.el-emacs21/Makefile
exit




More information about the freebsd-ports-bugs mailing list