source: trunk/dports/aqua/namebench/Portfile

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

namebench: Use Python 2.7 only

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 128751 2014-11-27 08:53:48Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           xcode 1.0
7
8name                namebench
9version             1.3.1
10revision            2
11categories          aqua sysutils
12platforms           darwin
13license             Apache-2
14maintainers         nomaintainer
15
16description         DNS speed benchmark tool (GUI)
17long_description    namebench hunts down the fastest DNS servers \
18                    available for your computer. namebench runs a fair \
19                    and thorough benchmark using your web browser \
20                    history, tcpdump output, or standardized datasets \
21                    in order to provide an individualized recommendation. \
22                    This port installs the Cocoa GUI interface. To \
23                    install just the command line interface, which the \
24                    Cocoa GUI interface depends on, install the \
25                    "py27-libnamebench" port.
26homepage            http://code.google.com/p/namebench/
27
28python.default_version  27
29depends_lib-append      port:py${python.version}-libnamebench \
30                        port:py${python.version}-pyobjc \
31                        port:py${python.version}-pyobjc-cocoa
32
33master_sites        googlecode:${name}
34distname            ${name}-${version}-source
35extract.suffix      .tgz
36checksums           rmd160  93d1186caf2a214ecf1966ee798f01d329ecfd64 \
37                    sha256  30ccf9e870c1174c6bf02fca488f62bba280203a0b1e8e4d26f3756e1a5b9425
38
39worksrcdir          ${name}-${version}/cocoa
40
41patchfiles          project.diff patch-main.m.diff
42post-patch {
43    reinplace "s|/usr/bin/python|${python.bin}|g" \
44            ${worksrcpath}/main.m
45    reinplace "s|@FRAMEWORKS_DIR@|${frameworks_dir}|g" \
46            ${worksrcpath}/namebench.xcodeproj/project.pbxproj
47    reinplace "s|@PYTHON_VERSION@|${python.branch}|g" \
48            ${worksrcpath}/namebench.xcodeproj/project.pbxproj
49}
Note: See TracBrowser for help on using the repository browser.