Ticket #10851: Portfile.diff

File Portfile.diff, 2.4 KB (added by mas@…, 18 years ago)
  • Portfile

    old new  
    22
    33PortSystem        1.0
    44name              gnucash-docs
    5 version           2.0.0
     5version           2.0.1
    66revision          0
    77categories        gnome x11
    88maintainers       mas@seligma.com
     
    1616                  accounting principles to ensure balanced books and \
    1717                  accurate reports. \
    1818                  This package contains (1) the user manual and (2) the \
    19                   Tutorial And Concepts Guide.
     19                  Tutorial And Concepts Guide.  Both are available through \
     20                  yelp, the gnome help browser, and an HTML copy is \
     21                  installed in /opt/local/share/doc/gnucash.
    2022homepage          http://www.gnucash.org/
    2123master_sites      http://www.gnucash.org/pub/gnucash/sources/stable/
    22 checksums         md5 9a84f681330aa61ea1aa7448b87e86a4
     24checksums         md5 c95256826fb7bc8410c789d855045855
     25                  # gpg signature verified
    2326depends_lib       bin:scrollkeeper-config:scrollkeeper \
    2427                  port:libxml2 \
    2528                  bin:xsltproc:libxslt
    2629depends_run       bin:yelp:yelp
    2730
     31build.target      all html
     32
     33destroot {
     34        system "cd ${worksrcpath}; ${build.cmd} install prefix=${destroot}${prefix}"
     35
     36        # Install HTML copies
     37        # Duplicate figures are removed, using symlinks instead.
     38        # If you update this, please check for additional localizations!
     39
     40        file mkdir ${destpath}/${prefix}/share/doc/gnucash/C
     41        file mkdir ${destpath}/${prefix}/share/doc/gnucash/de_DE
     42
     43        file copy ${portpath}/${filesdir}/index.html ${destpath}/${prefix}/share/doc/gnucash
     44
     45        file copy ${worksrcpath}/guide/C/gnucash-guide ${destpath}/${prefix}/share/doc/gnucash/C
     46        file delete -force ${destpath}/${prefix}/share/doc/gnucash/C/gnucash-guide/figures
     47        system "ln -sf ${prefix}/share/gnome/help/gnucash/C/figures ${destpath}/${prefix}/share/doc/gnucash/C/gnucash-guide/figures"
     48
     49        file copy ${worksrcpath}/help/C/gnucash-help ${destpath}/${prefix}/share/doc/gnucash/C
     50        file delete -force ${destpath}/${prefix}/share/doc/gnucash/C/gnucash-help/figures
     51        system "ln -sf ${prefix}/share/gnome/help/gnucash/C/figures ${destpath}/${prefix}/share/doc/gnucash/C/gnucash-help/figures"
     52
     53        file copy ${worksrcpath}/help/de_DE/gnucash-help ${destpath}/${prefix}/share/doc/gnucash/de_DE
     54        file delete -force ${destpath}/${prefix}/share/doc/gnucash/de_DE/gnucash-help/figures
     55        system "ln -sf ${prefix}/share/gnome/help/gnucash/de_DE/figures ${destpath}/${prefix}/share/doc/gnucash/de_DE/gnucash-help/figures"
     56}