~ubuntu-branches/ubuntu/raring/boost-build/raring

« back to all changes in this revision

Viewing changes to tools/fortran.jam

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2008-08-06 00:38:31 UTC
  • mfrom: (4.1.1 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080806003831-zr65893244swds0b
Tags: 2.0-m12-2
* debian/rules: Do not install /etc/user-config.jam.
* debian/site-config.jam: New.  Install into /etc instead of empty
  example.  Closes: #493323.

* debian/control: Update homepage.  Update description.  Closes:
  #493510.  Update Standards-Version to 3.8.0; no changes.

* debian/compat: New.  Set compat level to 7.
* debian/rules: Remove DH_COMPAT setting.
* debian/control: Change debhelper build-dep to version >= 7.

* debian/control: Remove docbook-to-man, bison from build-deps.

* debian/rules: Clean up upstream source by removing debian/conffiles.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#
10
10
 
11
11
import "class" : new ;
 
12
import feature : feature ;
12
13
 
13
14
import type ;
14
15
import generators ;
15
16
import common ;
16
17
 
17
 
type.register FORTRAN : f ;
 
18
type.register FORTRAN : f F for f77 ;
 
19
type.register FORTRAN90 : f90 F90 ;
 
20
 
 
21
feature fortran : : free ;
 
22
feature fortran90 : : free ;
18
23
 
19
24
class fortran-compiling-generator : generator
20
25
{
30
35
    generators.register $(g) ;
31
36
}
32
37
 
 
38
class fortran90-compiling-generator : generator
 
39
{
 
40
    rule __init__ ( id : source-types + : target-types + : requirements * : optional-properties * )
 
41
    {
 
42
        generator.__init__ $(id) : $(source-types) : $(target-types) : $(requirements) : $(optional-properties) ;
 
43
    }
 
44
}
 
45
 
 
46
rule register-fortran90-compiler ( id : source-types + : target-types + : requirements * : optional-properties * )
 
47
{
 
48
    local g = [ new fortran90-compiling-generator $(id) : $(source-types) : $(target-types) : $(requirements) : $(optional-properties) ] ;
 
49
    generators.register $(g) ;
 
50
}
 
51
 
33
52
# FIXME: this is ugly, should find a better way (we'd want client code to
34
53
# register all generators as "generator.some-rule", not with "some-module.some-rule".)
35
54
IMPORT $(__name__) : register-fortran-compiler : : generators.register-fortran-compiler ;
36
 
 
 
55
IMPORT $(__name__) : register-fortran90-compiler : : generators.register-fortran90-compiler ;