aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@cardoe.com>2021-01-10 16:08:37 -0600
committerGitHub <noreply@github.com>2021-01-10 16:08:37 -0600
commit214594d15b23120f13e02b8be4471dc97ed04bd2 (patch)
treecdd2ef9073912fff68f811531bb257d0a2a4b3fb
parentMerge pull request #39 from leonardohn/dep-resolution-fix (diff)
parentupdate output ebuild formatting (diff)
downloadcargo-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.template7
-rw-r--r--src/lib.rs2
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"
diff --git a/src/lib.rs b/src/lib.rs
index b6243bc..637846e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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));
}
}
}