summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'guide/_sources/distutils.rst.txt')
-rw-r--r--guide/_sources/distutils.rst.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/guide/_sources/distutils.rst.txt b/guide/_sources/distutils.rst.txt
index 5ef857a..2012853 100644
--- a/guide/_sources/distutils.rst.txt
+++ b/guide/_sources/distutils.rst.txt
@@ -1333,7 +1333,7 @@ follows:
src_compile() {
default
- use python && distutils-r1_src_configure
+ use python && distutils-r1_src_compile
}
python_test() {
@@ -1364,10 +1364,10 @@ download the Rust dependencies over the Internet. In Gentoo,
When creating a new ebuild for a package using Rust extensions
or bumping one, you need to locate the ``Cargo.lock`` files within
-the package's sources. For each of these files, run ``cargo-ebuild``
-in the containing directory in order to generate a template ebuild.
-Then combine ``CRATES`` and ``LICENSE`` values from all the generated
-ebuilds.
+the package's sources. Run ``pycargoebuild`` passing the list of
+the containing directories to generate a template ebuild, e.g.::
+
+ pycargoebuild /tmp/portage/dev-python/setuptools-rust-1.5.2/work/setuptools-rust-1.5.2/examples/*/
The actual ebuild inherits both ``cargo`` and ``distutils-r1`` eclasses.
Prior to inherit, ``CARGO_OPTIONAL`` should be used to avoid exporting
@@ -1408,7 +1408,7 @@ An example ebuild follows:
$(cargo_crate_uris ${CRATES})
"
- LICENSE="|| ( BSD-2 Apache-2 )"
+ LICENSE="|| ( BSD-2 Apache-2.0 )"
# Crate licenses
LICENSE+=" Apache-2.0 BSD BSD-2 MIT"