Ticket #10777: Portfile

File Portfile, 1.1 KB (added by wyuenho (Jimmy Yuen Ho Wong), 18 years ago)
Line 
1# $Id: $
2PortSystem        1.0
3name              astyle
4version           1.19
5categories        devel
6platforms         darwin
7maintainers       macports@macports.org
8description       source code beautifier for the C, C++, C# and Java  programming
9long_description  Artistic Style is a source code indenter, source code formatter \
10                  , and source code beautifier for the C, C++, C# and Java \
11                  programming languages.
12homepage          http://astyle.sourceforge.net/
13master_sites      sourceforge
14distname          ${name}_${version}_linux
15worksrcdir        ${name}
16checksums         md5 2cd52822f39b9211846c4070999a492d
17patchfiles        patch-Makefile
18
19post-extract {
20  set entries [glob ${worksrcpath}/src/*]
21  foreach entry ${entries} {
22    file attributes ${entry} -permissions u-x,g-wx,o-wx
23  }
24  set entries [glob ${worksrcpath}/doc/*]
25  foreach entry ${entries} {
26    file attributes ${entry} -permissions u-x,g-wx,o-wx
27  }
28}
29
30configure {}
31
32pre-build {
33  set worksrcdir ${worksrcdir}/src
34}
35
36destroot {
37  file copy ${worksrcpath}/${name} ${destroot}${prefix}/bin
38}