Ticket #51087: Portfile

File Portfile, 1.7 KB (added by gkoller (Guido Kollerie), 8 years ago)

Asciidoctor Portfile

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$
3
4PortSystem          1.0
5PortGroup           ruby 1.0
6
7ruby.setup          asciidoctor 1.5.4 gem {} rubygems ruby22
8name                asciidoctor
9
10categories          textproc
11platforms           darwin
12
13license             MIT
14maintainers         kollerie.com:guido \
15                    openmaintainer
16description         Formatter/translator for text files to numerous formats
17long_description    Asciidoctor is a fast text processor and publishing \
18                    toolchain for converting AsciiDoc content to HTML5, \
19                    DocBook 5 (or 4.5) and other formats. Asciidoctor is \
20                    written in Ruby, packaged as a RubyGem and published \
21                    to RubyGems.org. The gem is also included in several \
22                    Linux distributions, including Fedora, Debian and \
23                    Ubuntu. Asciidoctor is open source, hosted on GitHub \
24                    and released under the MIT license.
25homepage            http://asciidoctor.org/
26checksums           rmd160 eedbb93e9a338061f63d2d803301aed1f6481a8c \
27                    sha256 0ca7c78528165b194b678a71f5bc600aafbee3dfa5bcd40c042e382d5d883477
28
29post-destroot {
30    # Reverse addition of the ruby interpreter version number as suffix to command line tools
31    foreach bin [glob -nocomplain -tails -directory "${destroot}${ruby.bindir}" *] {
32        if {[catch {file type "${destroot}${prefix}/bin/${bin}"}]} {
33            move "${destroot}${prefix}/bin/${bin}${ruby.link_binaries_suffix}" "${destroot}${prefix}/bin/${bin}"
34        }
35    }
36}