Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # export DH_VERBOSE = 1
4
5 include /usr/share/dpkg/pkg-info.mk
6 include /usr/share/dpkg/architecture.mk
7 include /usr/share/dpkg/buildflags.mk
8 include /usr/share/rustc/architecture.mk
9
10 export DEB_BUILD_MAINT_OPTIONSscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/DEB_BUILD_MAINT_OPTIONS. = hardening=+all
11
12 export PYBUILD_NAMEscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/PYBUILD_NAME. = jellyfish
13 export PYBUILD_TEST_PYTESTscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/PYBUILD_TEST_PYTEST. = 1
14
15 export CFLAGSscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/CFLAGS. CXXFLAGS CPPFLAGS LDFLAGS
16 export DEB_HOST_RUST_TYPEscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/DEB_HOST_RUST_TYPE. DEB_HOST_GNU_TYPE
17
18 export CARGOscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/CARGO.=/usr/share/cargo/bin/cargo
19 export CARGO_HOMEscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/CARGO_HOME.=$(CURDIRscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/CURDIR.)/debian/cargo_home
20 export DEB_CARGO_CRATEscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/DEB_CARGO_CRATE.=$(DEB_SOURCEscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/DEB_SOURCE.)_$(DEB_VERSION_UPSTREAMscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/DEB_VERSION_UPSTREAM.)
21
22
23 %scip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/`%`().:
24 dh $@ --buildsystem=pybuild
25
26 execute_before_dh_auto_configurescip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/execute_before_dh_auto_configure().:
27 mv Cargo.lock Cargo.lock.saved
28 cp debian/cargo_home/config.toml debian/cargo_home_config.toml.saved
29 $(CARGOscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/CARGO.) prepare-debian debian/cargo_registry --link-from-system
30 rm -f Cargo.lock
31
32 ifeq (,$(findstringscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/findstring. nodoc,$(DEB_BUILD_PROFILESscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/DEB_BUILD_PROFILES.)))
33 execute_after_dh_auto_build-indepscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/execute_after_dh_auto_build-indep().:
34 mkdocs build
35 # Clean generated HTML files to avoid some privacy breaches
36 # We cannot currently remove the Google fonts reference as
37 # Roboto Mono is not suitably packaged in Debian.
38 perl -i -ne '/<img .*src="http/ || print' site/index.html
39
40 override_dh_installdocs-indepscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/override_dh_installdocs-indep().:
41 dh_installdocsscip-debian debian debhelper . dh_installdocs(). -ppython-jellyfish-doc --doc-main-package=python3-jellyfish
42 dh_installdocsscip-debian debian debhelper . dh_installdocs(). --remaining-packages
43 mv debian/python-jellyfish-doc/usr/share/doc/python3-jellyfish/site debian/python-jellyfish-doc/usr/share/doc/python3-jellyfish/html
44 endif
45
46 override_dh_installchangelogsscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/override_dh_installchangelogs().:
47 dh_installchangelogsscip-debian debian debhelper . dh_installchangelogs(). docs/changelog.md
48
49 ifeq (,$(findstringscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/findstring. nocheck,$(DEB_BUILD_PROFILESscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/DEB_BUILD_PROFILES.)))
50 execute_after_dh_auto_testscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/execute_after_dh_auto_test().:
51 cargo test
52 endif
53
54 execute_after_dh_auto_cleanscip-debian debian python-jellyfish 1.2.0-5 python-jellyfish/rules/execute_after_dh_auto_clean().:
55 if test -f Cargo.lock.saved; then mv Cargo.lock.saved Cargo.lock; fi
56 if test -f debian/cargo_home_config.toml.saved; then \
57 mv debian/cargo_home_config.toml.saved debian/cargo_home/config.toml; \
58 fi