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 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name openbrowser |
---|
6 | version 1.0.1 |
---|
7 | revision 2 |
---|
8 | categories sysutils |
---|
9 | platforms macosx |
---|
10 | maintainers ryandesign |
---|
11 | license MIT |
---|
12 | |
---|
13 | description opens files and URLs into the default web browser |
---|
14 | |
---|
15 | long_description openbrowser opens files and URLs into your default \ |
---|
16 | web browser. Unlike \"open\", openbrowser will still \ |
---|
17 | open local .html files into your web browser even \ |
---|
18 | if you have configured LaunchServices to open .html \ |
---|
19 | files into e.g. a text editor. |
---|
20 | |
---|
21 | homepage http://www.macports.org/ |
---|
22 | |
---|
23 | distfiles |
---|
24 | |
---|
25 | universal_variant no |
---|
26 | |
---|
27 | variant perl5_16 conflicts perl5_14 perl5_12 description {use perl 5.16} {} |
---|
28 | variant perl5_14 conflicts perl5_16 perl5_12 description {use perl 5.14} {} |
---|
29 | variant perl5_12 conflicts perl5_16 perl5_14 description {use perl 5.12} {} |
---|
30 | default_variants +perl5_16 |
---|
31 | |
---|
32 | if {[variant_isset perl5_16]} { |
---|
33 | set perl_version 5.16 |
---|
34 | } elseif {[variant_isset perl5_14]} { |
---|
35 | set perl_version 5.14 |
---|
36 | } else { |
---|
37 | set perl_version 5.12 |
---|
38 | } |
---|
39 | |
---|
40 | depends_run-append port:p${perl_version}-mac-propertylist |
---|
41 | |
---|
42 | extract.mkdir yes |
---|
43 | |
---|
44 | configure { |
---|
45 | copy ${filespath}/${name} ${worksrcpath} |
---|
46 | } |
---|
47 | |
---|
48 | build { |
---|
49 | reinplace "s|/usr/bin/env perl|${prefix}/bin/perl${perl_version}|g" ${worksrcpath}/${name} |
---|
50 | } |
---|
51 | |
---|
52 | destroot { |
---|
53 | xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin |
---|
54 | } |
---|
55 | |
---|
56 | livecheck.type none |
---|