poi: update to 5.5.1

This commit is contained in:
trustbyte
2026-02-22 12:05:20 +01:00
committed by Herby Gillot
parent 9768d600b0
commit 3b918e3b98
+24 -23
View File
@@ -3,7 +3,7 @@
PortSystem 1.0
name poi
version 5.2.3
version 5.5.1
categories java
platforms any
maintainers nomaintainer
@@ -17,36 +17,37 @@ long_description The Apache POI Project's mission is to create and maintain J
and Microsoft's OLE 2 Compound Document format (OLE2).
homepage https://poi.apache.org/
master_sites https://archive.apache.org/dist/poi/release/bin/
distname poi-bin-5.2.3-20220909
worksrcdir ${name}-bin-${version}
master_sites https://archive.apache.org/dist/poi/release/src/
distname apache-poi-src-${version}-20251126
extract.suffix .tgz
checksums sha1 ce0d63e14db3f4ab01c0c83ad227738e6eb52d41 \
rmd160 e633e262bdaed93afb4323f29b5436cd4d637f2a \
sha256 970e0273a342ce55ab94c06a265b8999c719248b7d41da729b7f30725d3fe2a0 \
size 61001071
checksums rmd160 c7931e3c560970306670e22fbb026338faea9656 \
sha256 62aaf3c36fce6172516007bdea13be2a8b85abf5c84932114f7787c2532f89c4 \
size 121846633
use_zip yes
depends_build bin:ant:apache-ant
use_configure no
build.cmd ant
build.target compile
build {}
destroot {
# Ensure needed directories
xinstall -m 755 -d ${destroot}${prefix}/share/java \
${destroot}${prefix}/share/java/${name}
set javadir ${destroot}${prefix}/share/java/${name}
xinstall -m 755 -d ${javadir}
# Install the required libs
file copy ${worksrcpath}/lib \
${destroot}${prefix}/share/java/${name}
file copy ${worksrcpath}/ooxml-lib \
${destroot}${prefix}/share/java/${name}
file copy ${worksrcpath}/auxiliary \
${destroot}${prefix}/share/java/${name}
foreach jar [glob -nocomplain -tails -directory ${worksrcpath}/build/dist/maven/ **/poi*${version}.jar] {
set fileName [file tail $jar]
if {[string match "*-sources.jar" $fileName] || [string match "*-tests.jar" $fileName]} {
continue
}
# Install poi
file copy {*}[glob ${worksrcpath}/*.jar] \
${destroot}${prefix}/share/java/${name}
xinstall -m 644 ${worksrcpath}/build/dist/maven/${jar} ${javadir}
set unversionedName [regsub -- "-${version}" $fileName ""]
ln -s ${fileName} ${destroot}${prefix}/share/java/${name}/${unversionedName}
}
}
livecheck.type regex