Ticket #31553: chasen-1028.diff
File chasen-1028.diff, 1.8 KB (added by takanori@…, 13 years ago) |
---|
-
chasen-ipadic/Portfile
24 24 25 25 depends_lib port:chasen-base 26 26 27 if {[file exists ${prefix}/share/doc/chasen/chasen_dartsclone]} { 28 default_variants +dartsclone 29 } 30 27 31 variant dartsclone description {Use darts-clone instead of darts} {} 28 32 29 33 supported_archs noarch 30 34 configure.args --with-chasenrc-path=${destroot}${prefix}/etc/chasen/chasenrc-${dicname} 31 35 36 pre-configure { 37 if {[variant_isset dartsclone]} { 38 set dartslib "dartsclone" 39 } else { 40 set dartslib "darts" 41 } 42 if {![file exists ${prefix}/share/doc/chasen/chasen_${dartslib}]} { 43 return -code error "The variant you chose is not compatible with the ChaSen you've installed." 44 } 45 } 46 32 47 use_parallel_build no 33 48 34 49 pre-destroot { -
chasen-base/Portfile
46 46 test.target check 47 47 48 48 post-destroot { 49 file mkdir ${destroot}${prefix}/share/doc/chasen 49 set docdir ${destroot}${prefix}/share/doc/chasen 50 file mkdir ${docdir} 50 51 xinstall -m 644 -W ${worksrcpath} \ 51 52 AUTHORS COPYING ChangeLog NEWS README doc/manual-j.pdf \ 52 ${destroot}${prefix}/share/doc/chasen 53 ${docdir} 54 55 if {[variant_isset dartsclone]} { 56 set dartslib "dartsclone" 57 } else { 58 set dartslib "darts" 59 } 60 # this file indicates which version of chasen is installed 61 set fh [open [file join ${docdir} chasen_${dartslib}] w 0644] 62 puts ${fh} "This version of chasen depends on the ${dartslib} library." 63 close ${fh} 53 64 } 54 65 55 66 livecheck.type regex