source: trunk/dports/devel/dialog/Portfile

Last change on this file was 142661, checked in by jmr@…, 20 months ago

dialog: add a http source to master_sites

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 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 142661 2015-11-19 03:33:39Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                dialog
7epoch               20150920
8version             1.2-20150920
9revision            1
10categories          devel
11license             LGPL-2.1
12maintainers         nomaintainer
13
14description         a utility to create nice user interfaces for command-line scripts
15
16long_description    ${name} is ${description}. It is non-graphical (it uses \
17                    curses) so it can be run in the console or an xterm.
18
19platforms           darwin
20homepage            http://www.invisible-island.net/dialog/
21master_sites        ftp://invisible-island.net/dialog/ \
22                    http://www.invisible-mirror.net/archives/dialog/
23
24#distname   ${name}
25#dist_subdir    ${name}/${version}
26#worksrcdir ${name}-${version}
27extract.suffix      .tgz
28
29checksums           rmd160  450c99c4e8e7952e78c488a64f5fe484b8fefa96 \
30                    sha256  c4e61ec5768701683dd4b5b2ebd8a31e6289fa6a1f5801e4b481085650698c05
31
32depends_lib         port:ncurses
33
34configure.args      --mandir=${prefix}/share/man \
35                    --with-ncursesw
36
37if {${name} == ${subport}} {
38
39    installs_libs   no
40
41post-destroot   {
42    file delete -force ${destroot}${prefix}/lib/libdialog.a
43
44    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
45    xinstall -m 644 -W ${worksrcpath} CHANGES COPYING README VERSION \
46        ${destroot}${prefix}/share/doc/${name}
47    xinstall -m 644 -W ${worksrcpath}/samples README calendar calendar-stdout \
48        calendar2 calendar2-stdout calendar3 calendar3-stdout checklist \
49        checklist-utf8 checklist1 checklist10 checklist2 checklist3 checklist4 \
50        checklist5 checklist6 checklist7 checklist8 checklist9 checklist9.txt \
51        form1 form2 form3 form4 form5 fselect \
52        fselect-stdout fselect1 fselect1-stdout fselect2 fselect2-stdout gauge \
53        gauge0 gauge0-input-fd gauge2 infobox infobox2 infobox3 \
54        infobox4 infobox5 infobox6 inputbox inputbox1 inputbox2 inputbox3 \
55        inputbox4 inputbox5 inputbox6-utf8 inputbox7 inputmenu \
56        inputmenu-stdout inputmenu1 inputmenu2 inputmenu3 inputmenu4 killall \
57        listing menubox menubox-utf8 menubox1 menubox10 menubox2 menubox3 \
58        menubox4 menubox5 menubox6 menubox7 menubox8 menubox9 msgbox msgbox1 \
59        msgbox2 msgbox3 msgbox4-eucjp msgbox4-utf8 msgbox5 password password1 \
60        password2 radiolist radiolist10 radiolist2 radiolist3 radiolist4 \
61        tailbox tailboxbg tailboxbg1 tailboxbg2 textbox textbox2 timebox \
62        timebox-stdout timebox2 timebox2-stdout wheel yesno yesno2 yesno3 \
63            ${destroot}${prefix}/share/doc/${name}/examples
64}
65
66livecheck.type      regex
67livecheck.url       [lindex ${master_sites} end]
68livecheck.regex     ${name}-(\[0-9.-\]+)${extract.suffix}
69} else {
70    livecheck.type  none
71}
72
73subport libdialog {
74    description         a library to create nice user interfaces for command-line programs
75
76    long_description    ${name} is ${description}. It is non-graphical (it uses \
77                        curses) so it can be used in console or xterm programs.
78
79    destroot.target     install-lib
80}
Note: See TracBrowser for help on using the repository browser.