app-vim/openbsd-style - 1.1 (guru)

Search

Install

Install this version:

emerge -a =app-vim/openbsd-style-1.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-vim/openbsd-style-1.1

Or alternatively:

emerge --autounmask-write -a =app-vim/openbsd-style-1.1

Package Information

Description:
vim plugin: indent code according to the OpenBSD and FreeBSD style(9)
Homepage:
https://wiki.freebsd.org/DevTools
License:
BSD-2

Ebuild Details

Version EAPI Keywords Slot
1.1 8 ~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 0
View Raw Ebuild
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

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 ~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
}

Inherited Eclasses

Manifest for 1.1

Type File Size Source URLs
DIST openbsd-style-1.1.vim 2669 bytes https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/editors/vim/files/openbsd.vim?rev=1.1