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

Last change on this file since 49645 was 49645, checked in by blb@…, 11 years ago

Multiple ports - remove use of cd (ticket #12914) in some ports where it is
simple; not waiting for maintainers as cd doesn't work with current MacPorts

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 49645 2009-04-14 07:58:36Z blb@macports.org $
2
3PortSystem 1.0
4
5name            DoCon
6set shortname   docon
7version         2.11
8revision        1
9categories      math devel
10maintainers     gwright@macports.org
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                        system "cd ${workpath}/${shortname} && latex manual.lat"
40                        system "cd ${workpath}/${shortname} && dvipdf manual"
41                        file mkdir ${destroot}${prefix}/share/doc/${shortname}-${version}
42                        file copy ${workpath}/${shortname}/manual.pdf ${destroot}${prefix}/share/doc/${shortname}-${version}/
43                  }
44                }
45
46configure       { system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix} --enable-library-profiling" }
47
48build           { system "cd ${worksrcpath} && runhaskell Setup build -v" }
49
50destroot        { system "cd ${worksrcpath} && runhaskell Setup copy --copy-prefix=${destroot}${prefix}"
51                  system "cd ${worksrcpath} && runhaskell Setup register   --gen-script"
52                  system "cd ${worksrcpath} && runhaskell Setup unregister --gen-script"
53
54                  file mkdir ${destroot}${prefix}/libexec/${shortname}-${version}
55                  file copy ${worksrcpath}/register.sh \
56                            ${destroot}${prefix}/libexec/${shortname}-${version}
57                  file copy ${worksrcpath}/unregister.sh \
58                            ${destroot}${prefix}/libexec/${shortname}-${version}
59                 }
60
61post-activate   { system "${prefix}/libexec/${shortname}-${version}/register.sh" }
62
63#pre-deactivate { system "${prefix}/libexec/${shortname}-${version}/unregister.sh" }
64
Note: See TracBrowser for help on using the repository browser.