Ignore:
Timestamp:
Apr 25, 2004, 6:24:52 AM (15 years ago)
Author:
rshaw
Message:

Updated to release 2004-04-24

Submitted by: rshaw

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/ruby/rb-kwartz/Portfile

    r6378 r6742  
    1 # $Id: Portfile,v 1.2 2004/04/11 06:00:21 rshaw Exp $
     1# $Id: Portfile,v 1.3 2004/04/25 06:24:52 rshaw Exp $
    22PortSystem 1.0
    33
    44name                    rb-kwartz
    5 version                 2004-04-05
     5version                 2004-04-24
    66categories              ruby textproc
    77maintainers             shu@rufuran.org
    88description             A fast, clean, multi-language template system
    99long_description        Kwartz is a template system designed for web designers \
    10                         and programmers. It can separate presentation logic \
    11                         from a template, runs very fast, generates templates \
    12                         in multiple languages, does not break HTML design, \
    13                         handle any kind of text, and can auto-sanitize text.
    14 
    15 homepage                http://www.kuwata-lab.com/webtech/kwartz/
    16 platforms               darwin
    17 master_sites            ${homepage}
     10                                        and programmers. It can separate presentation logic \
     11                                        from a template, runs very fast, generates templates \
     12                                        in multiple languages, does not break HTML design, \
     13                                        handle any kind of text, and can auto-sanitize text.
     14homepage                http://www.kuwata-lab.com/kwartz/
     15master_sites    ${homepage}
    1816dist_subdir             ruby
    1917distname                kwartz_${version}
    20 worksrcdir              kwartz_${version}
    21 checksums               md5 ae99496b15e76f29d709550d16aaed1f
     18checksums               md5 878f39daac2881f62f246e8c4d07fabf
     19platforms               darwin
    2220
    2321set ruby ${prefix}/bin/ruby
    24 depends_build           path:${ruby}:ruby
     22depends_build   path:${ruby}:ruby
    2523
    26 use_configure           no
     24configure.cmd   ${ruby} -rvendor-specific setup.rb
     25configure.pre_args      config
    2726
    28 build {
    29         reinplace "s|#!/usr/bin/ruby|#!${ruby}|g" ${worksrcpath}/kwartz
    30 }
     27build.cmd               ${ruby} -rvendor-specific setup.rb
     28build.target    setup
    3129
    3230test.run                yes
     
    3432test.cmd                ${ruby} test.cmd.rb\; ${ruby} test.rb
    3533
    36 destroot {
    37         set rubylibpath [exec ${ruby} -rrbconfig -e "print Config::CONFIG\['vendorlibdir'\]"]
    38         regsub ${prefix} ${rubylibpath} ${destroot}${prefix} rubylibpath
    39 
    40         xinstall -d -m 0755 ${destroot}${prefix}/bin
    41         xinstall -m 0755 ${worksrcpath}/kwartz ${destroot}${prefix}/bin
    42         xinstall -d -m 0755 ${rubylibpath}
    43         xinstall -m 0644 ${worksrcpath}/kwartz.rb ${rubylibpath}
     34destroot.cmd    ${ruby} -rvendor-specific setup.rb
     35destroot.target install
     36destroot.destdir
     37pre-destroot {
     38        reinplace "s|${prefix}|${destroot}${prefix}|g" ${worksrcpath}/config.save
     39}
     40post-destroot {
     41        cd ${worksrcpath}
    4442        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
    45         system "cp -R ${worksrcpath}/util ${destroot}${prefix}/share/doc/${name}/util"
    46         system "cp -R ${worksrcpath}/users-guide ${destroot}${prefix}/share/doc/${name}/users-guide"
     43        system "cp -R doc ${destroot}${prefix}/share/doc/${name}/rdoc"
     44        system "cp -R util ${destroot}${prefix}/share/doc/${name}/util"
     45        system "cp -R users-guide ${destroot}${prefix}/share/doc/${name}/users-guide"
    4746}
Note: See TracChangeset for help on using the changeset viewer.