File: rules

package info (click to toggle)
beets 2.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 7,988 kB
  • sloc: python: 46,429; javascript: 8,018; xml: 334; sh: 261; makefile: 125
file content (24 lines) | stat: -rwxr-xr-x 778 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

export LC_ALL=C.UTF-8
export PYBUILD_INSTALL_DIR=/usr/share/beets/
# https://github.com/beetbox/beets/issues/1876
export PYBUILD_TEST_ARGS=-k "not test_completion"
export PYBUILD_AFTER_INSTALL=rm -r {destdir}{install_dir}/beets-*.dist-info/licenses/

%:
	dh $@ --with sphinxdoc --buildsystem=pybuild

execute_after_dh_auto_install:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
	PYTHONPATH=$(CURDIR) $(MAKE) -C docs html man
	# There seem to be leftover static js files.
	rm -rf docs/_build/man/_sphinx_design_static
endif

override_dh_installchangelogs:
	dh_installchangelogs docs/changelog.rst

execute_after_dh_fixperms:
	chmod a-x debian/beets/usr/share/beets/beets/dbcore/db.py \
		debian/beets/usr/share/beets/beets/ui/commands.py