| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | include /usr/share/rustc/architecture.mk |
| 4 | |
| 5 | export DH_VERBOSEscip-makefile . . . DH_VERBOSE.=1 |
| 6 | export PYBUILD_NAMEscip-makefile . . . PYBUILD_NAME.=bcrypt |
| 7 | export DEB_BUILD_MAINT_OPTIONSscip-makefile . . . DEB_BUILD_MAINT_OPTIONS.=hardening=+all |
| 8 | export DEB_CARGO_CRATEscip-makefile . . . DEB_CARGO_CRATE.=$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM) |
| 9 | export DEB_HOST_RUST_TYPEscip-makefile . . . DEB_HOST_RUST_TYPE. DEB_HOST_GNU_TYPE |
| 10 | export CARGOscip-makefile . . . CARGO.=/usr/share/cargo/bin/cargo |
| 11 | export CARGO_HOMEscip-makefile . . . CARGO_HOME.=$(CURDIRscip-makefile . . . CURDIR.)/debian/cargo_home |
| 12 | |
| 13 | %scip-makefile . . . `%`/: |
| 14 | dh $@scip-makefile . . . `@`. --buildsystem=pybuild |
| 15 | |
| 16 | execute_before_dh_auto_configurescip-makefile . . . execute_before_dh_auto_configure/: |
| 17 | $(CARGOscip-makefile . . . CARGO.) prepare-debian debian/cargo_registry --link-from-system |
| 18 | |
| 19 | override_dh_auto_testscip-makefile . . . override_dh_auto_test/: |
| 20 | PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m pytest -v -x" dh_auto_test |
| 21 | |
| 22 | override_dh_installdocsscip-makefile . . . override_dh_installdocs/: |
| 23 | dh_installdocs -A README.rst |
| 24 | |
| 25 | override_dh_installchangelogsscip-makefile . . . override_dh_installchangelogs/: |
| 26 | sed -n '/'Changelog'/,/'Usage'/p' README.rst > .pybuild/changelog |
| 27 | dh_installchangelogs -A .pybuild/changelog |