diff --git a/app-vim/openbsd-style/Manifest b/app-vim/openbsd-style/Manifest new file mode 100644 index 0000000000..f83d3f6902 --- /dev/null +++ b/app-vim/openbsd-style/Manifest @@ -0,0 +1 @@ +DIST openbsd-style-1.1.vim 2669 BLAKE2B 5b2bcca3024c1a743ed0be42510f47340b4f57f7c5866933b01adc1399e40210676c7b8b4631fbdf59231cb9af9c2443af2915b982eb3fa5fc5a03c2b207ee81 SHA512 55f3fd84ae2f3d86b84756165da02d56f221baa81eb42e1df8e7a0e3f243b498e95d343c9ed04fc21db89bc676fa671eeaf424587a77aeef421a62db0e0ed41a diff --git a/app-vim/openbsd-style/metadata.xml b/app-vim/openbsd-style/metadata.xml new file mode 100644 index 0000000000..46ff3593dd --- /dev/null +++ b/app-vim/openbsd-style/metadata.xml @@ -0,0 +1,8 @@ + + + + + cyber@sysrq.in + Anna + + diff --git a/app-vim/openbsd-style/openbsd-style-1.1.ebuild b/app-vim/openbsd-style/openbsd-style-1.1.ebuild new file mode 100644 index 0000000000..925c5c6367 --- /dev/null +++ b/app-vim/openbsd-style/openbsd-style-1.1.ebuild @@ -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 +}