From 696766cc8d9ab129274347a185951a474337ea77 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 5 Sep 2021 18:49:09 +0200 Subject: Add 'mpvim' plugin @ 513c455d5a902fff2b38edf86abc15c36688bf85 Provides syntax highlighting for MacPorts Portfiles. This code was copied from the 'macports-contrib' repository (https://github.com/macports/macports-contrib) at commit 513c455d5a902fff2b38edf86abc15c36688bf85 (https://github.com/macports/macports-contrib/tree/513c455d5a902fff2b38edf86abc15c36688bf85). The Vim plugin lives in a subdirectory of the 'macports-contrib' repository, so I'd have to include a whole mess of files that don't relate to Vim if I wanted to add the plugin as a submodule. I'd just as soon not have to copy the files into my repository tree like this, but it's better than adding a non-Vim submodule. Assuming it's okay to add these files to my repository, as the port file for this plugin describes it as being BSD licensed: https://github.com/macports/macports-ports/blob/12d7b1597bef875058758c9c587b7593f39a5af1/editors/mpvim/Portfile Unfortunately, there's no BSD license or copyright notice included in the plugin code. But I'm going to assume I'm allowed to redistribute it. --- bundle/mpvim/snippets/portfile.snippets | 53 +++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 bundle/mpvim/snippets/portfile.snippets (limited to 'bundle/mpvim/snippets') diff --git a/bundle/mpvim/snippets/portfile.snippets b/bundle/mpvim/snippets/portfile.snippets new file mode 100644 index 0000000..2752a37 --- /dev/null +++ b/bundle/mpvim/snippets/portfile.snippets @@ -0,0 +1,53 @@ +snippet modeline + # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 +snippet new + # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 + # $Id$ + + PortSystem 1.0 + + name ${1:PortName} + version ${2:PortVersion} + maintainers ${3:MaintainerHandle} + + categories ${4:Categories} + description ${5:Description} + long_description ${6:LongDescription} + + platforms ${7:Platforms} + + homepage ${8:Homepage} +snippet cargs + configure.args${1:-append/-delete} ${2:args} +snippet cenv + configure.env${1:-append/-delete} ${2:args} +snippet dlib + depends_lib${1:-append/-delete} ${2:args} +snippet drun + depends_run${1:-append/-delete} ${2:args} +snippet dbuild + depends_build${1:-append/-delete} ${2:args} +snippet var + variant ${1:name} description {${2:text}} { + ${3} + } +snippet fetch + ${1:pre-/post-}fetch { + ${2} + } +snippet patch + ${1:pre-/post-}patch { + ${2} + } +snippet conf + ${1:pre-/post-}configure { + ${2} + } +snippet build + ${1:pre-/post-}build { + ${2} + } +snippet dest + ${1:pre-/post-}destroot { + ${2} + } -- cgit v1.2.3