This package contains the Rust tutorial, language reference and
standard library documentation.
-Package: libstd-rust-src
+Package: rust-src
Section: devel
Architecture: all
-Build-Profiles: <!pkg.rust.nosrc>
-Description: Rust systems programming language - Documentation
+Description: Rust systems programming language - source code
Rust is a curly-brace, block-structured expression language. It
visually resembles the C language family, but differs significantly
in syntactic and semantic details. Its design is oriented toward
generic programming and meta-programming, in both static and dynamic
styles.
.
- This package contains sources of the rust standard library.
+ This package contains sources of the Rust compiler and standard
+ libraries, useful for IDEs and code analysis tools such as Racer.
BUILD_DOCS =
endif
-BUILD_SRC = 1
-ifneq (,$(findstring pkg.rust.nosrc,$(DEB_BUILD_PROFILES)))
- DEB_CONFIGURE_FLAGS += --disable-dist-src
- BUILD_SRC =
-endif
-
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
DEB_CONFIGURE_FLAGS += --disable-optimize --disable-optimize-cxx --disable-optimize-llvm
endif
DEB_CONFIGURE_FLAGS += --disable-optimize --disable-optimize-cxx --disable-optimize-llvm
endif
+# Build products or non-source files in src/, that shouldn't go in rust-src
+SRC_CLEAN = src/rt/hoedown/src/html_blocks.c \
+ src/bootstrap/bootstrap.pyc \
+ src/bootstrap/config.toml \
+ src/etc/__pycache__/
%:
dh $@ --parallel
./configure $(DEB_CONFIGURE_FLAGS)
override_dh_auto_clean:
- $(RM) -rf ./build ./tmp ./.cargo src/etc/__pycache__/ config.stamp config.mk Makefile ./cargo
- $(RM) src/rt/hoedown/src/html_blocks.c # clean up after building this ourselves
- $(RM) src/bootstrap/bootstrap.pyc src/bootstrap/config.toml
+ $(RM) -rf ./build ./tmp ./.cargo config.stamp config.mk Makefile ./cargo
+ $(RM) -rf $(SRC_CLEAN)
# upstream bundles this in the source, but in Debian we rebuild everything yo
generate-sources:
find $(DEB_DESTDIR) \( -iname '*.html' -empty -o -name .lock -o -name '*.inc' \) -delete;
endif
-ifneq (,$(BUILD_SRC))
- # extract library source
- mkdir -p $(DEB_DESTDIR)/usr/src;
- tar --strip-components=5 -xzf $(CURDIR)/build/dist/rust-src-$(RUST_LONG_VERSION).tar.gz -C $(DEB_DESTDIR)/usr/src
-endif
-
override_dh_install-arch:
dh_install
dh_install -p$(LIBSTD_PKG) usr/lib/$(DEB_HOST_MULTIARCH)/
chmod -x \
debian/rust-gdb/usr/share/rust-gdb/*.py \
debian/rust-lldb/usr/share/rust-lldb/*.py
+ $(RM) -rf $(SRC_CLEAN:%=debian/rust-src/usr/src/rust/%)
override_dh_installchangelogs:
dh_installchangelogs RELEASES.md
--- /dev/null
+# from src/bootstrap/dist.rs:370 onwards
+COPYRIGHT usr/src/rust
+LICENSE-APACHE usr/src/rust
+LICENSE-MIT usr/src/rust
+CONTRIBUTING.md usr/src/rust
+README.md usr/src/rust
+RELEASES.md usr/src/rust
+configure usr/src/rust
+x.py usr/src/rust
+man usr/src/rust
+src usr/src/rust
+cargo usr/src/rust