diff options
author | Doug Goldstein <cardoe@cardoe.com> | 2021-01-10 16:08:37 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-10 16:08:37 -0600 |
commit | 214594d15b23120f13e02b8be4471dc97ed04bd2 (patch) | |
tree | cdd2ef9073912fff68f811531bb257d0a2a4b3fb | |
parent | Merge pull request #39 from leonardohn/dep-resolution-fix (diff) | |
parent | update output ebuild formatting (diff) | |
download | cargo-ebuild-214594d15b23120f13e02b8be4471dc97ed04bd2.tar.gz cargo-ebuild-214594d15b23120f13e02b8be4471dc97ed04bd2.tar.bz2 cargo-ebuild-214594d15b23120f13e02b8be4471dc97ed04bd2.zip |
Merge pull request #42 from telans/ebuild
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)); } } } |