Ticket #48368: Portfile.diff
File Portfile.diff, 2.5 KB (added by jpo@…, 9 years ago) |
---|
-
Portfile
old new 1 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 2 # $Id: Portfile 135219 2015-04-19 16:40:48Z khindenburg@macports.org $ 3 3 4 PortSystem 1.04 PortSystem 1.0 5 5 6 6 name cloc 7 version 1.62 8 revision 1 7 version 1.64 9 8 set perl_version 5.16 10 9 categories textproc devel 11 10 license GPL-2 Artistic-1 12 11 platforms darwin 12 supported_archs noarch 13 13 maintainers vt.edu:jpo openmaintainer 14 description cloc counts blank lines, comment lines, and physical lines \ 15 of source code in many programming languages. 16 long_description ${description} 14 description counts lines of source code 15 long_description cloc counts blank lines, comment lines, and physical \ 16 lines of source code in many programming languages. \ 17 Given two versions of a code base, cloc can compute \ 18 differences in blank, comment, and source lines. 17 19 18 homepage http://cloc.sourceforge.net 19 master_sites sourceforge:project/cloc/cloc/v${version} /20 homepage http://cloc.sourceforge.net/ 21 master_sites sourceforge:project/cloc/cloc/v${version} 20 22 21 checksums rmd160 ab487a6e81a4f2663e632e27237d07faf948784c\22 sha256 c4111ef5768b1c2844c0c826988df6f92fbb5aa7452a5005d3a031d68631acb323 checksums rmd160 025b0347177dcfa245c35789362c5ce0dc8f6634 \ 24 sha256 309701142f54ee5b244307dec2d07848b71af9b9fee01437d3f7440193f975f0 23 25 24 26 depends_run-append port:perl${perl_version} \ 25 27 port:p${perl_version}-algorithm-diff \ … … 28 30 29 31 use_configure no 30 32 33 patch { 34 reinplace -W ${worksrcpath} \ 35 "s|^#!/usr/bin/env perl|#!${prefix}/bin/perl${perl_version}|" \ 36 cloc sqlite_formatter 37 } 38 39 build {} 40 31 41 destroot.args-append prefix=${prefix} 32 42 33 43 post-destroot { 34 reinplace -W ${destroot}${prefix}/bin "s|#!/usr/bin/env perl|#! ${prefix}/bin/perl${perl_version}|" \ 44 reinplace -W ${destroot}${prefix}/bin \ 45 "s|#!/usr/bin/env perl|#! ${prefix}/bin/perl${perl_version}|" \ 35 46 cloc 36 47 } 37 48 38 livecheck.type regex 39 livecheck.url ${homepage} 40 livecheck.regex {latest version: (\d+(?:\.\d+)*)} 49 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)\.pl