Ticket #47387: tidy-4.9.24.diff

File tidy-4.9.24.diff, 2.4 KB (added by ryandesign (Ryan Carsten Schmidt), 9 years ago)
  • Portfile

     
    22# $Id$
    33
    44PortSystem              1.0
     5PortGroup               cmake 1.0
    56PortGroup               github 1.0
    67
    7 github.setup            htacg tidy-html5 0cf6d998431a61f1bd630e7883d4d43df4ad8ccc
     8# https://github.com/htacg/tidy-html5/issues/192
     9PortGroup               muniversal 1.0
     10
     11github.setup            htacg tidy-html5 ca06201c3abb3829d6be6465e433ac72c8b15449
    812name                    tidy
    9 version                 20120821
     13epoch                   1
     14version                 4.9.24
    1015categories              www
    1116platforms               darwin
    1217maintainers             ryandesign openmaintainer
     
    1823
    1924homepage                http://${github.author}.github.io/${github.project}/
    2025
    21 fetch.type              git
     26checksums               rmd160  da99f6e368ef1f36c3dcc77f7443fd48da928fc2 \
     27                        sha256  44dad7ccd027dfd574c081c7614753749961404654356d5a008bacb9677e842b
    2228
    23 depends_build           port:autoconf \
    24                         port:automake \
    25                         port:libtool
     29depends_build-append    port:libxslt
    2630
    27 pre-configure {
    28     system -W ${worksrcpath} "/bin/sh ${worksrcpath}/build/gnuauto/setup.sh"
    29 }
     31# https://github.com/htacg/tidy-html5/issues/193
     32patchfiles-append       patch-CMakeLists.txt.diff
    3033
     34cmake.out_of_source     yes
     35cmake.build_dir         ${worksrcpath}/build/cmake
     36
     37configure.args-append   -DBUILD_SHARED_LIB:BOOL=ON
     38
    3139use_parallel_build      yes
    3240
     41# https://github.com/htacg/tidy-html5/issues/194
     42if {[variant_isset universal]} {
     43    foreach arch ${configure.universal_archs} {
     44        set merger_build_env($arch) \
     45                        DYLD_LIBRARY_PATH=${worksrcpath}-${arch}/build/cmake
     46        set merger_destroot_env($arch) \
     47                        DYLD_LIBRARY_PATH=${worksrcpath}-${arch}/build/cmake
     48    }
     49} else {
     50    build.env-append    DYLD_LIBRARY_PATH=${cmake.build_dir}
     51    destroot.env-append DYLD_LIBRARY_PATH=${cmake.build_dir}
     52}
     53
    3354livecheck.type          regex
    34 livecheck.url           ${github.raw}/master/src/version.h
    35 livecheck.regex         {tree/(.*)"}
    36 livecheck.version       [string range ${git.branch} 0 6]
     55livecheck.url           ${github.raw}/master/version.txt
     56livecheck.version       ${version}
     57livecheck.regex         {^([0-9.]+)$}