crossbeamパッケージ
修订版 | d4963d1d1e964c4f39f170b671990e1d8ff7a366 (tree) |
---|---|
时间 | 2020-04-07 03:34:07 |
作者 | dyknon <dyknon@user...> |
Commiter | dyknon |
misc
@@ -4,7 +4,8 @@ Maintainer: dyknon <dyknon@users.osdn.me> | ||
4 | 4 | Build-Depends: debhelper-compat (= 12), |
5 | 5 | cargo, python3:native, libjson-perl, |
6 | 6 | librust-cfg-if-dev, librust-lazy-static-dev, librust-memoffset-dev, |
7 | - librust-num-cpus-dev, librust-rand-dev, librust-scopeguard-dev | |
7 | + librust-num-cpus-dev, librust-rand-dev, librust-scopeguard-dev, | |
8 | + librust-autocfg-dev, librust-getrandom-dev, librust-signal-hook-dev | |
8 | 9 | Standards-Version: 4.5.0 |
9 | 10 | Section: rust |
10 | 11 | Homepage: https://github.com/crossbeam-rs/crossbeam/ |
@@ -26,13 +26,15 @@ override_dh_auto_configure: | ||
26 | 26 | |
27 | 27 | |
28 | 28 | override_dh_auto_build: |
29 | + set -e; \ | |
29 | 30 | ./debian/deb-crateinfo.pl crates | while read name; do \ |
30 | 31 | manup="$$(./debian/deb-crateinfo.pl manifest-path $$name)"; \ |
31 | 32 | cd $${manup%/*}; \ |
32 | 33 | env DEB_CARGO_CRATE="$$name" $(DEB_CARGO) prepare-debian \ |
33 | 34 | '$(CARGO_REGISTRY)' --link-from-system; \ |
34 | 35 | cd -; \ |
35 | - for crate in debian/target/package/*; do \ | |
36 | + for crate in debian/target/package/*.crate; do \ | |
37 | + [ ! -f "$$crate" ] && continue; \ | |
36 | 38 | dname=$$(tar -ztf "$$crate"|head -n1|sed 's"/.*""'); \ |
37 | 39 | tar -C '$(CARGO_REGISTRY)' -zxf "$$crate"; \ |
38 | 40 | echo '{"package":"","files":{}}' > \ |
@@ -44,6 +46,7 @@ override_dh_auto_build: | ||
44 | 46 | done |
45 | 47 | |
46 | 48 | override_dh_auto_install: |
49 | + set -e; \ | |
47 | 50 | ./debian/deb-crateinfo.pl crates | while read name; do \ |
48 | 51 | version="$$(./debian/deb-crateinfo.pl version "$$name")"; \ |
49 | 52 | pacn="librust-$$(echo "$$name" | sed 's/_/-/g')-dev"; \ |
@@ -58,6 +61,7 @@ override_dh_auto_install: | ||
58 | 61 | done |
59 | 62 | |
60 | 63 | override_dh_gencontrol: |
64 | + set -e; \ | |
61 | 65 | ./debian/deb-crateinfo.pl crates | while read name; do\ |
62 | 66 | sv="debian/librust-$$(echo "$$name" | sed 's/_/-/g')-dev.substvars";\ |
63 | 67 | echo -n "cargo:dep=" >> "$$sv";\ |
@@ -74,8 +78,7 @@ override_dh_gencontrol: | ||
74 | 78 | echo -n "cargo:prov=" >> "$$sv";\ |
75 | 79 | ./debian/deb-crateinfo.pl deb-provides "$$name" "$$ft" >> "$$sv";\ |
76 | 80 | done;\ |
77 | - done | |
78 | - | |
81 | + done; \ | |
79 | 82 | ./debian/deb-crateinfo.pl crates | while read name; do\ |
80 | 83 | namep="$$(echo "$$name" | sed 's/_/-/g')";\ |
81 | 84 | ver="$(DEB_VERSION_EPOCH)$$(./debian/deb-crateinfo.pl version "$$name")$(DEB_VERSION_DEB)";\ |