[153845] trunk/dports/news/tin-devel/Portfile

khindenburg at macports.org khindenburg at macports.org
Thu Oct 13 16:41:29 CEST 2016


Revision: 153845
          https://trac.macports.org/changeset/153845
Author:   khindenburg at macports.org
Date:     2016-10-13 07:41:28 -0700 (Thu, 13 Oct 2016)
Log Message:
-----------
tin-devel: update to 2.3.4; add license
 - Attempt to get a recent version to work
 - This is a WIP, if this works, I'll try to get tin to 2.4.0
   and remove tin-recent

Modified Paths:
--------------
    trunk/dports/news/tin-devel/Portfile

Modified: trunk/dports/news/tin-devel/Portfile
===================================================================
--- trunk/dports/news/tin-devel/Portfile	2016-10-13 14:01:16 UTC (rev 153844)
+++ trunk/dports/news/tin-devel/Portfile	2016-10-13 14:41:28 UTC (rev 153845)
@@ -4,11 +4,13 @@
 PortSystem          1.0
 
 name                tin-devel
-version             1.7.10
-revision            2
+conflicts           tin tin-recent
+version             2.3.4
 categories          news
+license             BSD
 platforms           darwin
 maintainers         nomaintainer
+
 homepage            http://www.tin.org/
 description         A threaded NNTP and spool based UseNet newsreader
 
@@ -17,19 +19,15 @@
             server. It will automatically utilize NOV (News OVerview) style \
             index files if available locally or via the NNTP XOVER command.
 
-master_sites        ftp://ftp.tin.org/tin/v1.7/ \
-            ftp://ftp.cuhk.edu.hk/pub/packages/news/tin/v1.7/ \
-            ftp://ftp.stikman.com/pub/tin/v1.7/
+master_sites        ftp://ftp.tin.org/pub/news/clients/tin/unstable
 
-use_bzip2           yes
+checksums           rmd160  440be790c40794bc33c0e21696c3e76af9d0fdf7 \
+                    sha256  1751ab4807648798063340058f0262cd2fe05cb2f9a65b359a2878119df1f55a
 
-checksums           md5 23473a665d6d39ed4463b77d227cbb28
-
 distname            tin-${version}
 
 configure.args      --enable-break-long-lines \
                     --enable-nntp \
-                    --enable-debug \
                     --enable-mh-mail-handling \
                     --enable-included-msgs \
                     --enable-ipv6 \
@@ -38,13 +36,16 @@
                     --infodir=${prefix}/share/info \
                     --datadir=${prefix}/share \
                     --sysconfdir=${prefix}/etc \
-                    --disable-pgp-gpg
+                    --with-defaults-dir=${prefix}/etc/${name} \
+                    --disable-pgp-gpg \
+                    --without-ispell \
+                    --with-screen=ncursesw
 
 build.dir           "${worksrcpath}/src"
 
 pre-destroot {
-    file mkdir "${destroot}${prefix}/share/doc/${name}"
-    file mkdir "${destroot}${prefix}/etc/${name}"
+    xinstall -d "${destroot}${prefix}/share/doc/${name}"
+    xinstall -d "${destroot}${prefix}/etc/${name}"
     xinstall -m 644 -v -W "${worksrcpath}/doc" \
         auth.txt CHANGES config-anomalies \
         filtering good-netkeeping-seal iso2asc.txt \
@@ -53,36 +54,50 @@
         WHATSNEW \
         "${destroot}${prefix}/share/doc/${name}"
     file copy "${worksrcpath}/doc/tin.defaults" \
-        "${destroot}${prefix}/etc/${name}"
+        "${destroot}${prefix}/etc/${name}/tin.defaults-${version}"
 }
 
 post-destroot {
     xinstall -m 755 -v -W "${worksrcpath}/tools" \
         expiretover tinews.pl tinlock \
         "${destroot}${prefix}/bin"
+
+    # mutt-devel also installs these man pages, so removing here (since they
+    # describe mail formats, makes a little more sense to be in the mail app)
+    # ticket #11475
+    delete ${destroot}${prefix}/share/man/man5/mbox.5
+    delete ${destroot}${prefix}/share/man/man5/mmdf.5
 }
 
-variant gpg {
-    depends_run     bin:gpg:gnupg
+post-activate {
+    set f "${prefix}/etc/${name}/tin.defaults"
+    if {![file exists ${f}]} {
+        file copy ${f}-${version} ${f}
+    }
+}
+
+variant gpg description {GnuPG support} {
+    depends_run             bin:gpg:gnupg
     configure.args-delete   --disable-pgp-gpg
     configure.args-append   --with-gpg=${prefix}/bin/gpg \
                             --without-pgp \
                             --without-pgpk
 }
 
-variant pgp5 {
-    depends_run     bin:pgpk:pgp
+variant pgp5 description {PGPK support} {
+    depends_run             bin:pgpk:pgp
     configure.args-delete   --disable-pgp-gpg
     configure.args-append   --with-pgpk=${prefix}/bin/pgpk \
                             --without-gpg \
                             --without-pgp
 }
 
-variant ncurses {
-    configure.args-append --with-screen=ncurses
+variant ispell description {Ispell support} {
+    depends_run             bin:ispell:ispell
+    configure.args-delete   --without-ispell
+    configure.args-append   --with-ispell=${prefix}/bin/ispell
 }
 
-variant ispell {
-    depends_build       bin:ispell:ispell
-    configure.args-append   --enable-ispell
-}
+livecheck.type      regex
+livecheck.url       ${homepage}
+livecheck.regex     {unstable/tin-([0-9.]+).tar.gz}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161013/6f24942e/attachment-0002.html>


More information about the macports-changes mailing list