| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export LC_ALLscip-makefile . . . LC_ALL.=C.UTF-8 |
| 4 | export PYBUILD_INSTALL_DIRscip-makefile . . . PYBUILD_INSTALL_DIR.=/usr/share/beets/ |
| 5 | # https://github.com/beetbox/beets/issues/1876 |
| 6 | export PYBUILD_TEST_ARGSscip-makefile . . . PYBUILD_TEST_ARGS.=-k "not test_completion" |
| 7 | export PYBUILD_AFTER_INSTALLscip-makefile . . . PYBUILD_AFTER_INSTALL.=rm -r {destdir}{install_dir}/beets-*.dist-info/licenses/ |
| 8 | |
| 9 | # Needed by sphinx build |
| 10 | export HOMEscip-makefile . . . HOME.=$(CURDIRscip-makefile . . . CURDIR.)/debian/fakehome/ |
| 11 | |
| 12 | %scip-makefile . . . `%`/: |
| 13 | dh $@scip-makefile . . . `@`. --buildsystem=pybuild |
| 14 | |
| 15 | execute_after_dh_auto_installscip-makefile . . . execute_after_dh_auto_install/: |
| 16 | ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) |
| 17 | PYTHONPATH=$(CURDIRscip-makefile . . . CURDIR.) $(MAKEscip-makefile . . . MAKE.) -C docs html man |
| 18 | # There seem to be leftover static js files. |
| 19 | rm -rf docs/_build/man/_sphinx_design_static |
| 20 | endif |
| 21 | |
| 22 | override_dh_installchangelogsscip-makefile . . . override_dh_installchangelogs/: |
| 23 | dh_installchangelogs docs/changelog.rst |
| 24 | |
| 25 | execute_after_dh_fixpermsscip-makefile . . . execute_after_dh_fixperms/: |
| 26 | chmod a-x debian/beets/usr/share/beets/beets/dbcore/db.py |