Ticket #54815: boxes-github.diff

File boxes-github.diff, 3.6 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  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    22
    33PortSystem              1.0
     4PortGroup               github 1.0
     5
     6github.setup            ascii-boxes boxes 1.2
     7github.master_sites     https://github.com/ascii-boxes/boxes/archive ;# can't use git.tarball_from as it's no default download url
     8
     9# custom distfiles, set it manually
     10extract.suffix          .tar.gz
     11distfiles               v${version}${extract.suffix}
     12
     13# can't use regex provided from GitHub portgroup as distfiles are different
     14livecheck.regex         [join [list {v([0-9]+(\.[0-9]+)*)} [string map {. \\.} ${extract.suffix}]] ""]
    415
    5 name                    boxes
    6 version                 1.1.1
    716categories              textproc
    817license                 GPL-2+
    918platforms               darwin
    10 maintainers             nomaintainer
     19maintainers             @StefKKK openmaintainer
    1120
    1221description             draws boxes around text
    1322long_description        boxes is a text filter which can draw various \
     
    1625                        simplifies using boxes from emacs
    1726
    1827homepage                http://boxes.thomasjensen.com
    19 master_sites            http://boxes.thomasjensen.com/download/
    20 extract.suffix          .src.tar.gz
     28license                 GPL-2
    2129
    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
     30checksums               rmd160  f1d52f086bb273d044f3355b414c7186f0e359e1 \
     31                        sha256  ba237f6d4936bdace133d5f370674fd4c63bf0d767999a104bada6460c5d1913
    2732
    2833depends_build           port:bison port:cctools port:flex
    2934
     
    3641    }
    3742}
    3843
    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" }
    41 build.target
    42 build.args              CC=${configure.cc}
     44build.target            ;# default target
     45build.args              CC=${configure.cc} GLOBALCONF=${prefix}/share/boxes
    4346
    4447destroot {
    4548    xinstall -m 755 ${worksrcpath}/src/boxes ${destroot}${prefix}/bin/${name}
     
    4750    xinstall -m 644 ${worksrcpath}/boxes ${destroot}${prefix}/share/${name}
    4851    xinstall ${worksrcpath}/doc/boxes.1 ${destroot}${prefix}/share/man/man1/
    4952    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    50     xinstall -m 644 -W ${worksrcpath} COPYING README boxes-config ${destroot}${prefix}/share/doc/${name}
     53    xinstall -m 644 -W ${worksrcpath} README.md LICENSE boxes-config ${destroot}${prefix}/share/doc/${name}
    5154}
    52 
    53 livecheck.type          regex
    54 livecheck.url           [lindex ${master_sites} 0]
    55 livecheck.regex         ${name}-(\[0-9.\]+)${extract.suffix}
    56