File: rules

package info (click to toggle)
psi4 1%3A1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 311,416 kB
  • ctags: 32,886
  • sloc: cpp: 466,902; python: 139,519; fortran: 35,484; ansic: 29,316; f90: 9,932; perl: 4,357; pascal: 3,897; makefile: 741; sh: 261; csh: 6
file content (60 lines) | stat: -rwxr-xr-x 2,055 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
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE=1

DEB_BUILD_MULTIARCH=$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)

export OMPI_MCA_orte_rsh_agent=/bin/false

%:
	dh $@ --parallel

override_dh_auto_clean:
	dh_auto_clean --builddirectory=builddir
	find $(CURDIR) -name "*.pyc" -delete
	$(RM) -r $(CURDIR)/builddir/tmp-scratch

override_dh_auto_configure:
	dh_auto_configure --builddirectory=builddir --  \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo	\
		-DENABLE_CHEMPS2=1			\
		-DENABLE_DKH=0				\
		-DENABLE_PCMSOLVER=0			\
		-DENABLE_GDMA=0				\
		-DEXPLICIT_LIBS="-lint -lderiv"		\
		-DCHEMPS2_ROOT=/usr

override_dh_auto_build:
	dh_auto_build --builddirectory=builddir
	(cd builddir/doc/sphinxman; $(MAKE) sphinxman)

override_dh_auto_install:
	dh_auto_install --builddirectory=builddir
	mkdir -p debian/tmp/usr/share/doc/psi4/examples
	cp -a builddir/doc/sphinxman/html $(CURDIR)/debian/tmp/usr/share/doc/psi4
	$(RM) debian/tmp/usr/share/psi/databases/*.pyc
	find debian/tmp/usr/share/psi/python -name "*.pyc" | xargs rm -f
	cp samples/example_psi4rc_file debian/tmp/usr/share/doc/psi4/psi4rc.example
	for i in tu1-h2o-energy tu2-ch2-energy tu3-h2o-opt tu4-h2o-freq \
	tu5-sapt adc1 castup1 scf1 scf2 scf3 scf5 scf-guess-read dft1 dfmp2-1 \
	cc1 cc2 cc3 cc4 cc8 cc8a cc12 \
	cc15 cc16 cc17 cc18 cc19 cc23 cc24 cc28 cc32 cc49 \
	fci-dipole cisd-h2o+-0 ci-multi \
	cisd-opt-fd rasci-h2o mpn-bh \
	mcscf1 sapt1 sad1 \
	psimrcc-sp1 mints1 mints2 matrix1 opt1 opt1-fd gibbs omp2-2 \
	omp3-1 omp2p5-2 ocepa1 fnocc2 fnocc4 \
	mp2p5-grad1 ocepa-grad2 omp2-grad1 \
	dcft1 dcft2 dcft3 dcft4 pywrap-db1 pywrap-db2 pywrap-cbs1 pywrap-all pywrap-alias \
	pywrap-checkrun-rhf pywrap-freq-e-sowreap; \
		do cp samples/$$i/input.dat \
		$(CURDIR)/debian/tmp/usr/share/doc/psi4/examples/$$i.dat; \
	done

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	mkdir -p $(CURDIR)/builddir/tmp-scratch
	-(cd builddir/tests; CTEST_OUTPUT_ON_FAILURE=TRUE ctest -L quicktests)
	-(cd builddir/tests; CTEST_OUTPUT_ON_FAILURE=TRUE ctest -L dmrg)
endif