Changeset 64413 for trunk/dports/java


Ignore:
Timestamp:
Mar 5, 2010, 12:22:01 AM (10 years ago)
Author:
blair@…
Message:

Fix #22753 by installing the entire Derby install into
${prefix}/share/derby and then setting up symlinks. The binaries
installed into ${prefix}/bin are wrapper shell scripts that just set
the DERBY_HOME environmental variable.

The 'doc' variant is removed because the entire Derby install is
dropped into ${prefix}/share/derby so symlinks to it are created.

Location:
trunk/dports/java/derby
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/java/derby/Portfile

    r64381 r64413  
    55name                    derby
    66version                 10.5.3.0
     7revision                1
    78
    89categories              java
     
    3940
    4041destroot {
     42        set sharedir ${destroot}${prefix}/share
     43        set man1dir ${sharedir}/man/man1
     44        set derbydir ${sharedir}/derby
     45        set docderbydir ${sharedir}/doc/derby
     46
    4147        # Ensure needed directories
    42         xinstall -m 755 -d ${destroot}${prefix}/share \
    43                 ${destroot}${prefix}/share/doc/${name}
     48        xinstall -d -m 755 ${sharedir}/java ${docderbydir}
    4449
    45         foreach f { dblook derby_common.sh ij sysinfo } {
    46                 file copy ${worksrcpath}/bin/$f ${destroot}${prefix}/bin
     50        file copy ${worksrcpath} ${derbydir}
     51
     52        foreach f { dblook ij sysinfo } {
     53                xinstall -m 755 ${filesdir}/${f} ${destroot}${prefix}/bin/${f}
     54                reinplace "s|@PREFIX@|${prefix}|" ${destroot}${prefix}/bin/${f}
    4755        }
    4856
    49         foreach f { KEYS LICENSE NOTICE RELEASE-NOTES.html } {
    50                 file copy ${worksrcpath}/$f \
    51                         ${destroot}${prefix}/share/doc/${name}
     57        foreach f { KEYS LICENSE NOTICE RELEASE-NOTES.html docs index.html javadoc } {
     58                ln -s ../../derby/${f} ${docderbydir}/${f}
    5259        }
    5360
    54         file copy ${worksrcpath}/lib ${destroot}${prefix}/share/java
    55 }
    56 
    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                 }
     61        foreach f [ glob -tails -directory ${derbydir}/lib *.\[jw\]ar ] {
     62                ln -s ../derby/lib/${f} ${sharedir}/java/${f}
    6363        }
    6464}
Note: See TracChangeset for help on using the changeset viewer.