source: trunk/dports/textproc/daisydiff/Portfile

Last change on this file was 81758, checked in by jmr@…, 6 years ago

daisydiff: fix case of LICENSE.txt

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 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 81758 2011-08-04 18:02:16Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    daisydiff
7version                 1.1
8categories              textproc
9platforms               darwin
10maintainers             nomaintainer
11supported_archs         noarch
12
13description             Daisy Diff compares HTML files.
14
15long_description        Daisy Diff is a Java library that diffs (compares) \
16                        HTML files. It highlights added and removed words \
17                        and annotates changes to the styling.
18
19homepage                http://code.google.com/p/daisydiff/
20master_sites            googlecode
21
22use_zip                 yes
23
24checksums               sha1    550ac190c771ec9162b374f1c429baa230837f1d \
25                        rmd160  0f0c74f4d2a778acdbeb49d97ec83f6c45bbca7b
26
27depends_run             bin:java:kaffe
28
29use_configure           no
30
31build {}
32
33destroot {
34
35    # path to the daisydiff java files (without ${destroot}):
36   
37    set daisydiff ${prefix}/share/java/daisydiff
38
39    # install the template daisydiff script from files:
40   
41    xinstall ${filespath}/daisydiff.in ${destroot}${prefix}/bin/daisydiff
42   
43    # set the correct path to daisydiff.jar in the daisydiff script:
44   
45    reinplace "s|@@DAISYDIFF@@|${daisydiff}|g" ${destroot}${prefix}/bin/daisydiff
46   
47    # install the daisydiff java files:
48   
49    xinstall -d ${destroot}${daisydiff}
50   
51    xinstall ${worksrcpath}/${name}.jar ${destroot}${daisydiff}
52    copy ${worksrcpath}/css ${worksrcpath}/images ${destroot}${daisydiff}
53   
54    # install documentation files:
55   
56    set docdir ${destroot}${prefix}/share/doc/${name}
57    xinstall -d ${docdir}
58    xinstall -m 644 -W ${worksrcpath} \
59        LICENSE.txt \
60        NOTICE.txt \
61        README.txt \
62        ${docdir}
63}
64
65notes "\
66Daisy Diff generates an HTML file as a report. The differences are highlighted\
67by styling specified in a CSS file. Use the command line argument --css to\
68specify this file. For example:
69
70    daisydiff file1 file2 --css=${prefix}/share/java/daisydiff/css/diff.css
71"
Note: See TracBrowser for help on using the repository browser.