source: trunk/dports/net/bnbt/Portfile @ 86632

Last change on this file since 86632 was 86632, checked in by ryandesign@…, 9 years ago

Rewrite master_sites to avoid redirects

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 86632 2011-10-30 12:24:57Z ryandesign@macports.org $
2
3PortSystem 1.0
4name             bnbt
5version          8.1r3
6categories       net
7maintainers      nomaintainer
8description      C++ BitTorrent tracker
9long_description \
10        BNBT is a complete port of the original Python \
11        BitTorrent tracker to C++ for speed and \
12        efficiency. BNBT also offers many additional \
13        features beyond the original Python BitTorrent \
14        tracker, plus it's easy to use and customizable.
15homepage         http://bnbt.depthstrike.com/
16platforms        darwin
17
18regsub -all      "r" ${version} "%20Release%20" uversion
19master_sites     sourceforge:project/bnbt/bnbt/Beta%20${uversion}
20
21regsub -all      "\\." ${version} "" dversion
22regsub -all      "r" ${dversion} "b-" dversion
23distname         ${name}${dversion}-sf
24use_zip          yes
25checksums        md5 2935ffe0f51090a79d5bd76566af3b2b
26
27post-extract {
28    # CRLF to LF
29    reinplace "s|\r||g" ${worksrcpath}/src/Makefile
30}
31
32patchfiles       patch-Makefile patch-src__bnbt.h
33
34post-patch {
35    reinplace "s|@CXX@|${configure.cxx}|g" ${worksrcpath}/src/Makefile
36}
37
38use_configure    no
39
40worksrcdir       ${name}
41
42build.dir        ${worksrcpath}/src
43build.target     bnbt
44
45destroot {
46        xinstall ${worksrcpath}/src/bnbt ${destroot}${prefix}/bin
47        file mkdir ${destroot}${prefix}/share/doc
48        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/bnbt
49}
Note: See TracBrowser for help on using the repository browser.