Ticket #42573: Portfile

File Portfile, 1.7 KB (added by lpgaff (Liam Gaffney), 11 years ago)

Portfile for openbrowser

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
3PortSystem              1.0
4
5name                    openbrowser
6version                 1.0.1
7revision                2
8categories              sysutils
9platforms               macosx
10maintainers             ryandesign
11license                 MIT
12
13description             opens files and URLs into the default web browser
14
15long_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
21homepage                http://www.macports.org/
22
23distfiles
24
25universal_variant       no
26
27variant perl5_16 conflicts perl5_14 perl5_12 description {use perl 5.16} {}
28variant perl5_14 conflicts perl5_16 perl5_12 description {use perl 5.14} {}
29variant perl5_12 conflicts perl5_16 perl5_14 description {use perl 5.12} {}
30default_variants +perl5_16
31
32if {[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
40depends_run-append  port:p${perl_version}-mac-propertylist
41
42extract.mkdir           yes
43
44configure {
45    copy ${filespath}/${name} ${worksrcpath}
46}
47
48build {
49    reinplace "s|/usr/bin/env perl|${prefix}/bin/perl${perl_version}|g" ${worksrcpath}/${name}
50}
51
52destroot {
53    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
54}
55
56livecheck.type          none