source: trunk/dports/math/DoCon/Portfile

Last change on this file was 131201, checked in by cal@…, 3 years ago

revbump all haskell ports, follows r131199, #44891

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