aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Anderson <telans@posteo.de>2020-12-04 18:45:03 +1300
committerTheo Anderson <telans@posteo.de>2020-12-04 18:45:03 +1300
commit1f7c629c8b324b0459e6d8ba85ab0fc57ae46055 (patch)
treecdd2ef9073912fff68f811531bb257d0a2a4b3fb
parentMerge pull request #39 from leonardohn/dep-resolution-fix (diff)
downloadcargo-ebuild-1f7c629c8b324b0459e6d8ba85ab0fc57ae46055.tar.gz
cargo-ebuild-1f7c629c8b324b0459e6d8ba85ab0fc57ae46055.tar.bz2
cargo-ebuild-1f7c629c8b324b0459e6d8ba85ab0fc57ae46055.zip
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));
}
}
}