Projet

Général

Profil

« Précédent | Suivant » 

Révision 968a4052

Ajouté par Frédéric Péters il y a plus de 6 ans

misc: switch to setuptools (and update debian packaging to match) (#17960)

Voir les différences:

debian/rules
4 4
# Uncomment this to turn on verbose mode.
5 5
#export DH_VERBOSE=1
6 6

  
7
PYTHON=/usr/bin/python
8
DESTDIR=$(CURDIR)/debian/wcs-au-quotidien
7
%:
8
	dh $@ --with python2
9 9

  
10
build: build-stamp
11

  
12
build-stamp:
13
	dh_testdir
14
	touch build-stamp
15

  
16
clean:
17
	dh_testdir
18
	dh_testroot
19
	rm -f build-stamp
20

  
21
	rm -f po/*.mo
22
	python setup.py clean
23
	rm -rf build
24

  
25
	dh_clean
26

  
27
install: build
28
	dh_testdir
29
	dh_testroot
30
	dh_clean -k
31
	dh_installdirs
32

  
33
	$(PYTHON) setup.py install --prefix=$(DESTDIR)/usr --no-compile
10
override_dh_install:
34 11
	cd po && make install prefix=$(CURDIR)/debian/wcs-au-quotidien/
35
	install -d -m 755 $(DESTDIR)/var/lib/wcs-au-quotidien $(DESTDIR)/etc/wcs
36
	install -m 644 wcs-au-quotidien.cfg-sample $(DESTDIR)/etc/wcs/wcs-au-quotidien.cfg
37

  
38

  
39
# Build architecture-independent files here.
40
binary-indep: build install
41
	dh_testdir
42
	dh_testroot
43
	dh_installdocs
44
	dh_installchangelogs
45
	dh_installinit
46
	dh_link
47
	dh_strip
48
	dh_compress
49
	dh_fixperms
50
	dh_pysupport
51
	dh_installdeb
52
	dh_gencontrol
53
	dh_md5sums
54
	dh_builddeb
55

  
56
binary-arch: build install
57

  
58
binary: binary-indep binary-arch
59
.PHONY: build clean binary-indep binary-arch binary install

Formats disponibles : Unified diff