source: trunk/dports/sysutils/sunwait/Portfile

Last change on this file was 151789, checked in by ryandesign@…, 13 months ago

sunwait: use the right compiler and -arch flags and add universal variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; 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 151789 2016-08-22 03:31:05Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                sunwait
7epoch               1
8version             0.8
9revision            1
10set dlversion       [string range [subst [regsub -all {\.} "${version}" {-}]] 0 3]
11categories          sysutils
12license             GPL-3
13platforms           darwin
14maintainers         nomaintainer
15
16description         calculates sunrise, sunset, twilight
17long_description \
18    Sunwait is a small program for calculating sunrise, \
19    sunset, civil twilight, nautical twilight, and astronomical \
20    twilight. It has options to wait until some time-offset from \
21    one of these events, making it useful for home automation \
22    tasks that should happen relative to the sun's position.
23
24homepage            https://sourceforge.net/projects/sunwait4windows/
25master_sites        sourceforge:sunwait4windows
26
27distname            ${name}${dlversion}
28
29checksums           rmd160  3ba0d5ab15ce346633d04cb8929cf432f71a7ca5 \
30                    sha256  839ac6853f21073fa85619fac049d416619e2e6bac7a966df02e1045df13f625
31
32extract.cmd         cat
33extract.pre_args
34extract.suffix      .tar
35
36worksrcdir          ${name}/${version}
37
38patchfiles          patch-makefile.diff \
39                    patch-sunriset.cpp.diff
40
41use_configure       no
42
43variant universal {}
44
45build.args          C="${configure.cxx} [get_canonical_archflags cxx]"
46build.target        sunwait
47
48destroot {
49    xinstall -m 755 ${worksrcpath}/sunwait ${destroot}${prefix}/bin
50}
51
52livecheck.type      regex
53livecheck.url       https://sourceforge.net/projects/sunwait4windows/files/
54livecheck.regex     (${name}\[0-9\-\]+)${extract.suffix}
55livecheck.version   ${distname}
Note: See TracBrowser for help on using the repository browser.