File: rules

package info (click to toggle)
ablog 0.11.12-10
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 840 kB
  • sloc: python: 2,389; makefile: 45
file content (29 lines) | stat: -rwxr-xr-x 804 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
25
26
27
28
29
#!/usr/bin/make -f

export PYBUILD_NAME=ablog

%:
	dh ${@} --buildsystem=pybuild

execute_after_dh_auto_clean:
	# help pybuild
	rm -rf *.egg-info

override_dh_auto_test:
	# disabled: needs fixes upstream

execute_after_dh_auto_install:
	# moving data files
	mkdir -p debian/python3-sphinx-ablog/usr/share/python3-sphinx-ablog

	for ITEM in locales stylesheets templates; \
	do \
		mv debian/python3-sphinx-ablog/usr/lib/python3*/dist-packages/ablog/$${ITEM} \
			debian/python3-sphinx-ablog/usr/share/python3-sphinx-ablog/$${ITEM}; \
		cd debian/python3-sphinx-ablog/usr/lib/python3*/dist-packages/ablog && \
			ln -s ../../../../share/python3-sphinx-ablog/$${ITEM} .; \
			cd "$${OLDPWD}"; \
	done

	# removing unused files
	rm -rf debian/python3-sphinx-ablog/usr/lib/python3*/dist-packages/ablog/tests