# $Id: Portfile 37228 2008-05-31 14:10:38Z jmr@macports.org $ PortSystem 1.0 name DoCon set shortname docon version 2.10 categories devel maintainers gwright@macports.org platforms darwin description DoCon is the Algebraic Domain Constructor long_description \ DoCon joins the categorial approach to mathematical \ computation expressed via the Haskell type classes, \ and explicit processing of the domain description \ terms. It implements recently a good piece of \ commutative algebra: linear algebra, polynomial gcd, \ factorization, Groebner bases, and other functions. homepage http://haskell.org/${shortname} master_sites ${homepage}/distrib/${version} distname ${shortname}-${version} use_zip yes checksums md5 05db0669029fb43400a2726b4742037b depends_lib port:ghc set worksrcpath ${workpath}/${shortname}/source variant printable_doc { depends_build bin:latex:texlive port:ghostscript post-destroot { cd ${workpath}/${shortname} system "latex manual.lat" system "latex manual.lat" system "latex manual.lat" system "dvipdf manual" file mkdir ${destroot}${prefix}/share/${shortname}-${version} file copy manual.pdf ${destroot}${prefix}/share/${shortname}-${version}/ } } configure { cd ${worksrcpath} system "runhaskell Setup configure --ghc --prefix=${prefix} --enable-library-profiling" } build { cd ${worksrcpath} system "runhaskell Setup build -v" } destroot { cd ${worksrcpath} system "runhaskell Setup copy --copy-prefix=${destroot}${prefix}" system "runhaskell Setup register --gen-script" system "runhaskell Setup unregister --gen-script" file mkdir ${destroot}${prefix}/libexec/${shortname}-${version} file copy ${worksrcpath}/register.sh \ ${destroot}${prefix}/libexec/${shortname}-${version} file copy ${worksrcpath}/unregister.sh \ ${destroot}${prefix}/libexec/${shortname}-${version} } post-activate { system "${prefix}/libexec/${shortname}-${version}/register.sh" } #pre-deactivate { system "${prefix}/libexec/${shortname}-${version}/unregister.sh" }