source: trunk/dports/python/py-jsbeautifier/Portfile

Last change on this file was 150724, checked in by petr@…, 12 months ago

various py-* ports, nomaintainer: retire py26 subport for ports without dependents

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1016 bytes
Line 
1# $Id: Portfile 150724 2016-07-27 20:07:24Z ryandesign@macports.org $
2# -*- 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
3
4PortSystem 1.0
5PortGroup python 1.0
6PortGroup github 1.0
7
8github.setup        einars js-beautify 1.4.0 v
9
10name                py-jsbeautifier
11categories-append   textproc
12platforms           darwin
13supported_archs     noarch
14license             MIT
15maintainers         nomaintainer
16
17description         JS beautifier written in Python
18long_description    ${description}
19
20homepage            http://jsbeautifier.org/
21
22checksums           rmd160 283f13781596246d898b8383aaf1725d3d8ce76a \
23                    sha256 fb364b3df2057a50e3199411eaeb3d99ac4aebd309e8a043f3dfcf25487e0bac
24
25python.versions     27
26
27if {${name} ne ${subport}} {
28    build.dir           ${worksrcpath}/python
29
30    post-destroot {
31        reinplace "s|#! /usr/bin/env python|#!${python.bin}|" ${build.dir}/js-beautify
32        xinstall -m 755 ${build.dir}/js-beautify ${destroot}${python.prefix}/bin
33    }
34}
Note: See TracBrowser for help on using the repository browser.