source: trunk/dports/gnome/gnucash-docs/Portfile

Last change on this file was 112921, checked in by jmr@…, 4 years ago

gnucash-docs: correct license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.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 112921 2013-11-04 04:08:23Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            gnucash-docs
7version         2.2.0
8license         GFDL-1.1+
9categories      gnome x11
10maintainers     nomaintainer
11description     docs for gnucash
12platforms       macosx
13long_description \
14                GnuCash is a personal and small-business \
15                financial-accounting software, freely licensed under the \
16                GNU GPL.  Designed to be easy to use, yet powerful and \
17                flexible, GnuCash allows you to track bank accounts, \
18                stocks, income and expenses. As quick and intuitive to \
19                use as a checkbook register, it is based on professional \
20                accounting principles to ensure balanced books and \
21                accurate reports. \
22                This package contains (1) the user manual and (2) the \
23                Tutorial And Concepts Guide.  Both are available through \
24                yelp, the gnome help browser, and an HTML copy is \
25                installed in ${prefix}/share/doc/gnucash.
26homepage        http://www.gnucash.org/
27master_sites    http://www.gnucash.org/pub/gnucash/sources/stable/
28
29                # gpg signature verified
30checksums       md5 97a29e499baca1807a3944ae3c0ad61e
31
32depends_lib     bin:scrollkeeper-config:rarian \
33                port:libxml2 \
34                bin:xsltproc:libxslt
35
36depends_run     bin:yelp:yelp
37
38supported_archs noarch
39
40configure.args  --disable-scrollkeeper
41
42build.target    all html
43
44destroot {
45    system "cd ${worksrcpath}; ${build.cmd} install prefix=${destroot}${prefix}"
46
47    # Install HTML copies
48    # Duplicate figures are removed, using symlinks instead.
49    # If you update this, please check for additional localizations!
50
51    file mkdir ${destpath}${prefix}/share/doc/gnucash/C
52    file mkdir ${destpath}${prefix}/share/doc/gnucash/de_DE
53
54    file copy ${portpath}/${filesdir}/index.html ${destpath}${prefix}/share/doc/gnucash
55
56    file copy ${worksrcpath}/guide/C/gnucash-guide ${destpath}${prefix}/share/doc/gnucash/C
57    system "rm -rf ${destpath}${prefix}/share/doc/gnucash/C/gnucash-guide/figures"
58    system "ln -sf ${prefix}/share/gnome/help/gnucash/C/figures ${destpath}${prefix}/share/doc/gnucash/C/gnucash-guide/figures"
59
60    file copy ${worksrcpath}/help/C/gnucash-help ${destpath}${prefix}/share/doc/gnucash/C
61    system "rm -rf ${destpath}${prefix}/share/doc/gnucash/C/gnucash-help/figures"
62    system "ln -sf ${prefix}/share/gnome/help/gnucash/C/figures ${destpath}${prefix}/share/doc/gnucash/C/gnucash-help/figures"
63
64    file copy ${worksrcpath}/help/de_DE/gnucash-help ${destpath}${prefix}/share/doc/gnucash/de_DE
65    file delete -force ${destpath}${prefix}/share/doc/gnucash/de_DE/gnucash-help/figures
66    system "ln -sf ${prefix}/share/gnome/help/gnucash/de_DE/figures ${destpath}${prefix}/share/doc/gnucash/de_DE/gnucash-help/figures"
67}
68
69post-activate {
70    system "${prefix}/bin/scrollkeeper-update"
71}
72
73livecheck.type  regex
74livecheck.url   ${master_sites}
75livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.