File: rules

package info (click to toggle)
sphinx-tabs 1.3.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 540 kB
  • sloc: javascript: 929; python: 468; xml: 421; makefile: 20; sh: 6
file content (28 lines) | stat: -rwxr-xr-x 1,053 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f

export PYBUILD_NAME=sphinx-tabs

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

override_dh_auto_build:
	python3 -m sphinx -b html -d docs/.build/.doctrees -N docs docs/.build/html
	dh_auto_build

override_dh_auto_install:
	dh_auto_install
	rm -f debian/python3-sphinx-tabs/usr/LICENSE

override_dh_python3:
	dh_python3
	# Replace javascript libraries in python3-sphinx-tabs-doc
	find debian/python3-sphinx-tabs-doc -name 'jquery.js' -type f -exec \
		ln -sf /usr/share/javascript/jquery/jquery.min.js {} \;
	find debian/python3-sphinx-tabs-doc -name 'jquery-*.js' -type f -exec \
		ln -sf /usr/share/javascript/jquery/jquery.js {} \;
	find debian/python3-sphinx-tabs-doc -name 'underscore.js' -type f -exec \
		ln -sf /usr/share/javascript/underscore/underscore.min.js {} \;
	find debian/python3-sphinx-tabs-doc -name 'underscore-*.js' -type f -exec \
		ln -sf /usr/share/javascript/underscore/underscore.js {} \;
	
	rm -f debian/python3-sphinx-tabs/usr/lib/python3/dist-packages/sphinx_tabs/semantic-ui-2.4.1/LICENSE.md