Ticket #44030: linkchecker.diff

File linkchecker.diff, 2.3 KB (added by kurthindenburg (Kurt Hindenburg), 10 years ago)

Adds +gui variant

  • Portfile

    old new  
    22
    33PortSystem 1.0
    44PortGroup python 1.0
    5 PortGroup app 1.0
     5PortGroup github 1.0
    66
    7 name                linkchecker
    8 version             8.2
    9 set branch          [join [lrange [split ${version} .] 0 1] .]
     7default_variants    +gui
     8github.setup        wummel linkchecker 9.2 v
    109categories          www python
    1110maintainers         nomaintainer
    1211platforms           darwin freebsd
     
    2322                    username/password for HTTP and FTP authorization, robots.txt \
    2423                    exclusion protocol support, i18n support, CGI web interface.
    2524
    26 homepage            http://linkchecker.sourceforge.net/
    27 master_sites        sourceforge:project/linkchecker/${branch}/
    28 dist_subdir         ${name}
     25# This appears to be the only location of tarball
     26master_sites        https://pypi.python.org/packages/source/L/LinkChecker
    2927distname            LinkChecker-${version}
    30 use_xz              yes
    3128
    32 checksums           md5     c3fbaa20142b7f0d7bf2d61615555b83 \
    33                     sha1    df5ed84f8b358f70c8a40b52f1896b84c1c9d98e \
    34                     rmd160  d80aea15e52270323d6ef979833a2cf5d5df1547 \
    35                     sha256  052d2c239326029baf57eddd56650b40de03576160a930a7d55960fffafa7811
     29checksums           sha1 259df843b819e0659515fcc6bf1f150fd487b634 \
     30                    rmd160 3faac9b02a181d1d1dea8d0ce87f76e72feaae3c
    3631
    3732python.default_version  27
    3833
    39 # Can use either py*-pyqt4 or py*-pyqt4-devel.
    40 depends_lib-append  path:share/py27-sip/PyQt4:py27-pyqt4
     34variant gui description {Enable PyQt4 GUI} {
     35  PortGroup app 1.0
     36  # Can use either py*-pyqt4 or py*-pyqt4-devel
     37  depends_lib-append  path:share/py27-sip/PyQt4:py27-pyqt4
     38
     39  app.name            LinkChecker
     40  app.executable      ${python.prefix}/bin/linkchecker-gui
     41  app.icon            doc/html/logo128x128.png
     42}
     43depends_lib-append  port:py27-requests
    4144
    4245pre-build {
    4346    system "cd ${worksrcpath} && make -C doc/html"
    4447}
    4548
    46 app.name            LinkChecker
    47 app.executable      ${python.prefix}/bin/linkchecker-gui
    48 app.icon            doc/html/logo128x128.png
    49 
    5049python.link_binaries_suffix
    5150
     51# Still needed as github doesn't have correct tags/versions.
    5252livecheck.type      freecode