From: Rohan L. <ro...@us...> - 2004-10-31 23:54:58
|
Update of /cvsroot/fink/dists/10.2-gcc3.3/stable/main/finkinfo/editors In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20325 Added Files: nxml-mode.info nxml-mode.patch Log Message: Move nxml-mode to stable --- NEW FILE: nxml-mode.patch --- diff -Naur nxml-mode-20040908/fink/emacsen-install nxml-mode-20040908.fink/fink/emacsen-install --- nxml-mode-20040908/fink/emacsen-install Thu Jan 1 10:00:00 1970 +++ nxml-mode-20040908.fink/fink/emacsen-install Wed Sep 8 22:24:18 2004 @@ -0,0 +1,38 @@ +#! /bin/sh +# @PREFIX@/lib/emacsen-common/packages/install/nxml-mode +set -e + +FLAVOR=$1 +PACKAGE=nxml-mode + +if [ ${FLAVOR} != emacs21 ]; then exit 0; fi + +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +FLAGS="-no-site-file -q -batch -l path.el -f batch-byte-compile" + +ELDIR=@PREFIX@/share/emacs/site-lisp/${PACKAGE} +ELCDIR=@PREFIX@/share/${FLAVOR}/site-lisp/${PACKAGE} + +/usr/bin/install -m 755 -d ${ELCDIR} +cd ${ELDIR} +FILES=`echo *.el` +/bin/cp ${FILES} ${ELCDIR} +cd ${ELCDIR} + +/bin/cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF + +${FLAVOR} ${FLAGS} ${FILES} +/bin/rm -f *.el path.el + +/usr/bin/install -m 755 -d ${ELCDIR}/char-name/unicode +ln ${ELDIR}/char-name/unicode/*.el ${ELCDIR}/char-name/unicode + +/bin/cat << EOF > @PREFIX@/etc/${FLAVOR}/site-start.d/50${PACKAGE}.el +(load "@PREFIX@/share/${FLAVOR}/site-lisp/${PACKAGE}/rng-auto.elc") +EOF + +exit 0 + diff -Naur nxml-mode-20040908/fink/emacsen-remove nxml-mode-20040908.fink/fink/emacsen-remove --- nxml-mode-20040908/fink/emacsen-remove Thu Jan 1 10:00:00 1970 +++ nxml-mode-20040908.fink/fink/emacsen-remove Wed Sep 8 22:24:18 2004 @@ -0,0 +1,13 @@ +#! /bin/sh +# @PREFIX@/lib/emacsen-common/packages/remove/nxml-mode + +FLAVOR=$1 +PACKAGE=nxml-mode +if [ ${FLAVOR} != emacs ]; then + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + /bin/rm -rf @PREFIX@/share/${FLAVOR}/site-lisp/${PACKAGE} + + /bin/rm -f @PREFIX@/etc/${FLAVOR}/site-start.d/??${PACKAGE}.el +fi + diff -Naur nxml-mode-20040908/nxml-mode.info nxml-mode-20040908.fink/nxml-mode.info --- nxml-mode-20040908/nxml-mode.info Wed Sep 8 19:56:37 2004 +++ nxml-mode-20040908.fink/nxml-mode.info Wed Sep 8 22:24:17 2004 @@ -3,7 +3,7 @@ INFO-DIR-SECTION Emacs START-INFO-DIR-ENTRY -* nXML Mode: (nxml-mode.info). +* nXML Mode: (nxml-mode.info). Emacs major mode for editing XML END-INFO-DIR-ENTRY diff -Naur nxml-mode-20040908/rng-auto.el nxml-mode-20040908.fink/rng-auto.el --- nxml-mode-20040908/rng-auto.el Wed Sep 8 19:51:09 2004 +++ nxml-mode-20040908.fink/rng-auto.el Wed Sep 8 22:24:17 2004 @@ -55,7 +55,7 @@ (append Info-default-directory-list (list dir))))))) (let* ((dir (file-name-directory load-file-name)) - (schema-dir (concat dir "schema/"))) + (schema-dir "@PREFIX@/share/schema/")) (unless (member dir load-path) (setq load-path (cons dir load-path))) (setq rng-schema-locating-files-default --- NEW FILE: nxml-mode.info --- Package: nxml-mode Version: 20041004 Revision: 1 Description: Emacs - Major mode for editing XML documents License: GPL Maintainer: Rohan Lloyd <fi...@ro...> Depends: emacsen Source: http://www.thaiopensource.com/download/%n-%v.tar.gz Source-MD5: ac137024cf337d6f11d8ab278d39b4db PatchScript: << /usr/bin/sed 's|@PREFIX@|%p|g' <%a/%n.patch | /usr/bin/patch -p1 << CompileScript: echo "Nothing to be done for compile" InstallScript: << /usr/bin/install -m 755 -d %i/share/emacs/site-lisp/%n /usr/bin/install -m 644 *.el %i/share/emacs/site-lisp/%n /bin/cp -rp char-name %i/share/emacs/site-lisp/%n /usr/bin/install -m 755 -d %i/lib/emacsen-common/packages/install /usr/bin/install -m 755 fink/emacsen-install \ %i/lib/emacsen-common/packages/install/%n /usr/bin/install -m 755 -d %i/lib/emacsen-common/packages/remove /usr/bin/install -m 755 fink/emacsen-remove \ %i/lib/emacsen-common/packages/remove/%n /usr/bin/install -m 755 -d %i/share/info /usr/bin/install -m 644 %n.info %i/share/info /usr/bin/install -m 755 -d %i/share/schema /bin/cp -rp schema/* %i/share/schema << PostInstScript: << if [ "$1" = "configure" ]; then %p/lib/emacsen-common/emacs-package-install %n fi << PreRmScript: %p/lib/emacsen-common/emacs-package-remove %n DocFiles: COPYING NEWS README TODO VERSION InfoDocs: nxml-mode.info Homepage: http://www.thaiopensource.com/nxml-mode/ DescDetail:<< nXML mode is an addon for GNU Emacs, which makes GNU Emacs into a powerful XML editor. It's called nXML mode because in Emacs terminology addons that customize Emacs for editing text of a particular sort are called modes. Emacs already has a simple mode for XML; nXML mode is a new mode for XML. You should realize that Emacs with nXML mode differs from most XML editors in that XML is edited as text. What you see while you are editing is similar to what you would see if you were using a non-XML aware text editor. nXML mode does not attempt to conceal the XML tags. The big advantage is that you do not lose any functionality in moving from a text editor to nXML mode. All normal text editing commands can be used with nXML mode without restriction. nXML mode does not require that the XML document always be valid or even well-formed. nXML mode allows a schema to be associated with the XML document being edited. The schema is used to provide two key features: Continuous validation. nXML validates as you type, highlighting any invalid parts of your document. Completion. nXML can assist you in entering an element name, attribute name or data value by using information about what is allowed by the schema in that context. nXML mode uses Relax NG as its schema language. Relax NG has two alternative syntaxes: an XML syntax and a more readable, non-XML compact syntax. nXML mode supports the compact syntax. There are tools available to translate from DTDs and other schema languages into Relax NG compact syntax. Schemas for DocBook, XHTML, XSLT, RDF and RELAX NG are included in the nXML mode download. nXML mode can also be used without any schema. Features that work without any schema include support for inserting end-tags easily. << DescUsage:<< To use nxml-mode automatically for files with an extension of xml, xsl, rng or xhtml, add (setq auto-mode-alist (cons '("\\.\\(xml\\|xsl\\|rng\\|xhtml\\)\\'" . nxml-mode) auto-mode-alist)) to your .emacs. If you edit XML using iso-8859-N encodings other than iso-8859-1 and you are running Emacs 21.3 or later, then I recommend enabling unify-8859-on-decoding-mode, by adding (unify-8859-on-decoding-mode) to your .emacs. << |