Ticket #43964: Portfile-weechat.diff
File Portfile-weechat.diff, 3.4 KB (added by harciga, 10 years ago) |
---|
-
Portfile
old new 5 5 PortGroup cmake 1.0 6 6 7 7 name weechat 8 version 0.4.39 revision 110 checksums rmd160 b9625a977d36757a4b8dfa560946f1604ba5f68a \11 sha256 a8ec847d331a1201de975530a22f1813c260db420c68675b2ecaa7bf3c7c3ff812 8 13 9 homepage http://weechat.org/ 14 10 license GPL-3 … … 30 26 openmaintainer 31 27 platforms darwin 32 28 33 master_sites ${homepage}files/src 34 use_bzip2 yes 29 if {${name} eq ${subport}} { 30 version 0.4.3 31 revision 1 32 conflicts ${name}-devel ${name}-git 33 use_bzip2 yes 34 master_sites ${homepage}files/src 35 checksums rmd160 b9625a977d36757a4b8dfa560946f1604ba5f68a \ 36 sha256 a8ec847d331a1201de975530a22f1813c260db420c68675b2ecaa7bf3c7c3ff8 37 } 38 39 subport ${name}-devel { 40 version git-20140608 41 conflicts ${name} ${name}-git 42 fetch.type git 43 git.url https://github.com/weechat/weechat.git 44 # June, 08, 2014 https://github.com/weechat/weechat/commit/3fa4f8a4bcc80976b4743498b861e6e364ebc7ea 45 git.branch 3fa4f8a4bc 46 } 47 48 subport ${name}-git { 49 version git-latest 50 conflicts ${name} ${name}-devel 51 fetch.type git 52 git.url https://github.com/weechat/weechat.git 53 } 35 54 36 55 depends_lib-append port:gettext \ 37 56 port:libgcrypt \ 38 57 port:libiconv \ 39 58 port:ncurses 40 59 41 depends_run-append path:etc/openssl/cert.pem:certsync42 43 60 configure.args-append \ 44 61 -DENABLE_GNUTLS=OFF \ 45 62 -DENABLE_LUA=OFF \ … … 47 64 -DENABLE_PERL=OFF \ 48 65 -DENABLE_PYTHON=OFF \ 49 66 -DENABLE_RUBY=OFF \ 50 -DENABLE_ASPELL=OFF \ 51 -DCA_FILE=${prefix}/etc/openssl/cert.pem 67 -DENABLE_ASPELL=OFF 52 68 53 69 variant aspell description {Support for aspell} { 54 70 configure.args-delete -DENABLE_ASPELL=OFF … … 91 107 } 92 108 93 109 variant tls description {Support for secure connecting} { 110 depends_run-append path:etc/openssl/cert.pem:certsync 111 94 112 configure.args-delete -DENABLE_GNUTLS=OFF 95 configure.args-append -DENABLE_GNUTLS=ON 113 configure.args-append -DENABLE_GNUTLS=ON \ 114 -DCA_FILE=${prefix}/etc/openssl/cert.pem 96 115 depends_lib-append port:gnutls 97 116 } 98 117 99 118 post-destroot { 100 119 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} 101 xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \ 120 if {${subport} eq ${name}} { 121 xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \ 102 122 ${destroot}${prefix}/share/doc/${name} 103 eval xinstall -m 644 -W ${worksrcpath} [glob doc/en/weechat*.txt] \123 eval xinstall -m 644 -W ${worksrcpath} [glob doc/en/weechat*.txt] \ 104 124 ${destroot}${prefix}/share/doc/${name} 125 } else { 126 xinstall -m 644 -W ${worksrcpath} AUTHORS.asciidoc COPYING ChangeLog.asciidoc README.asciidoc \ 127 ${destroot}${prefix}/share/doc/${name} 128 eval xinstall -m 644 -W ${worksrcpath} [glob doc/en/weechat*.asciidoc] \ 129 ${destroot}${prefix}/share/doc/${name} 130 } 105 131 } 106 132 107 133 post-install {