Ticket #54811: change-boxes-maintainer.diff

File change-boxes-maintainer.diff, 3.1 KB (added by StefKKK, 7 years ago)
  • Portfile

    Only in .: .DS_Store
    Only in .: .git
    Only in .: .gitignore
    diff -u /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/boxes/Portfile ./Portfile
    old new  
    33PortSystem              1.0
    44
    55name                    boxes
    6 version                 1.1.1
     6version                 1.2
    77categories              textproc
    88license                 GPL-2+
    99platforms               darwin
    10 maintainers             nomaintainer
     10maintainers             @StefKKK openmaintainer
    1111
    1212description             draws boxes around text
    1313long_description        boxes is a text filter which can draw various \
     
    1616                        simplifies using boxes from emacs
    1717
    1818homepage                http://boxes.thomasjensen.com
    19 master_sites            http://boxes.thomasjensen.com/download/
    20 extract.suffix          .src.tar.gz
     19master_sites            https://github.com/ascii-boxes/boxes/archive
     20extract.suffix          .tar.gz
     21distfiles               v${version}${extract.suffix}
     22license                 GPL-2
    2123
    22 checksums               rmd160  0a3a826382b174e0604a32071f5b6510fc4f5343 \
    23                         sha256  d8529840281618e75a4adf313f08291b89c8cf83928c2c1f4b0ddcd236fb2420
    24 
    25 patchfiles              config.h.patch boxes.c.patch parser.patch regerror.patch \
    26                         regexp_Makefile.patch tools.c.patch
     24checksums               rmd160  f1d52f086bb273d044f3355b414c7186f0e359e1 \
     25                        sha256  ba237f6d4936bdace133d5f370674fd4c63bf0d767999a104bada6460c5d1913
    2726
    2827depends_build           port:bison port:cctools port:flex
    2928
     
    3635    }
    3736}
    3837
    39 # Should this be installed in ${prefix}/share/boxes/boxes?
    40 post-patch { reinplace "s|GLOBALCONF = /usr/share/boxes|GLOBALCONF = ${prefix}/share/boxes|" "${worksrcpath}/Makefile" }
    4138build.target
    42 build.args              CC=${configure.cc}
     39build.args              CC=${configure.cc} GLOBALCONF=${prefix}/share/boxes
    4340
    4441destroot {
    4542    xinstall -m 755 ${worksrcpath}/src/boxes ${destroot}${prefix}/bin/${name}
     
    4744    xinstall -m 644 ${worksrcpath}/boxes ${destroot}${prefix}/share/${name}
    4845    xinstall ${worksrcpath}/doc/boxes.1 ${destroot}${prefix}/share/man/man1/
    4946    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    50     xinstall -m 644 -W ${worksrcpath} COPYING README boxes-config ${destroot}${prefix}/share/doc/${name}
     47    xinstall -m 644 -W ${worksrcpath} README.md LICENSE boxes-config ${destroot}${prefix}/share/doc/${name}
    5148}
    5249
    5350livecheck.type          regex
    54 livecheck.url           [lindex ${master_sites} 0]
    55 livecheck.regex         ${name}-(\[0-9.\]+)${extract.suffix}
    56 
     51livecheck.url           https://github.com/ascii-boxes/boxes/releases
     52livecheck.regex         [join [list {v([0-9]+(\.[0-9]+)*)} [string map {. \\.} ${extract.suffix}]] ""]