Ticket #20381: Portfile-nzbget-corrected.diff

File Portfile-nzbget-corrected.diff, 2.4 KB (added by fracai, 15 years ago)

Portfile diff - updated with OpenSSL dependency

  • Portfile

    old new  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
    12# $Id$
    23
    34PortSystem 1.0
     5
    46name             nzbget
    5 version          0.2.3
     7version         0.6.0
    68categories       net
    79maintainers      nomaintainer
     10
    811description      binary newsgrabber
    912long_description \
    10         A command-line based binary newsgrabber for Linux, Unix \
     13        A command-line based binary newsgrabber for Linux, Unix, \
    1114        and Mac OS X supporting nzb-files.
     15
    1216homepage         http://sourceforge.net/projects/nzbget/
    1317platforms        darwin
    1418master_sites     sourceforge
    15 patchfiles       patch-Coordinator.cpp patch-NZBQueue.h patch-NCursesFrontend.cpp \
    16                  patch-NZBQueue.cpp patch-NZBQueueCoordinator.cpp patch-nzbget.cpp
    17 checksums        md5 25554537c7641bd36f573a5f7c89b449
    18 
    19 depends_lib      port:libxml2
    2019
    21 configure.args   --with-libxml2-includes=${prefix}/include/libxml2
    22 
    23 platform darwin 9 {
    24     configure.cppflags-append       -D__DARWIN_UNIX03
     20checksums   sha1    c01b455e221c6075f7543de7d953966a527a6b6e \
     21            md5     eb95b3930abffb570e37af8d284c1f9d \
     22            rmd160  7dacc0a24efb66019de99fd6b143c97a559883ba
     23
     24
     25depends_build   port:pkgconfig
     26depends_lib     port:libsigcxx2 \
     27                port:openssl \
     28                port:libpar2 \
     29                port:libxml2
     30
     31configure.args  LIBS=-lcrypto \
     32                --with-tlslib=OpenSSL \
     33                --with-openssl-includes=${prefix}/include/openssl \
     34                --with-openssl-libraries=${prefix}/lib \
     35                --mandir=${prefix}/share/man
     36
     37post-destroot {
     38    set docdir ${prefix}/share/doc/${name}-${version}
     39    xinstall -d ${destroot}${docdir}
     40    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING INSTALL NEWS README \
     41        nzbget.conf.example ${destroot}${docdir}
    2542}
    2643
    27 destroot {
    28         xinstall ${worksrcpath}/nzbget ${destroot}${prefix}/bin/nzbget
    29 
    30         file mkdir ${destroot}${prefix}/share/doc/nzbget
    31         foreach file {CHANGELOG COPYING README TODO nzbget.cfg.example} {
    32                 xinstall ${worksrcpath}/${file} ${destroot}${prefix}/share/doc/nzbget
    33         }
     44post-activate {
     45        ui_msg "An example configuration file has been installed at\
     46            ${prefix}/share/doc/${name}-${version}/nzbget.conf.example"
    3447}
     48
     49livecheck.distname  nzbget-stable