~ubuntu-branches/ubuntu/vivid/psicode/vivid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Michael Banck
  • Date: 2012-03-29 01:26:55 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120329012655-8lnngrup9p40ow4z
Tags: 3.4.0-3
* debian/control: Add CC3, MRCCSD and SCS-MP2 energies, RHF hessian and
  closed-shell MP2 gradient to features, clarify that MP2-R12 is an
  explicitly correlated method.
* debian/patches/09_system_libint.dpatch: New patch, modifies the build
  system to use the system libint and not compile and link in the shipped
  libint codes.
* debian/control (Build-Depends): Added libint-dev.
* debian/rules (DEB_MAKE_CHECK_TARGET): Run quicktests target to invoke the
  test suite.
* debian/rules: Rewritten for dh.
* debian/control (Build-Depends): Bumped debhelper version to 8, removed
  cdbs and dpatch.
* debian/patches: Moved to source version 3.0 (quilt).
* debian/source/format: New file.
* debian/rules (override_dh_auto_install): Install some test suite input
  files as examples.
* debian/dirs: Added examples directory.
* debian/TODO: Updated.
* debian/control (Standards-Version): Bumped to 3.9.3.
* debian/rules (override_dh_auto_test): Do not abort build on test suite
  failure.
* debian/rules (override_dh_auto_build): New rule, build the user manual in
  addition to the main code.
* debian/control (Build-Depends): Added texlive-latex-recommended.
* debian/patches/10_makerules_doc.patch: New patch, build the postscript
  file by default and deletes some more generated files on realclean.
* debian/rules (override_dh_auto_install): Install postscript user manual
  into documentation directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
 
3
 
include /usr/share/cdbs/1/rules/buildcore.mk
4
 
include /usr/share/cdbs/1/class/autotools.mk
5
 
include /usr/share/cdbs/1/rules/debhelper.mk
6
 
include /usr/share/cdbs/1/rules/dpatch.mk
7
 
 
8
 
DEB_CONFIGURE_EXTRA_FLAGS := --bindir=/usr/lib/psi --docdir=/usr/share/doc/psi3
9
 
DEB_CONFIGURE_EXTRA_FLAGS += --with-fc=gfortran --with-debug="-Wall -g"
10
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
11
 
DEB_CONFIGURE_EXTRA_FLAGS += --with-opt="-O0"
 
2
# -*- makefile -*-
 
3
 
 
4
#export DH_VERBOSE=1
 
5
 
 
6
export SCRATCH="$(CURDIR)/tmp-scratch"
 
7
 
 
8
%:
 
9
        dh $@
 
10
 
 
11
override_dh_auto_clean:
 
12
        dh_auto_clean
 
13
        -(cd tests; $(MAKE) quicktestsclean)
 
14
        -(cd doc/userman; $(MAKE) realclean)
 
15
        find $(CURDIR) \( -name Makefile -o -name MakeVars -o -name MakeRules -o -name "*_config.h" \) -delete
 
16
        (cd doc; rm -f doxygen/doxygen.cfg macros.tex progman/svn.eps userman/prsty.bst)
 
17
        (cd tests; rm -f runtest.pl psi_start/psi_start.pl uhf-stab/uhf-stab.pl rhf-stab/rhf-stab.pl rohf-stab/rohf-stab.pl)
 
18
        (cd include; rm -f psiconfig.h chkpt_params.h)
 
19
        rm -f lib/*.a a.out config.*
 
20
        rm -rf tmp-scratch
 
21
 
 
22
override_dh_auto_configure:
 
23
        dh_auto_configure -- --bindir=/usr/lib/psi --docdir=/usr/share/doc/psi3
 
24
 
 
25
override_dh_auto_build:
 
26
        (cd doc/userman; $(MAKE))
 
27
        dh_auto_build
 
28
 
 
29
override_dh_auto_install:
 
30
        dh_auto_install
 
31
        rm -rf debian/psi3/usr/lib/libPSI*
 
32
        rm -rf debian/psi3/usr/include
 
33
        rm -rf debian/psi3/usr/share/psi/ruby
 
34
        mv debian/psi3/usr/lib/psi/psi3 debian/psi3/usr/bin
 
35
        for i in scf-opt scf-freq scf-polar rhf-stab            \
 
36
        rhf-oeprop cc1 mp2-opt mp2-direct-sp mp2-scs            \
 
37
        dboc-rhf1 mp2r12-sp1 rhf-lindep1 cisd-sp casscf-sp;     \
 
38
                do cp tests/$$i/input.dat                       \
 
39
                debian/psi3/usr/share/doc/psi3/examples/$$i.dat;\
 
40
        done
 
41
        cp doc/userman/userman.ps debian/psi3/usr/share/doc/psi3
 
42
 
 
43
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 
44
override_dh_auto_test:
 
45
        -(cd tests; $(MAKE) quicktests)
12
46
endif
13
 
DEB_MAKE_INSTALL_TARGET += txtdir=/usr/share/doc/psi3
14
 
DEB_MAKE_CLEAN_TARGET := clean
15
 
DEB_MAKE_CHECK_TARGET := -k tests || true
16
 
DEB_MAKE_ENVVARS := SCRATCH="$(CURDIR)/tmp-scratch"
17
 
 
18
 
# Remove static libraries too, sf.net #1900682
19
 
clean::
20
 
        find $(CURDIR) \( -name Makefile -o -name MakeVars -o -name MakeRules \) -delete
21
 
        rm -rf tmp-scratch
22
 
        dh_clean lib/*.a config.*
23
 
 
24
 
install/psi3::
25
 
        # Move over the psi3 executable
26
 
        mv $(CURDIR)/debian/psi3/usr/lib/psi/psi3 $(CURDIR)/debian/psi3/usr/bin
27
 
        # Do not ship development stuff and ruby bindings for now
28
 
        rm -rf $(CURDIR)/debian/psi3/usr/include
29
 
        rm -f $(CURDIR)/debian/psi3/usr/lib/lib*
30
 
        rm -rf $(CURDIR)/debian/psi3/usr/share/psi/ruby
31
 
        # we put the helper tools into /usr/lib/psi/, so delete all
32
 
        # manual pages except psi3.1
33
 
        find $(CURDIR)/debian/psi3/usr/share/man/man1/ -type f ! -name "psi3.1" -delete