-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eclass: Support rust.eclass and RUST_OPTIONAL as well
Closes: #714 Signed-off-by: Michał Górny <[email protected]> Closes: #718 Signed-off-by: Michał Górny <[email protected]>
- Loading branch information
Showing
7 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
2 changes: 2 additions & 0 deletions
2
testdata/data/repos/standalone/EclassManualDepsCheck/RustMissingDeps/expected.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
{"__class__": "RustMissingDeps", "category": "EclassManualDepsCheck", "package": "RustMissingDeps", "version": "1"} | ||
{"__class__": "RustMissingDeps", "category": "EclassManualDepsCheck", "package": "RustMissingDeps", "version": "3"} | ||
{"__class__": "RustMissingDeps", "category": "EclassManualDepsCheck", "package": "RustMissingDeps", "version": "4"} |
This file contains 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
6 changes: 6 additions & 0 deletions
6
testdata/repos/standalone/EclassManualDepsCheck/RustMissingDeps/RustMissingDeps-2.ebuild
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
inherit rust | ||
|
||
DESCRIPTION="Normal non-optional inherit" | ||
HOMEPAGE="https://github.com/pkgcore/pkgcheck" | ||
LICENSE="BSD" | ||
SLOT="0" |
10 changes: 10 additions & 0 deletions
10
testdata/repos/standalone/EclassManualDepsCheck/RustMissingDeps/RustMissingDeps-3.ebuild
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
EAPI=7 | ||
|
||
RUST_OPTIONAL=1 | ||
|
||
inherit rust | ||
|
||
DESCRIPTION="Optional inherit without deps" | ||
HOMEPAGE="https://github.com/pkgcore/pkgcheck" | ||
LICENSE="BSD" | ||
SLOT="0" |
10 changes: 10 additions & 0 deletions
10
testdata/repos/standalone/EclassManualDepsCheck/RustMissingDeps/RustMissingDeps-4.ebuild
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
EAPI=7 | ||
|
||
RUST_OPTIONAL=1 | ||
|
||
inherit cargo | ||
|
||
DESCRIPTION="Optional inherit without deps" | ||
HOMEPAGE="https://github.com/pkgcore/pkgcheck" | ||
LICENSE="BSD" | ||
SLOT="0" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# cargo eclass | ||
|
||
if [[ -n ${CARGO_OPTIONAL} ]]; then | ||
RUST_OPTIONAL=1 | ||
fi | ||
|
||
inherit rust | ||
|
||
CARGO_CRATE_URIS=${CRATES} | ||
|