Ticket #22099: wview-5.6.3_Portfile.diff

File wview-5.6.3_Portfile.diff, 5.2 KB (added by mbrooksclark@…, 15 years ago)

Another update for wview to v5.6.3

  • Portfile

    old new  
    1 # $Id: Portfile 58230 2009-09-24 16:45:22Z ryandesign@macports.org $
     1# $Id&
    22
    33PortSystem      1.0
    44
    55name            wview
    66
    7 version         4.0.1
     7version         5.6.3
     8
     9revision        1
    810
    911categories      science
    1012
     
    1719long_description \
    1820  wview is a unix application for weather stations. It archives weather \
    1921  data from the station. Generates full html web sites with graphics. \
    20   ftp/ssh export capability. MySQL/PostgreSQL archiving. International. \
    21   Weather alarms. Data feed. RSS feed. Stations currently supported include: \
    22   Davis Vantage Pro/Pro2, Vaisala WXT-510, La Crosse WS-2300, and a \
    23   weather station simulator.
     22  ftp/ssh export capability. International. Weather alarms. Data feed. \
     23  RSS feed. Stations currently supported include: Davis Vantage Pro/Pro2,\
     24  Vaisala WXT-510, La Crosse WS-2300, and a weather station simulator.
    2425
    2526platforms        darwin
    2627
    27 master_sites     sourceforge:wview
    28 
    29 depends_lib      port:gd2 port:radlib
    30 
    31 checksums        md5 1042769d7c94395bcc3732de7c1c8e87 \
    32                  sha1 949c76e1a2179eedb7104a7b28a526d4e4ffe953 \
    33                  rmd160 86e581f2d9779650d0189b0dbfb068b71b5affc8
    34 
    35 configure.args   --exec-prefix=${prefix}
    36 
    37 variant env      description { Install config files and templates (first time install) } {
    38   destroot.target-append install-env
    39 }
    40 
    41 variant mysql5  description { Includes mySQL5 database support } {
    42   configure.args-append --enable-mysql
    43   configure.ldflags-append  -L${prefix}/lib/mysql5/mysql
    44   depends_lib-append path:bin/mysql_config5:mysql5
    45 }
    46 
    47 variant pgresql   description { Includes Postgresql database support } {
    48   configure.args-append --enable-pgresql
    49   depends_lib-append port:postgresql83
    50 }
     28use_autoconf     yes
    5129
    52 variant vpro      description { Support for Davis Vantage Pro WX Station } {
    53   configure.args-append --enable-station-vp2
    54 }
    55 
    56 variant wxt510    description { Support for Vaisala WXT-510 WX Station } {
    57   configure.args-append --enable-station-wxt510
    58 }
     30master_sites     sourceforge:wview
    5931
    60 variant ws2300    description { Support for the La Crosse WS-2300 series stations } {
    61   configure.args-append --enable-station-ws2300
    62 }
     32depends_lib      port:gd2 port:radlib port:gawk port:sqlite3 port:curl
    6333
    64 variant wmr918    description { Support for the for the Oregon Scientific WMR918/968 WX Station} {
    65   configure.args-append --enable-station-wmr918
    66 }
     34checksums        md5  7dc21ef4a1f4cb2686ae628928e51f15 \
     35                 sha1 0fb124b5ae36e91143c29862082bf44fc72e65bf \
     36                 rmd160 8e8163a0fe531c806765fd1c27082385a5285765
    6737
    68 variant sim       description { Support for the Simulated WX Station } {
    69   configure.args-append --enable-station-sim
    70 }
     38configure.args   --exec-prefix=${prefix} --enable-station-sim --enable-http
    7139
    72 variant http      description { Enable support for uploading data to Weather Underground } {
    73   configure.args-append --enable-http
    74   depends_lib-append port:curl
    75 }
     40configure.env-append    HTTP_DOC_ROOT="${prefix}/www"
    7641
    7742destroot.violate_mtree
    7843
     44destroot.target-append install-env
     45
    7946post-destroot {
    8047  xinstall -d -o root -g wheel -m 755 \
     48    ${worksrcpath}/examples/MacOSX/wview ${destroot}/Library/StartupItems
     49 
     50  xinstall -d -o root -g wheel -m 755 \
    8151    ${worksrcpath}/examples/MacOSX/wview ${destroot}/Library/StartupItems/wview
    8252
    8353  xinstall -o root -g wheel -m 755 ${worksrcpath}/examples/MacOSX/wview/wview \
     
    8656  xinstall -o root -g wheel -m 644 \
    8757    ${worksrcpath}/examples/MacOSX/wview/StartupParameters.plist \
    8858    ${destroot}/Library/StartupItems/wview/StartupParameters.plist
    89 
    90 
     59         
    9160  file mkdir ${destroot}${prefix}/share/doc/${name}
    9261
    9362  file copy ${worksrcpath}/wview-Quick-Start-MacOSX.html \
     
    10473
    10574  file copy ${worksrcpath}/UPGRADE \
    10675    ${destroot}${prefix}/share/doc/${name}/UPGRADE
    107 
    108 
    10976}
    11077
    11178post-install {
    11279  ui_msg "\n#####################################"
    113   ui_msg "Run\n"
    114   ui_msg "\tsudo ${prefix}/bin/wviewconfig and\n"
    115   ui_msg "\tsudo ${prefix}/bin/wviewhtmlconfig\n"
     80  ui_msg "Run"
     81  ui_msg "\tsudo ${prefix}/bin/wviewconfig"
     82  ui_msg "\tsudo ${prefix}/bin/wviewhtmlconfig"
    11683  ui_msg "before launching wview\n"
    117   ui_msg "\n#####################################"
    118   ui_msg "html templates and config files are stored in ${prefix}/etc/wview/\n"
    119   ui_msg "archive files are stored in ${prefix}/var/wview/\n"
    120   ui_msg "\n#####################################"
    121   ui_msg "Start the daemons with the command:\n"
     84  ui_msg "#####################################"
     85  ui_msg "html templates and config files are stored in"
     86  ui_msg "\t${prefix}/etc/wview/\n"
     87  ui_msg "archive files are stored in"
     88  ui_msg "\t${prefix}/var/wview/\n"
     89  ui_msg "#####################################"
     90  ui_msg "wviewmgmt scripts are installed in"
     91  ui_msg "\t${prefix}/www/wviewmgmt\n"
     92  ui_msg "#####################################"
     93  ui_msg "Start the daemons with the command:"
    12294  ui_msg "\tsudo /sbin/SystemStarter start wview\n"
    123   ui_msg "\n#####################################"
     95  ui_msg "#####################################"
    12496}