[MacPorts] #2899: RFE: cmake-2.0.6 syntax files for emacs and vim
MacPorts
noreply at macports.org
Thu Mar 24 06:58:30 PDT 2016
#2899: RFE: cmake-2.0.6 syntax files for emacs and vim
--------------------------+----------------------
Reporter: cssdev@… | Owner: cssdev@…
Type: enhancement | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 1.0
Resolution: fixed | Keywords:
Port: cmake |
--------------------------+----------------------
Changes (by ryandesign@…):
* type: defect => enhancement
* port: => cmake
Old description:
> This patch for devel/cmake/Portfile downloads Kitware's CMake emacs and
> vim
> syntax files for CMakeLists.txt and *.cmake files. These three files are
> downloaded from the CMake website, and they are installed into emacs and
> vim
> directories during the destroot process. These files are not included
> with the
> source, but they are provided directly on the download page. It might be
> preferrable to add these as a variant, but these three files probably are
> not
> significant enough to constitute a full variant. The diff below assumes
> BUG 2898
> resolution, bringing the CMake version to 2.0.6. Should the emacs file be
> byte-compiled prior to installation?
>
> --- Portfile.206 Thu Apr 14 12:53:19 2005
> +++ Portfile Thu Apr 14 13:40:34 2005
> @@ -13,6 +13,32 @@
> used in conjunction with the native build environment.
> homepage http://www.cmake.org/
> platforms darwin freebsd
> -master_sites http://www.cmake.org/files/v2.0/
> -checksums md5 840ea86d7f1a56b469052c9cabbeac54
> +master_sites http://www.cmake.org/files/v2.0/:source \
> + http://www.cmake.org/CMakeDocs/:syntax
> +
> +distfiles ${name}-${version}.tar.gz:source \
> + ${name}-mode.el:syntax \
> + ${name}-indent.vim:syntax \
> + ${name}-syntax.vim:syntax
> +
> +extract.only ${name}-${version}.tar.gz
> +
> +checksums ${name}-${version}.tar.gz \
> + md5 840ea86d7f1a56b469052c9cabbeac54 \
> + ${name}-mode.el md5 9e84a1509d5ea5b0c669e0eb016c9b41 \
> + ${name}-indent.vim md5 9ed4a0a1cec2957f2e839fd4b904d55c \
> + ${name}-syntax.vim md5 7337be86138adee979c0e9df216995cd
> +
> configure.args --mandir=/share/man
> +
> +post-destroot {
> + xinstall -d -m 0755 ${destroot}${prefix}/share/emacs/site-lisp
> + xinstall -m 0644 ${distpath}/${name}-mode.el \
> + ${destroot}${prefix}/share/emacs/site-lisp
> +
> + xinstall -d -m 0755 ${destroot}${prefix}/share/vim/syntax
> + xinstall -m 0644 ${distpath}/${name}-indent.vim \
> + ${destroot}${prefix}/share/vim/syntax
> + xinstall -m 0644 ${distpath}/${name}-syntax.vim \
> + ${destroot}${prefix}/share/vim/syntax
> +}
New description:
This patch for devel/cmake/Portfile downloads Kitware's CMake emacs and
vim
syntax files for CMakeLists.txt and *.cmake files. These three files are
downloaded from the CMake website, and they are installed into emacs and
vim
directories during the destroot process. These files are not included with
the
source, but they are provided directly on the download page. It might be
preferrable to add these as a variant, but these three files probably are
not
significant enough to constitute a full variant. The diff below assumes
BUG 2898
resolution, bringing the CMake version to 2.0.6. Should the emacs file be
byte-compiled prior to installation?
{{{
--- Portfile.206 Thu Apr 14 12:53:19 2005
+++ Portfile Thu Apr 14 13:40:34 2005
@@ -13,6 +13,32 @@
used in conjunction with the native build environment.
homepage http://www.cmake.org/
platforms darwin freebsd
-master_sites http://www.cmake.org/files/v2.0/
-checksums md5 840ea86d7f1a56b469052c9cabbeac54
+master_sites http://www.cmake.org/files/v2.0/:source \
+ http://www.cmake.org/CMakeDocs/:syntax
+
+distfiles ${name}-${version}.tar.gz:source \
+ ${name}-mode.el:syntax \
+ ${name}-indent.vim:syntax \
+ ${name}-syntax.vim:syntax
+
+extract.only ${name}-${version}.tar.gz
+
+checksums ${name}-${version}.tar.gz \
+ md5 840ea86d7f1a56b469052c9cabbeac54 \
+ ${name}-mode.el md5 9e84a1509d5ea5b0c669e0eb016c9b41 \
+ ${name}-indent.vim md5 9ed4a0a1cec2957f2e839fd4b904d55c \
+ ${name}-syntax.vim md5 7337be86138adee979c0e9df216995cd
+
configure.args --mandir=/share/man
+
+post-destroot {
+ xinstall -d -m 0755 ${destroot}${prefix}/share/emacs/site-lisp
+ xinstall -m 0644 ${distpath}/${name}-mode.el \
+ ${destroot}${prefix}/share/emacs/site-lisp
+
+ xinstall -d -m 0755 ${destroot}${prefix}/share/vim/syntax
+ xinstall -m 0644 ${distpath}/${name}-indent.vim \
+ ${destroot}${prefix}/share/vim/syntax
+ xinstall -m 0644 ${distpath}/${name}-syntax.vim \
+ ${destroot}${prefix}/share/vim/syntax
+}
}}}
--
--
Ticket URL: <https://trac.macports.org/ticket/2899#comment:7>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list