source: trunk/dports/science/triangle/Portfile @ 30208

Last change on this file since 30208 was 30208, checked in by jmpp@…, 13 years ago

Openmaintainer address abstraction in science category.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 30208 2007-10-22 21:09:10Z jmpp@macports.org $
2
3PortSystem              1.0
4name                    triangle
5version                 1.6
6categories              science
7maintainers             jwa openmaintainer
8description             A Two-Dimensional Quality Mesh Generator and Delaunay Triangulator
9long_description        Triangle generates exact Delaunay triangulations, \
10    constrained Delaunay triangulations, conforming Delaunay \
11    triangulations, Voronoi diagrams, and high-quality triangular \
12    meshes. The latter can be generated with no small or large \
13    angles, and are thus suitable for finite element analysis.
14
15platforms               darwin
16
17homepage                http://www.cs.cmu.edu/~quake/triangle.html
18master_sites            http://cm.bell-labs.com/netlib/voronoi/
19distname                ${name}.shar
20
21worksrcdir              ${name}
22
23checksums               sha1 b581366c09340f33c634eb2bb724881924fe87a3
24
25extract.suffix          .gz
26extract.cmd                     gzip
27extract.pre_args        -dc
28extract.post_args       "| sh"
29
30post-extract    {
31    cd ${workpath}
32    file mkdir ${worksrcdir}
33    eval file rename [glob \[A-s\]* t*.?] ${worksrcdir}
34    reinplace "s/-DLINUX//" ${worksrcdir}/makefile
35}
36
37depends_lib             lib:libX11.6:XFree86
38
39use_configure           no
40
41destroot        {
42}
43
44destroot.destdir        BINDIR=${destroot}/${prefix}/bin
45
46post-destroot {
47    xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name} \
48        ${destroot}/${prefix}/bin
49    eval xinstall -m 644 -W ${worksrcpath} A.poly README ${destroot}/${prefix}/share/doc/${name}
50    xinstall -m 755 -W ${worksrcpath} triangle showme ${destroot}/${prefix}/bin
51}
52
53livecheck.check regex
54livecheck.url   ${homepage}
55livecheck.regex Version (1\.\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.