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 |
| 41 | pre-destroot { |
| 42 | foreach f [glob -directory ${worksrcpath}/bin *.bat] { |
| 43 | file delete $f |
| 44 | } |
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 | | } |
| 47 | destroot { |
| 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 | } |