source: trunk/dports/ruby/rb-mustache/Portfile

Last change on this file was 103932, checked in by kimuraw@…, 5 years ago

ruby/: simplify Portfile with ${ruby.gemdir}, content not changed

${ruby.prog_suffix} and ${ruby.version} from PortGroup-ruby are obsoleted.
replace these values with ${ruby.gemdir} and ${ruby.lib}.

ports modified:

  • rb-bee
  • rb-easyjour
  • rb-mustache
  • rb-rttool
  • rb19-bcat
  • rb19-cheat
  • rb19-hirb
  • rb19-mustache
  • rb19-rdiscount
  • rb19-unicorn
  • rb19-wirble
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1# $Id: Portfile 103932 2013-03-10 10:48:31Z ryandesign@macports.org $
2PortSystem          1.0
3PortGroup           ruby 1.0
4
5ruby.setup          mustache 0.10.0 gem
6revision            1
7maintainers         nomaintainer
8description         Logic-less templates, implemented in Ruby.
9long_description    \
10    Inspired by ctemplate and et, Mustache is a framework-agnostic way to \
11    render logic-free views.
12categories-append   www
13license             MIT
14platforms           darwin
15homepage            http://mustache.github.com/
16master_sites        http://rubygems.org/downloads/
17checksums           md5     fa107351a80265149de08e6af9b4f477 \
18                    sha1    1ea270702d50745e0d6431cf212d81d18d0df916 \
19                    rmd160  644455c6a734a0ce205f501e0ec6c3a36360e849
20
21post-destroot {
22    set gemdir ${destroot}${ruby.gemdir}/gems/${worksrcdir}
23    set mandir ${destroot}${prefix}/share/man/
24    set docdir ${destroot}${prefix}/share/doc/${ruby.module}
25    xinstall -d ${docdir}
26   
27    xinstall ${gemdir}/man/${ruby.module}.1 ${mandir}/man1/
28    xinstall ${gemdir}/man/${ruby.module}.5 ${mandir}/man5/
29    xinstall -W ${gemdir} README.md LICENSE ${docdir}
30    eval xinstall [glob  ${gemdir}/man/*.html] ${docdir}
31}
32
33
Note: See TracBrowser for help on using the repository browser.