source: trunk/dports/math/DoCon/Portfile @ 29789

Last change on this file since 29789 was 29789, checked in by ryandesign@…, 12 years ago

Set svn:keywords of all portfiles to Id as per current requirements

  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 29789 2007-10-10 07:16:12Z ryandesign@macports.org $
2
3PortSystem 1.0
4name            DoCon
5set shortname   docon
6version         2.10
7categories      devel
8maintainers     gwright@macports.org
9platforms       darwin
10
11description     DoCon is the Algebraic Domain Constructor
12long_description        \
13                DoCon joins the categorial approach to mathematical     \
14                computation expressed via the Haskell type classes,     \
15                and explicit processing of the domain description       \
16                terms.  It implements recently a good piece of          \
17                commutative algebra: linear algebra, polynomial gcd,    \
18                factorization, Groebner bases, and other functions.
19
20homepage        http://haskell.org/${shortname}
21master_sites    ${homepage}/distrib/${version}
22distname        ${shortname}-${version}
23use_zip         yes
24
25checksums       md5 05db0669029fb43400a2726b4742037b
26
27depends_lib     port:ghc
28
29set worksrcpath ${workpath}/${shortname}/source
30
31variant printable_doc {
32                  depends_build port:teTeX
33
34                  post-destroot {
35                        cd ${workpath}/${shortname}
36                        system "latex manual.lat"
37                        system "latex manual.lat"
38                        system "latex manual.lat"
39                        system "dvipdf manual"
40                        file mkdir ${destroot}${prefix}/share/${shortname}-${version}
41                        file copy manual.pdf ${destroot}${prefix}/share/${shortname}-${version}/
42                  }
43                }
44
45configure       { cd ${worksrcpath}
46                  system "runhaskell Setup configure --ghc --prefix=${prefix} --enable-library-profiling"
47                }
48
49build           { cd ${worksrcpath}
50                  system "runhaskell Setup build -v"
51                }
52
53destroot        { cd ${worksrcpath}
54                  system "runhaskell Setup copy --copy-prefix=${destroot}${prefix}"
55                  system "runhaskell Setup register   --gen-script"
56                  system "runhaskell Setup unregister --gen-script"
57
58                  file mkdir ${destroot}${prefix}/libexec/${shortname}-${version}
59                  file copy ${worksrcpath}/register.sh \
60                            ${destroot}${prefix}/libexec/${shortname}-${version}
61                  file copy ${worksrcpath}/unregister.sh \
62                            ${destroot}${prefix}/libexec/${shortname}-${version}
63                 }
64
65post-activate   { system "${prefix}/libexec/${shortname}-${version}/register.sh" }
66
67#pre-deactivate { system "${prefix}/libexec/${shortname}-${version}/unregister.sh" }
68
Note: See TracBrowser for help on using the repository browser.