Ticket #47025: poppler-0.32-qt5-mac.diff
File poppler-0.32-qt5-mac.diff, 3.9 KB (added by dbevans (David B. Evans), 10 years ago) |
---|
-
Portfile
8 8 9 9 name poppler 10 10 conflicts pdf2json xpdf-tools 11 version 0.3 1.011 version 0.32.0 12 12 license GPL-2+ 13 13 maintainers devans openmaintainer 14 14 categories graphics … … 22 22 23 23 use_xz yes 24 24 25 checksums rmd160 6b786565edf89fdd97419fcbe39302f8ce837400\26 sha256 943290270dca390d8f14467d54b06a25d9d6f70dc5853b0a9b89c62f7457069425 checksums rmd160 3c301db613399db407bd2ee9b033423b0232b8c2 \ 26 sha256 4963e31ba5e17530a87b16588e22928bc044e8d28d02303dded981bff6725b98 27 27 28 28 depends_build port:pkgconfig 29 29 … … 66 66 67 67 # TODO: 68 68 # add subport for poppler-qt4-x11 when qt4-x11 builds and port group qt4 allows 69 # add subport(s) for poppler-qt5-* when a qt5 port is available70 69 71 70 subport poppler-qt4-mac { 72 71 PortGroup qt4 1.0 72 73 conflicts poppler-qt5-mac 74 75 depends_lib-append port:poppler 76 configure.env-append MOCQT4=${qt_bins_dir}/moc 77 configure.args-delete --disable-poppler-qt4 78 configure.args-append --disable-cairo-output \ 79 --disable-poppler-glib \ 80 --disable-poppler-cpp \ 81 --disable-gtk-test \ 82 --disable-utils 83 post-destroot { 84 foreach dot_h [glob -nocomplain -directory ${destroot}${prefix}/include/poppler *.h] { 85 delete $dot_h 86 } 87 delete ${destroot}${prefix}/include/poppler/fofi \ 88 ${destroot}${prefix}/include/poppler/goo \ 89 ${destroot}${prefix}/include/poppler/splash \ 90 ${destroot}${prefix}/lib/libpoppler.51.dylib \ 91 ${destroot}${prefix}/lib/libpoppler.a \ 92 ${destroot}${prefix}/lib/libpoppler.dylib \ 93 ${destroot}${prefix}/lib/libpoppler.la \ 94 ${destroot}${prefix}/lib/pkgconfig/poppler-splash.pc \ 95 ${destroot}${prefix}/lib/pkgconfig/poppler.pc 96 } 97 } 98 99 subport poppler-qt5-mac { 100 PortGroup qt5 1.0 101 102 conflicts poppler-qt4-mac 73 103 74 depends_lib-append port:poppler 75 configure.args-delete --disable-poppler-qt4 76 configure.args-append --disable-cairo-output \ 77 --disable-poppler-glib \ 78 --disable-poppler-cpp \ 79 --disable-utils 104 depends_lib-append port:poppler 105 configure.env-append MOCQT5=${qt_bins_dir}/moc 106 configure.args-delete --disable-poppler-qt5 107 configure.args-append --disable-cairo-output \ 108 --disable-poppler-glib \ 109 --disable-poppler-cpp \ 110 --disable-gtk-test \ 111 --disable-utils 80 112 post-destroot { 81 113 foreach dot_h [glob -nocomplain -directory ${destroot}${prefix}/include/poppler *.h] { 82 114 delete $dot_h … … 84 116 delete ${destroot}${prefix}/include/poppler/fofi \ 85 117 ${destroot}${prefix}/include/poppler/goo \ 86 118 ${destroot}${prefix}/include/poppler/splash \ 87 ${destroot}${prefix}/lib/libpoppler.5 0.dylib \119 ${destroot}${prefix}/lib/libpoppler.51.dylib \ 88 120 ${destroot}${prefix}/lib/libpoppler.a \ 89 121 ${destroot}${prefix}/lib/libpoppler.dylib \ 90 122 ${destroot}${prefix}/lib/libpoppler.la \ … … 93 125 } 94 126 } 95 127 128 if {${subport} ne ${name}} { 129 post-extract { 130 system -W ${workpath} "git clone --depth=1 git://git.freedesktop.org/git/poppler/test" 131 } 132 133 test.run yes 134 test.target check 135 } 136 96 137 livecheck.type regex 97 138 livecheck.url http://poppler.freedesktop.org/releases.html 98 139 livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"