source: trunk/dports/textproc/asciidoc/Portfile

Last change on this file was 131004, checked in by larryv@…, 3 years ago

asciidoc: Use Python 2.7 always (#46398)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 131004 2015-01-05 00:49:05Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                asciidoc
7version             8.6.9
8revision            2
9checksums           sha256  78db9d0567c8ab6570a6eff7ffdf84eadd91f2dfc0a92a2d0105d323cab4e1f0 \
10                    rmd160  f19936593e3bed2755d77d38dd78a4769f77c7fa
11
12categories          textproc
13license             GPL-2+
14maintainers         cal openmaintainer
15description         Formatter/translator for text files to numerous formats
16long_description \
17    AsciiDoc is a text document format for writing short documents, \
18    articles, books and UNIX man pages. AsciiDoc files can be translated to \
19    HTML (with or without stylesheets), DocBook and LinuxDoc markup using \
20    the asciidoc(1) command.  AsciiDoc is highly configurable: both the \
21    AsciiDoc source file syntax and the backend output markups (which can be \
22    almost any type of SGML/XML markup) can be customized and extended by \
23    the user.
24
25platforms           darwin
26supported_archs     noarch
27
28homepage            http://www.methods.co.nz/asciidoc/
29master_sites        sourceforge
30
31depends_lib         port:python27
32depends_run         port:docbook-xml-4.5 \
33                    port:fop \
34                    port:libxml2
35
36configure.python    ${prefix}/bin/python2.7
37
38destroot.target install docs vimdir=${prefix}/share/vim/vimfiles/
39
40pre-destroot {
41    xinstall -d ${destroot}${prefix}/share/vim/vimfiles
42}
43
44post-destroot {
45    reinplace "s:#!/usr/bin/env python:#!${prefix}/bin/python2.7:" \
46        ${destroot}${prefix}/bin/asciidoc \
47        ${destroot}${prefix}/bin/a2x
48}
49
50platform darwin {
51    # Avoid hidden dependency on gsed
52    configure.env-append SED=/usr/bin/sed
53}
Note: See TracBrowser for help on using the repository browser.