source: trunk/dports/textproc/epubcheck/Portfile

Last change on this file was 85469, checked in by dports@…, 6 years ago

epubcheck: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- 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
2# $Id: Portfile 85469 2011-10-14 01:44:38Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    epubcheck
7version                 1.2
8categories              textproc
9platforms               darwin
10license                 BSD
11maintainers             nomaintainer
12supported_archs         noarch
13
14description             ePub Validator to validate ePub documents
15
16long_description        EpubCheck is a tool to validate IDPF  EPUB files. \
17                        It can detect many types of errors in EPUB. OCF \
18                        container structure, OPF and OPS mark-up, and \
19                        internal reference consistency are checked.
20
21homepage                http://code.google.com/p/epubcheck/
22master_sites            googlecode
23
24distname                ${name}-${version}
25
26use_zip                 yes
27
28checksums               sha1    86036eadad8408070791b3da368958239ed8a410 \
29                        rmd160  a086609ba13ae36ec63759cf2f7f474b88c8ccdc
30
31depends_run             bin:java:kaffe
32
33extract.mkdir           yes
34
35use_configure           no
36
37build {}
38
39destroot {
40    # path to the epubcheck java files (without ${destroot}):
41   
42    set epubcheck ${prefix}/share/java/epubcheck
43
44    # install the template epubcheck script from files:
45   
46    xinstall ${filespath}/epubcheck.in ${destroot}${prefix}/bin/epubcheck
47   
48    # set the correct path to epubcheck.jar in the epubcheck script:
49   
50    reinplace "s|@@EPUBCHECK@@|${epubcheck}|g" \
51        ${destroot}${prefix}/bin/epubcheck
52       
53    # install the epubcheck java files:
54   
55    xinstall -d ${destroot}${epubcheck}/lib
56   
57    xinstall ${worksrcpath}/${name}-${version}.jar ${destroot}${epubcheck}/${name}.jar
58    eval xinstall [glob ${worksrcpath}/*.txt]  ${destroot}${epubcheck}
59    eval xinstall [glob ${worksrcpath}/lib/*]  ${destroot}${epubcheck}/lib
60}
61
Note: See TracBrowser for help on using the repository browser.