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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name tokyocabinet |
---|
7 | version 1.3.27 |
---|
8 | categories databases |
---|
9 | maintainers openmaintainer gmail.com:rsky0711 |
---|
10 | platforms darwin |
---|
11 | description Tokyo Cabinet is a library of routines for managing a database. |
---|
12 | long_description \ |
---|
13 | Tokyo Cabinet is a library of routines for managing a database. The database\ |
---|
14 | is a simple data file containing records, each is a pair of a key and a value.\ |
---|
15 | Every key and value is serial bytes with variable length. Both binary data and\ |
---|
16 | character string can be used as a key and a value. There is neither concept of\ |
---|
17 | data tables nor data types. Records are organized in hash table or B+ tree. |
---|
18 | homepage http://tokyocabinet.sourceforge.net/ |
---|
19 | master_sites ${homepage} \ |
---|
20 | sourceforge:${name} |
---|
21 | checksums md5 9dfaa4311717ee3ab56c873af312f045 \ |
---|
22 | sha1 1ea3f009bd91de81eca00146bfd091b0a6af5251 \ |
---|
23 | rmd160 59b4f44dc968c0dac6db4e5b940a4041ed2b1ccf |
---|
24 | |
---|
25 | depends_lib port:zlib |
---|
26 | |
---|
27 | configure.args --mandir=${prefix}/share/man \ |
---|
28 | --datadir=${prefix}/share/doc |
---|
29 | |
---|
30 | post-patch { |
---|
31 | # configure |
---|
32 | reinplace "s|\$HOME|\${prefix}|g" ${worksrcpath}/configure |
---|
33 | # Makefile.in |
---|
34 | reinplace "s|\$(HOME)|\$(prefix)|g" ${worksrcpath}/Makefile.in |
---|
35 | } |
---|
36 | |
---|
37 | test.run yes |
---|
38 | test.target check |
---|
39 | |
---|
40 | #default_variants +fastest |
---|
41 | |
---|
42 | variant debug conflicts devel profile fastest description {build for debugging} { |
---|
43 | configure.args-append --enable-debug |
---|
44 | } |
---|
45 | |
---|
46 | variant devel conflicts debug profile fastest description {build for development} { |
---|
47 | configure.args-append --enable-devel |
---|
48 | } |
---|
49 | |
---|
50 | variant profile conflicts debug devel fastest description {build for profiling} { |
---|
51 | configure.args-append --enable-profile |
---|
52 | } |
---|
53 | |
---|
54 | variant fastest conflicts debug devel profile description {build for fastest run} { |
---|
55 | configure.args-append --enable-fastest |
---|
56 | } |
---|
57 | |
---|
58 | variant off64 description {build with 64-bit file offset on 32-bit system} { |
---|
59 | configure.args-append --enable-off64 |
---|
60 | } |
---|
61 | |
---|
62 | variant swap description {build for swapping byte-orders} { |
---|
63 | configure.args-append --enable-swap |
---|
64 | } |
---|
65 | |
---|
66 | livecheck.check sourceforge |
---|