# Copyright 2012-2023 Martin V\"ath # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( pypy3 python3_{10..12} ) EGIT_REPO_URI="https://github.com/google/styleguide.git" inherit elisp-common git-r3 python-single-r1 RESTRICT="mirror" DESCRIPTION="The google styleguide together with cpplint and an emacs file" HOMEPAGE="https://github.com/google/styleguide" SRC_URI="" LICENSE="CC-BY-3.0" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" IUSE="emacs" EMACSNAME="google-c-style" REQUIRED_USE="${PYTHON_REQUIRED_USE}" COMMON="emacs? ( app-editors/emacs )" BDEPEND="${COMMON}" RDEPEND="${PYTHON_DEPS} ${COMMON}" PATCHES=("$FILESDIR"/"${PN}"-python3.patch) src_prepare() { if use emacs then mkdir sitefile cat >"sitefile/50${EMACSNAME}-gentoo.el" <