[124011] trunk/dports/irc/weechat/Portfile

cal at macports.org cal at macports.org
Sun Aug 17 04:37:02 PDT 2014


Revision: 124011
          https://trac.macports.org/changeset/124011
Author:   cal at macports.org
Date:     2014-08-17 04:37:02 -0700 (Sun, 17 Aug 2014)
Log Message:
-----------
weechat: update to 1.0, add -devel subport, maintainer, closes #44672, #43964, and #44598

Modified Paths:
--------------
    trunk/dports/irc/weechat/Portfile

Modified: trunk/dports/irc/weechat/Portfile
===================================================================
--- trunk/dports/irc/weechat/Portfile	2014-08-17 10:44:50 UTC (rev 124010)
+++ trunk/dports/irc/weechat/Portfile	2014-08-17 11:37:02 UTC (rev 124011)
@@ -3,12 +3,9 @@
 
 PortSystem          1.0
 PortGroup           cmake 1.0
+PortGroup           github 1.0
 
 name                weechat
-version             0.4.3
-revision            2
-checksums           rmd160  b9625a977d36757a4b8dfa560946f1604ba5f68a \
-                    sha256  a8ec847d331a1201de975530a22f1813c260db420c68675b2ecaa7bf3c7c3ff8
 
 homepage            http://weechat.org/
 license             GPL-3
@@ -30,16 +27,34 @@
                     openmaintainer
 platforms           darwin
 
-master_sites        ${homepage}files/src
-use_bzip2           yes
+if {${name} eq ${subport}} {
+    version         1.0
+    conflicts       weechat-devel
+    use_bzip2       yes
+    master_sites    ${homepage}files/src
+    checksums       rmd160  d36e7144884a0779b8242ac5e35f4e3c6379af65 \
+                    sha256 82563f222df3a8b3381216d4e97e02bff79b8d836d4dac0eb08ff75bde83cb3d
+}
 
+subport weechat-devel {
+    github.setup    weechat weechat 1b7352e3797c7224941b27c87606859affc28b6d
+    name            weechat-devel
+    version         20140815
+
+    conflicts       weechat
+
+    checksums       rmd160  054800a36f01a879f8a74a39b0f24df3ebb59f34 \
+                    sha256 fc4f28126384596657e53dd072767ee8daf681f40c62ff67ea33e7d78f4c774a
+}
+
+depends_build-append \
+                    port:asciidoc
+
 depends_lib-append  port:gettext \
                     port:libgcrypt \
                     port:libiconv \
                     port:ncurses
 
-depends_run-append  path:etc/openssl/cert.pem:certsync
-
 configure.args-append \
                     -DENABLE_GNUTLS=OFF \
                     -DENABLE_LUA=OFF \
@@ -48,7 +63,7 @@
                     -DENABLE_PYTHON=OFF \
                     -DENABLE_RUBY=OFF \
                     -DENABLE_ASPELL=OFF \
-                    -DCA_FILE=${prefix}/etc/openssl/cert.pem
+                    -DENABLE_MAN=ON
 
 variant aspell description {Support for aspell} {
     configure.args-delete   -DENABLE_ASPELL=OFF
@@ -91,17 +106,24 @@
 }
 
 variant tls description {Support for secure connecting} {
+    depends_run-append      path:etc/openssl/cert.pem:certsync
+
     configure.args-delete   -DENABLE_GNUTLS=OFF
-    configure.args-append   -DENABLE_GNUTLS=ON
+    configure.args-append   -DENABLE_GNUTLS=ON \
+                            -DCA_FILE=${prefix}/etc/openssl/cert.pem
     depends_lib-append      port:gnutls
 }
 
+variant doc description {Build Documentation and plugin API} {
+    depends_build-append    port:source-highlight
+
+    configure.args-append   -DENABLE_DOC=ON
+}
+
 post-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
-        ${destroot}${prefix}/share/doc/${name}
-    eval xinstall -m 644 -W ${worksrcpath} [glob doc/en/weechat*.txt] \
-        ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc/weechat
+    xinstall -m 644 -W ${worksrcpath} AUTHORS.asciidoc COPYING ChangeLog.asciidoc README.asciidoc ${destroot}${prefix}/share/doc/weechat
+    eval xinstall -m 644 -W ${worksrcpath} [glob doc/en/weechat*.asciidoc] ${destroot}${prefix}/share/doc/weechat
 }
 
 post-install {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140817/807fa80c/attachment.html>


More information about the macports-changes mailing list