[127599] trunk/dports/editors

Lawrence Velázquez larryv at macports.org
Thu Oct 30 19:07:25 PDT 2014


On Oct 30, 2014, at 10:30 AM, easieste at macports.org wrote:

> Revision
> 127599
> Author
> easieste at macports.org
> Date
> 2014-10-30 07:30:10 -0700 (Thu, 30 Oct 2014)
> Log Message


> +extract {
> +    file copy ${distpath}/mediawiki.el ${worksrcpath}
> +}

You can use the "copy" command for this.

> +destroot {
> +    file mkdir ${destroot}${prefix}/share/emacs/site-lisp
> +    file copy  ${workpath}/${worksrcdir}  \
> +        ${destroot}${prefix}/share/emacs/site-lisp
> +}

You can use the "install -d" and "copy" commands here.

> +notes "To use ${name}, add the following to your ~/.emacs:\n\
> +\n\
> +    (require 'mediawiki)\n\
> +\n\
> +Once the mediawiki mode is loaded, one can customize the variable\n\
> +mediawiki-site-alist to set up information by issuing:\n\
> +\n\
> +   M-x customize-variable RET mediawiki-site-alist RET"

All these '\n's are unnecessary and are really ugly to boot. Double quotes preserve newlines; just start new lines where you want new lines to start. And the line-ending backslashes are only necessary for explicit line continuation. See the zsh Portfile, for example.

vq


More information about the macports-dev mailing list