File: rules

package info (click to toggle)
pdb2pqr 2.1.1+dfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 44,408 kB
  • sloc: python: 44,146; cpp: 9,839; xml: 9,092; sh: 81; makefile: 47; ansic: 36
file content (62 lines) | stat: -rwxr-xr-x 2,430 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Compile with -fPIC on all platforms (fix for #636204, #654240)
export DEB_CFLAGS_MAINT_APPEND   = -fPIC -I/usr/share/pyshared/numpy/core/include/numpy
export DEB_CPPFLAGS_MAINT_APPEND = -fPIC -I/usr/share/pyshared/numpy/core/include/numpy
export DEB_CXXFLAGS_MAINT_APPEND = -fPIC -I/usr/share/pyshared/numpy/core/include/numpy
export DEB_FFLAGS_MAINT_APPEND   = -fPIC

%:
	dh $@ --with python2

override_dh_auto_clean:
	( cd pdb2pka && \
	  if [ -e pMC_mult_wrap.cpp.saved ]; then mv pMC_mult_wrap.cpp.saved pMC_mult_wrap.cpp; fi && \
	  if [ -e pMC_mult.py.saved ]; then mv pMC_mult.py.saved pMC_mult.py; fi )
	find . -name *.pyc -delete
	find . -name *.so -delete
	find . -name *.os -delete
	rm -f *.cgi .sconsign.dblite .variables.cache pdb2pqr.py html/server.html src/aconf.py
	dh_auto_clean

override_dh_auto_configure:
	dh_auto_configure
	( cd pdb2pka && \
	  cp -a pMC_mult_wrap.cpp pMC_mult_wrap.cpp.saved && \
	  cp -a pMC_mult.py pMC_mult.py.saved && \
	  swig -c++ -python -o pMC_mult_wrap.cpp pMC_mult.i )
	python scons/scons.py \
		URL="http://localhost/pdb2pqr/" \
		PREFIX="/usr/share/pdb2pqr"

# Disable tests, as they need an internet connection to download files
# override_dh_auto_test:

override_dh_installman-arch:
	dh_installman -a
	xmlto -o debian/pdb2pqr/usr/share/man/man1/ man debian/pdb2pqr.1.xml
	xmlto -o debian/pdb2pqr/usr/share/man/man1/ man debian/psize.1.xml
	xmlto -o debian/pdb2pqr/usr/share/man/man1/ man debian/propka.1.xml

override_dh_install-arch:
	dh_install -a
	dos2unix debian/pdb2pqr/usr/share/pdb2pqr/propka30/propka.py
	dos2unix debian/pdb2pqr/usr/share/pdb2pqr/src/psize.py

override_dh_fixperms-arch:
	dh_fixperms -a
	chmod 0644 debian/pdb2pqr/usr/share/pdb2pqr/main.py
	chmod 0644 debian/pdb2pqr/usr/share/pdb2pqr/main_cgi.py
	chmod 0644 debian/pdb2pqr/usr/share/pdb2pqr/pdb2pka/ligandclean/__init__.py
	chmod 0644 debian/pdb2pqr/usr/share/pdb2pqr/pdb2pka/pka_routines.py
	chmod 0644 debian/pdb2pqr/usr/share/pdb2pqr/pdb2pka/pKaIO_compat.py
	chmod 0644 debian/pdb2pqr/usr/share/pdb2pqr/pdb2pka/pKa_utility_functions_compat.py
	chmod 0644 debian/pdb2pqr/usr/share/pdb2pqr/src/errors.py
	chmod +x debian/pdb2pqr/usr/share/pdb2pqr/propka30/propka.py
	chmod +x debian/pdb2pqr/usr/share/pdb2pqr/src/psize.py

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog.md