# Copyright 2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # since baz v7.3.0 you can have load as a generic binary for all users, # i chose to leave it out because i want every user to have a unique binary # with their own cflags instead of having a systemwide one EAPI=8 inherit bash-completion-r1 DESCRIPTION="a fast, easy, simple and lightweight plugin manager for GNU bash" HOMEPAGE="https://ari-web.xyz/gh/baz" SRC_URI="https://ari-web.xyz/gh/baz/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64" DEPEND=" dev-vcs/git app-shells/bash readline? ( app-misc/rlwrap ) bash-completion? ( app-shells/bash-completion ) " RDEPEND="${DEPEND}" BDEPEND="" IUSE="readline +bash-completion doc logging ok nocc" DOCS=(README.md PLUGINS.md doc/BAZ_ENV.md doc/PLUGIN_FOLDER_STRUCTURE.md doc/SANITIZATION.md doc/CONFIGURATION_FILES.md doc/LOADER.md loader/README.md) src_compile() { logging_export='# USE="-logging"' ok_export='# USE="-ok"' nocc_export='# USE="-nocc"' use logging && logging_export='export BAZ_LOGGING_ENABLED=true' use ok && ok_export='export BAZ_ENSURE_OK=true' use nocc && nocc_export='export BAZ_NO_CC=true' tee baz-setup <