source: trunk/dports/devel/astyle/Portfile

Last change on this file was 144506, checked in by khindenburg@…, 21 months ago

astyle: update to 2.05.1; building lib by default thus remove +lib; misc fixes #48862

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 144506 2016-01-10 17:46:59Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           java 1.0
6PortGroup           muniversal 1.0
7
8name                astyle
9version             2.05.1
10categories          devel
11license             LGPL-3+
12platforms           darwin
13maintainers         wyuenho openmaintainer
14
15description         source code beautifier for the C, C++, C# and Java programming languages
16long_description    Artistic Style is a source code indenter, source code formatter, \
17                    and source code beautifier for the C, C++, C# and Java \
18                    programming languages.
19
20homepage            http://astyle.sourceforge.net
21master_sites        sourceforge:project/astyle/astyle/astyle%20${version}
22distname            ${name}_${version}_macosx
23checksums           rmd160  d153c0004c7a5d44dc68f235b5baa36e988afab3 \
24                    sha256  de66da286dee2b9de1dc1c05092cbf5368c0889f25d1e2ee8b51766aff8e4baf
25
26worksrcdir          ${name}/build/mac
27
28patchfiles          patch-Makefile.diff
29
30use_configure       no
31
32build.args-append   prefix=${prefix}
33
34destroot.target-append \
35                    install-lib
36destroot.args-append \
37                    prefix=${prefix}
38
39foreach arch ${configure.universal_archs} {
40    lappend merger_build_args(${arch}) CXX='${configure.cxx} -arch ${arch}'
41    lappend merger_destroot_args(${arch}) CXX='${configure.cxx} -arch ${arch}'
42}
43
44if {![variant_isset universal]} {
45    if {[info exists merger_build_args(${configure.build_arch})]} {
46        build.args-append $merger_build_args(${configure.build_arch})
47    }
48    if {[info exists merger_destroot_args(${configure.build_arch})]} {
49        destroot.args-append $merger_destroot_args(${configure.build_arch})
50    }
51}
52
53variant java description {Build and install the JNI library} {
54    build.target-append java
55    destroot.target-append install-jnilib
56}
57
58livecheck.regex     "[quotemeta $name] (\\d+(\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.