Ticket #24904: variants.diff

File variants.diff, 3.2 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago)

make variants self-contained

  • devel/ice-python/Portfile

     
    113113                file copy ${worksrcpath}/${f} ${docdir}
    114114        }
    115115        file copy ${build.dir}/INSTALL ${docdir}
     116}
    116117
    117         if {[variant_isset demo_source_code]} {
     118variant demo_source_code description {Install demonstration Python code} {
     119        post-destroot {
    118120                file copy ${build.dir}/demo ${docdir}
    119121        }
    120122}
    121 
    122 variant demo_source_code description {Install demonstration Python code} {
    123 }
  • devel/ice-cpp/Portfile

     
    137137        foreach f {CHANGES RELEASE_NOTES} {
    138138                file copy ${worksrcpath}/${f} ${docdir}
    139139        }
     140}
    140141
    141         if {[variant_isset demo_source_code]} {
     142variant demo_source_code description {Install demonstration C++ code} {
     143        post-destroot {
    142144                system "cd ${build.dir}/demo && make clean"
    143                 file copy ${build.dir}/demo $docdir
     145                file copy ${build.dir}/demo ${docdir}
    144146        }
    145147}
    146 
    147 variant demo_source_code description {Install demonstration C++ code} {
    148 }
  • devel/ice-java/Portfile

     
    8484                file copy ${worksrcpath}/${f} ${docdir}
    8585        }
    8686        file copy ${build.dir}/INSTALL ${docdir}
    87 
    88         if {[variant_isset demo_source_code]} {
    89                 file copy ${build.dir}/demo ${docdir}/
    90         }
    9187}
    9288
    9389variant demo_source_code description {Install demonstration Java code} {
     90        post-destroot {
     91                file copy ${build.dir}/demo ${docdir}
     92        }
    9493}
  • devel/ice-python25/Portfile

     
    113113                file copy ${worksrcpath}/${f} ${docdir}
    114114        }
    115115        file copy ${build.dir}/INSTALL ${docdir}
     116}
    116117
    117         if {[variant_isset demo_source_code]} {
     118variant demo_source_code description {Install demonstration Python code} {
     119        post-destroot {
    118120                file copy ${build.dir}/demo ${docdir}
    119121        }
    120122}
    121 
    122 variant demo_source_code description {Install demonstration Python code} {
    123 }
  • devel/ice-python26/Portfile

     
    117117                file copy ${worksrcpath}/${f} ${docdir}
    118118        }
    119119        file copy ${build.dir}/INSTALL ${docdir}
     120}
    120121
    121         if {[variant_isset demo_source_code]} {
     122variant demo_source_code description {Install demonstration Python code} {
     123        post-destroot {
    122124                file copy ${build.dir}/demo ${docdir}
    123125        }
    124126}
    125 
    126 variant demo_source_code description {Install demonstration Python code} {
    127 }