Ticket #22099: wview-5.6.3_Portfile.diff
File wview-5.6.3_Portfile.diff, 5.2 KB (added by mbrooksclark@…, 15 years ago) |
---|
-
Portfile
old new 1 # $Id : Portfile 58230 2009-09-24 16:45:22Z ryandesign@macports.org $1 # $Id& 2 2 3 3 PortSystem 1.0 4 4 5 5 name wview 6 6 7 version 4.0.1 7 version 5.6.3 8 9 revision 1 8 10 9 11 categories science 10 12 … … 17 19 long_description \ 18 20 wview is a unix application for weather stations. It archives weather \ 19 21 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. 24 25 25 26 platforms darwin 26 27 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 } 28 use_autoconf yes 51 29 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 } 30 master_sites sourceforge:wview 59 31 60 variant ws2300 description { Support for the La Crosse WS-2300 series stations } { 61 configure.args-append --enable-station-ws2300 62 } 32 depends_lib port:gd2 port:radlib port:gawk port:sqlite3 port:curl 63 33 64 variant wmr918 description { Support for the for the Oregon Scientific WMR918/968 WX Station} { 65 configure.args-append --enable-station-wmr91866 } 34 checksums md5 7dc21ef4a1f4cb2686ae628928e51f15 \ 35 sha1 0fb124b5ae36e91143c29862082bf44fc72e65bf \ 36 rmd160 8e8163a0fe531c806765fd1c27082385a5285765 67 37 68 variant sim description { Support for the Simulated WX Station } { 69 configure.args-append --enable-station-sim 70 } 38 configure.args --exec-prefix=${prefix} --enable-station-sim --enable-http 71 39 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 } 40 configure.env-append HTTP_DOC_ROOT="${prefix}/www" 76 41 77 42 destroot.violate_mtree 78 43 44 destroot.target-append install-env 45 79 46 post-destroot { 80 47 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 \ 81 51 ${worksrcpath}/examples/MacOSX/wview ${destroot}/Library/StartupItems/wview 82 52 83 53 xinstall -o root -g wheel -m 755 ${worksrcpath}/examples/MacOSX/wview/wview \ … … 86 56 xinstall -o root -g wheel -m 644 \ 87 57 ${worksrcpath}/examples/MacOSX/wview/StartupParameters.plist \ 88 58 ${destroot}/Library/StartupItems/wview/StartupParameters.plist 89 90 59 91 60 file mkdir ${destroot}${prefix}/share/doc/${name} 92 61 93 62 file copy ${worksrcpath}/wview-Quick-Start-MacOSX.html \ … … 104 73 105 74 file copy ${worksrcpath}/UPGRADE \ 106 75 ${destroot}${prefix}/share/doc/${name}/UPGRADE 107 108 109 76 } 110 77 111 78 post-install { 112 79 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" 116 83 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:" 122 94 ui_msg "\tsudo /sbin/SystemStarter start wview\n" 123 ui_msg " \n#####################################"95 ui_msg "#####################################" 124 96 }