Ticket #18049: Portfile

File Portfile, 2.0 KB (added by paul.dlug@…, 16 years ago)
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 40100 2008-09-20 17:11:26Z akira@macports.org $
3
4PortSystem      1.0
5
6name            tokyotyrant
7version         1.1.11
8categories      databases
9maintainers     openmaintainer gmail.com:paul.dlug
10platforms       darwin
11description     Tokyo Tyrant is the network interface for Tokyo Cabinet.
12long_description    \
13    Tokyo Tyrant is a the network interface for Tokyo Cabinet. It consists of a\
14    network server process managing a database and providing concurrent and remote\
15    connections. 
16homepage        http://tokyocabinet.sourceforge.net/
17master_sites    ${homepage}/tyrantpkg \
18                sourceforge:tokyocabinet
19checksums       md5 6006aa820377a9e8a25c7e6d512ce930 \
20                sha1 1927ecc0e313e82815d216336052529cf40a4f9e \
21                rmd160 165ad5df56812cdea9cf772ac2a7fc78512d9400
22
23depends_lib     port:zlib port:tokyocabinet
24
25configure.args  --mandir=${prefix}/share/man \
26                --datadir=${prefix}/share/doc
27
28post-patch {
29    # configure
30    reinplace "s|\$HOME|\${prefix}|g" ${worksrcpath}/configure
31    # Makefile.in
32    reinplace "s|\$(HOME)|\$(prefix)|g" ${worksrcpath}/Makefile.in
33}
34
35test.run yes
36test.target check
37
38#default_variants +fastest
39
40variant debug conflicts devel profile fastest description {build for debugging} {
41    configure.args-append   --enable-debug
42}
43
44variant devel conflicts debug profile fastest description {build for development} {
45    configure.args-append   --enable-devel
46}
47
48variant profile conflicts debug devel fastest description {build for profiling} {
49    configure.args-append   --enable-profile
50}
51
52variant fastest conflicts debug devel profile description {build for fastest run} {
53    configure.args-append   --enable-fastest
54}
55
56variant lua description {Build with lua extension} {
57    configure.args-append --enable-lua
58    depends_lib-append    port:lua
59}
60
61livecheck.check sourceforge