diff options
author | 2020-12-04 18:45:03 +1300 | |
---|---|---|
committer | 2020-12-04 18:45:03 +1300 | |
commit | 1f7c629c8b324b0459e6d8ba85ab0fc57ae46055 (patch) | |
tree | cdd2ef9073912fff68f811531bb257d0a2a4b3fb | |
parent | Merge pull request #39 from leonardohn/dep-resolution-fix (diff) | |
download | cargo-ebuild-1f7c629c8b324b0459e6d8ba85ab0fc57ae46055.tar.gz cargo-ebuild-1f7c629c8b324b0459e6d8ba85ab0fc57ae46055.tar.bz2 cargo-ebuild-1f7c629c8b324b0459e6d8ba85ab0fc57ae46055.zip |
update output ebuild formatting
-rw-r--r-- | src/ebuild.template | 7 | ||||
-rw-r--r-- | src/lib.rs | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/ebuild.template b/src/ebuild.template index 7c8cbf5..b979f2f 100644 --- a/src/ebuild.template +++ b/src/ebuild.template @@ -15,13 +15,10 @@ DESCRIPTION="{description}" # does not provide this value so instead repository is used HOMEPAGE="{homepage}" SRC_URI="$(cargo_crate_uris ${{CRATES}})" -RESTRICT="mirror" + # License set may be more restrictive as OR is not respected # use cargo-license for a more accurate license picture LICENSE="{license}" SLOT="0" KEYWORDS="~amd64" -IUSE="" - -DEPEND="" -RDEPEND="" +RESTRICT="mirror" @@ -110,7 +110,7 @@ pub fn gen_ebuild_data(manifest_path: Option<PathBuf>) -> Result<EbuildConfig> { for pkg in lockfile.packages { if let Some(src) = pkg.source { if src.is_default_registry() { - crates.push(format!("{}-{}\n", pkg.name, pkg.version)); + crates.push(format!("\t{}-{}\n", pkg.name, pkg.version)); } } } |