app-vim/openbsd-style: initial import

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova 2021-07-19 13:06:30 +05:00
parent 1c202c07d5
commit a12a430a02
No known key found for this signature in database
GPG Key ID: E7B76EDC50864BB1
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST openbsd-style-1.1.vim 2669 BLAKE2B 5b2bcca3024c1a743ed0be42510f47340b4f57f7c5866933b01adc1399e40210676c7b8b4631fbdf59231cb9af9c2443af2915b982eb3fa5fc5a03c2b207ee81 SHA512 55f3fd84ae2f3d86b84756165da02d56f221baa81eb42e1df8e7a0e3f243b498e95d343c9ed04fc21db89bc676fa671eeaf424587a77aeef421a62db0e0ed41a

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>cyber@sysrq.in</email>
<name>Anna</name>
</maintainer>
</pkgmetadata>

View File

@ -0,0 +1,27 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
VIM_PLUGIN_VIM_VERSION="7.1"
inherit vim-plugin
MY_PN=${PN%-style}
DESCRIPTION="vim plugin: indent code according to the OpenBSD and FreeBSD style(9)"
HOMEPAGE="https://wiki.freebsd.org/DevTools"
SRC_URI="https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/editors/vim/files/${MY_PN}.vim?rev=${PV} -> ${P}.vim"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
VIM_PLUGIN_HELPTEXT=\
"This plugin registers OpenBSD_Style() macro for changing a buffer's
indentation rules but does not change the indentation of existing code.
To activate it, simply type \\f in normal mode."
src_unpack() {
mkdir -p "${S}"/syntax || die
cp "${DISTDIR}"/${P}.vim "${S}"/syntax/${MY_PN}.vim || die
}