Files

56 lines
1.6 KiB
Tcl
Raw Permalink Normal View History

2021-09-20 17:01:03 +01:00
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2019-07-25 15:45:17 -05:00
2021-09-20 17:01:03 +01:00
PortSystem 1.0
PortGroup gitlab 1.0
2019-07-25 15:45:17 -05:00
PortGroup java 1.0
2022-09-23 14:00:33 -04:00
gitlab.setup pdftk-java pdftk 3.3.3 v
2021-01-18 00:46:24 -06:00
revision 0
2022-09-23 13:56:46 -04:00
name pdftk-java
conflicts pdftk
categories textproc graphics pdf java
license GPL-2+
maintainers nomaintainer
description A port of pdftk into java
long_description {*}${description}
supported_archs noarch
2024-03-29 06:45:07 +11:00
platforms any
2021-09-20 17:01:03 +01:00
2022-09-23 14:00:33 -04:00
checksums rmd160 76c1ee669ca64db63e6d3e7b70d6d2ecebdf16c9 \
sha256 51883793bd2daabd90611510b45d3bca033919782cffb21400d28c25394bd79b \
size 2206744
2019-07-25 15:45:17 -05:00
2022-10-06 01:24:12 -05:00
java.version 1.8+
2019-07-25 15:45:17 -05:00
java.fallback openjdk11
depends_build-append \
bin:ant:apache-ant
2022-09-23 13:56:46 -04:00
depends_lib-append \
port:bcprov \
2020-05-13 23:41:00 -05:00
port:commons-lang3
2019-07-25 15:45:17 -05:00
use_configure no
post-configure {
2019-07-25 15:45:17 -05:00
file mkdir ${worksrcpath}/lib
ln -s ${prefix}/share/java/bcprov/bcprov.jar ${worksrcpath}/lib/
ln -s ${prefix}/share/java/commons-lang3.jar ${worksrcpath}/lib/
2019-07-25 15:45:17 -05:00
}
build.cmd ant
build.target jar
destroot {
2022-09-23 13:56:46 -04:00
set java_dir ${destroot}${prefix}/share/java/${subport}
xinstall -d ${java_dir}
xinstall -m 0644 ${worksrcpath}/build/jar/pdftk.jar ${java_dir}
2019-07-25 15:45:17 -05:00
2022-09-23 13:56:46 -04:00
set pdftk_bin ${destroot}${prefix}/bin/${subport}
xinstall -m 0755 ${filespath}/pdftk-java.in ${pdftk_bin}
reinplace "s|@PREFIX@|${prefix}|g" ${pdftk_bin}
2020-10-15 14:54:43 +02:00
2022-09-23 13:56:46 -04:00
ln -s ${subport} ${destroot}${prefix}/bin/pdftk
2019-07-25 15:45:17 -05:00
}