source: trunk/dports/textproc/saxon/Portfile

Last change on this file was 136563, checked in by ryandesign@…, 2 years ago

saxon: simplify destroot; use expand operator instead of eval

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 136563 2015-05-21 21:22:06Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                saxon
7version             9.5.1.1
8set branch          [join [lrange [split ${version} .] 0 1] .]
9set dashed_version  [strsed ${version} {g/\\./-/}]
10set dashed_branch   [strsed ${branch} {g/\\./-/}]
11categories          textproc java
12license             MPL-1
13maintainers         nomaintainer
14
15supported_archs     noarch
16
17description         saxon home edition - collection of tools to process XML documents
18
19long_description \
20    Saxon-HE provides implementations of XSLT 2.0, XQuery 1.0, \
21    and XPath 2.0 at the basic level of conformance defined by W3C.
22
23platforms           darwin
24
25homepage            http://saxon.sourceforge.net/
26master_sites        sourceforge:project/saxon/Saxon-HE/${branch}
27use_zip             yes
28distname            [string toupper ${name} 0 0]HE${dashed_version}J
29set jardistfile     ${distname}${extract.suffix}
30set docdistfile     ${name}-resources${dashed_branch}${extract.suffix}
31distfiles           ${jardistfile} ${docdistfile}
32
33checksums           ${jardistfile} \
34                        rmd160  af67cae4b9caaceb44837dc0df2ef216aeb83681 \
35                        sha256  0e2b625264128593e8c05a1672691d093b4a54923cf9f59d442764101712636a \
36                    ${docdistfile} \
37                        rmd160  4b58fbfcd7c6fec60f0b91fe23d9f9cc22042980 \
38                        sha256  7cdbcfc4d88015f6f53bef3b25e78c3447e0fc18d268307159be0595399881e2
39
40depends_lib         bin:java:kaffe
41
42extract.mkdir       yes
43
44use_configure       no
45
46build               {}
47
48destroot {
49    xinstall -m 755 -d ${destroot}${prefix}/share/doc \
50        ${destroot}${prefix}/share/java ${destroot}${prefix}/share/${name}
51    xinstall -m 644 {*}[glob ${worksrcpath}/*.jar] \
52        ${destroot}${prefix}/share/java
53    copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
54    copy ${worksrcpath}/samples ${worksrcpath}/source-userdoc.zip \
55        ${worksrcpath}/use-cases ${destroot}${prefix}/share/${name}
56}
57
58livecheck.type      regex
59livecheck.url       ${homepage}
60livecheck.regex     The current maintenance release is (\[0-9.\]\\.\[0-9.\]\\.\[0-9.\]\\.\[0-9.\]).
Note: See TracBrowser for help on using the repository browser.