Ticket #11976: poco-1.3.0_1.diff
File poco-1.3.0_1.diff, 3.9 KB (added by n.oxyde@…, 18 years ago) |
---|
-
Portfile
old new 4 4 5 5 name poco 6 6 version 1.3.0 7 revision 1 7 8 categories devel 8 9 maintainers n.oxyde@gmail.com 9 10 description POCO C++ Libraries … … 16 17 homepage http://pocoproject.org/ 17 18 master_sites sourceforge 18 19 use_bzip2 yes 20 set my_distname ${distname} 19 21 20 22 checksums [suffix ${distname}] \ 21 23 md5 798e3e99f3ed97fe4d2151acec12024e \ … … 25 27 md5 c5169f92f2787a609f9611346d221e78 \ 26 28 sha1 1429b7fb925e61e88df8d19648ef87c29144b6b4 \ 27 29 rmd160 aeb24c2382a13e21d14bba4160bc7d144bb2780b \ 28 ${name}-${version}-doc.tar.gz \ 30 [suffix ${distname}-data] \ 31 md5 edd64a9245dcd06a3bacfc0b12716600 \ 32 sha1 7ee415462b3abc37fb02b799eeee9d61feaec346 \ 33 rmd160 be8aba090d0553b868984d5564d3830c0467c724 \ 34 ${my_distname}-doc.tar.gz \ 29 35 md5 6107295904c6203a58377b2e7f97ed33 \ 30 36 sha1 1374f44a3f82477c6587037e0d990cd26d0eb61e \ 31 37 rmd160 433a7ff6f5db661fb799f09c4bfbf439f4cbc841 32 38 33 39 platforms darwin 34 40 35 configure.args --no-tests \ 36 --no-samples 41 configure.args --no-samples 37 42 38 43 build.target poco 39 44 45 test.run yes 46 47 test { 48 proc luniq {list} { 49 set x() {}; unset x 50 foreach {item} ${list} { 51 set x(${item}) "" 52 } 53 return [array names x] 54 } 55 56 cd ${worksrcpath} 57 set file [open components] 58 59 set components {} 60 while {[gets ${file} component] != -1} { 61 lappend components ${component} 62 } 63 64 close ${file} 65 66 foreach {component} [luniq ${components}] { 67 foreach {testrunner} [glob -nocomplain ${component}/testsuite/bin/*/*/testrunner{,d}] { 68 catch {system "${testrunner} -all -print"} 69 } 70 } 71 } 72 40 73 set docdir ${prefix}/share/doc/${name}-${version} 41 74 42 75 post-destroot { … … 50 83 } 51 84 } 52 85 53 variant ipv6 requires darwin_8 {}86 variant ipv6 description {Support IPv6 protocol in Net library (Requires Darwin 8)} requires darwin_8 {} 54 87 55 variant ssl {56 distname ${ distname}-ssl88 variant ssl description {Build NetSSL library} { 89 distname ${my_distname}-ssl 57 90 depends_lib-append port:openssl 58 91 } 59 92 60 variant doc { 93 variant data description {Build Data library} { 94 distname ${my_distname}-data 95 depends_lib-append lib:libiodbc:unixODBC 96 97 post-patch { 98 if {! [variant_isset ssl]} { 99 reinplace -E {/^(COMPONENTS|\.PHONY|libexecs|tests|samples)/s/NetSSL_OpenSSL[^ ]*//} \ 100 ${worksrcpath}/Makefile 101 reinplace {/NETSSL_OpenSSL/d} ${worksrcpath}/components 102 } 103 } 104 } 105 106 variant doc description {Install extra documentation} { 61 107 extract.only ${distfiles} 62 distfiles-append ${ name}-${version}-doc.tar.gz108 distfiles-append ${my_distname}-doc.tar.gz 63 109 64 110 post-extract { 65 system "tar xzf ${distpath}/${ name}-${version}-doc.tar.gz -C ${workpath}"111 system "tar xzf ${distpath}/${my_distname}-doc.tar.gz -C ${workpath}" 66 112 } 67 113 68 114 post-destroot { 69 set workdocpath ${workpath}/${ name}-${version}-doc115 set workdocpath ${workpath}/${my_distname}-doc 70 116 71 xinstall -m 0755 -d ${destroot}${docdir}/html 117 xinstall -m 0755 -d ${destroot}${docdir}/html/CppUnit 72 118 eval xinstall -m 0644 [glob ${workdocpath}/*.html] ${destroot}${docdir}/html 119 eval xinstall -m 0644 [glob ${worksrcpath}/CppUnit/doc/*] ${destroot}${docdir}/html/CppUnit 73 120 74 121 foreach {dir} {images css} { 75 122 xinstall -m 0755 -d ${destroot}${docdir}/html/${dir} … … 112 159 } 113 160 } 114 161 } 162 163 livecheck.regex "<title>sources ${name}-(.*) released "