Created
August 4, 2023 04:00
-
-
Save kir68k/53deb044e18e3780c89e3435eba09192 to your computer and use it in GitHub Desktop.
Ebuild for colorgen-nvim, not uploaded to repo as it doesn't compile.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2023 Kirixetamine <revelation@krxt.dev> | |
| # Distributed under the terms of the ISC License | |
| EAPI=8 | |
| inherit cargo | |
| DESCRIPTION="Blazingly fast colorscheme generator for Neovim, written in Rust" | |
| HOMEPAGE="https://github.com/LunarVim/colorgen-nvim/" | |
| if [[ ${PV} == 9999 ]]; then | |
| inherit git-r3 | |
| EGIT_REPO_URI="https://github.com/LunarVim/colorgen-nvim" | |
| S="${WORKDIR}/${P}" | |
| else | |
| SRC_URI="https://github.com/LunarVim/${PN}/archive/${PV}.tar.gz | |
| $(cargo_crate_uris)" | |
| KEYWORDS="~amd64" | |
| fi | |
| LICENSE="GPL-3" | |
| SLOT="0" | |
| BDEPEND=" | |
| virtual/rust | |
| " | |
| src_unpack() { | |
| if [[ ${PV} ]]; then | |
| git-r3_src_unpack | |
| cargo_live_src_unpack | |
| else | |
| cargo_src_unpack | |
| fi | |
| } | |
| src_configure() { | |
| cargo_src_configure --no-default-features --frozen | |
| } | |
| src_compile() { | |
| cargo_src_compile | |
| } | |
| src_install() { | |
| cargo_src_install | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you are reading this from my GH issue, but don't know ebuilds and don't want to search for what does what, the important parts are:
inherit cargowhich gives access to cargo/rust related functionscargo_src_configurewhich configures cargo package features and arguments, likeconfigurescriptscargo_src_compilewhich compiles the rust projectcargo_src_installwhich installs the built binaries onto a filesystem