source: trunk/dports/science/qfsm/Portfile

Last change on this file was 108936, checked in by ecronin@…, 4 years ago

qfsm: drop maintainership, fix livecheck, avoid redirect

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 108936 2013-08-04 20:59:09Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6
7name                qfsm
8license             GPL-2
9version             0.52.0
10set major           [lindex [split ${version} .] 0]
11set minor           [lindex [split ${version} .] 1]
12revision            1
13categories          science
14maintainers         nomaintainer
15description         A graphical tool for designing finite state machines
16long_description    Qfsm is a graphical editor for finite state machines \
17                    written in C++ using Qt the graphical Toolkit from Trolltech
18
19platforms           darwin
20homepage            http://qfsm.sourceforge.net
21master_sites        sourceforge:project/${name}/${name}/${name}-${major}.${minor}
22distname            ${name}-${version}-Source
23use_bzip2           yes
24checksums           md5     62590fe7dfd7d77c80b03695860a2434 \
25                    sha1    6820603155270d0abdc5a302a647e9588f92a2dc \
26                    rmd160  c60d6b49e1eaaffdf258f468e7e897479524baff
27
28livecheck.url       http://sourceforge.net/projects/qfsm/files/
29livecheck.type      regex
30livecheck.regex     Download ${name}-(\[0-9.\]*)-Source${extract.suffix}
31
32post-patch {
33    reinplace "s|SET(CMAKE_INSTALL_PREFIX \"/usr\")|SET(CMAKE_INSTALL_PREFIX \"${prefix}\")|g" ${worksrcpath}/CMakeLists.txt
34}
35
36variant qt_mac conflicts qt_x11 description {build with qt4-mac} {
37    PortGroup qt4 1.0
38    configure.args-append ${qt_cmake_defines}
39}
40
41variant qt_x11 conflicts qt_mac description {build with qt4-x11} {
42    depends_lib-append port:qt4-x11
43    configure.args  \
44        -DQT_LIBRARY_DIR=${prefix}/libexec/qt4-x11/lib \
45        -DQT_QMAKE_EXECUTABLE=${prefix}/libexec/qt4-x11/bin/qmake
46}
47
48if {![variant_isset qt_mac] && ![variant_isset qt_x11]} {
49    default_variants +qt_mac
50}
Note: See TracBrowser for help on using the repository browser.