Ticket #22753: Portfile.diff

File Portfile.diff, 1.5 KB (added by martin.osx@…, 15 years ago)

Suggested changes

  • Portfile

     
    44
    55name                    derby
    66version                 10.5.3.0
     7revision                1
    78
    89categories              java
    910maintainers             blair
     
    3738
    3839build.cmd               true
    3940
    40 destroot {
    41         # Ensure needed directories
    42         xinstall -m 755 -d ${destroot}${prefix}/share \
    43                 ${destroot}${prefix}/share/doc/${name}
    44 
    45         foreach f { dblook derby_common.sh ij sysinfo } {
    46                 file copy ${worksrcpath}/bin/$f ${destroot}${prefix}/bin
    47         }
    48 
    49         foreach f { KEYS LICENSE NOTICE RELEASE-NOTES.html } {
    50                 file copy ${worksrcpath}/$f \
    51                         ${destroot}${prefix}/share/doc/${name}
    52         }
    53 
    54         file copy ${worksrcpath}/lib ${destroot}${prefix}/share/java
     41pre-destroot {
     42    foreach f [glob -directory ${worksrcpath}/bin *.bat] {
     43        file delete $f
     44    }
    5545}
    5646
    57 variant doc description {Install HTML and PDF documentation and javadocs} {
    58         post-destroot {
    59                 foreach f { docs javadoc } {
    60                         file copy ${worksrcpath}/$f \
    61                                 ${destroot}${prefix}/share/doc/${name}
    62                 }
    63         }
     47destroot        {
     48    xinstall -m 755 -d ${destroot}${prefix}/share/java
     49    file copy ${worksrcpath} ${destroot}${prefix}/share/java/${name}
     50    # Fix permissions on shell scripts
     51    foreach f { NetworkServerControl dblook derby_common.sh ij setEmbeddedCP setNetworkClientCP setNetworkServerCP startNetworkServer stopNetworkServer sysinfo } {
     52        system "ln -fs ${prefix}/share/java/${name}/bin/$f ${destroot}${prefix}/bin/$f"
     53    }
    6454}
    6555
    6656livecheck.type          regex