source: trunk/dports/databases/gdbm/Portfile

Last change on this file was 148773, checked in by mps@…, 14 months ago

gdbm: update to version 1.12.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 148773 2016-05-17 19:32:12Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                gdbm
7version             1.12
8categories          databases
9platforms           darwin
10license             GPL-3+
11maintainers         nomaintainer
12
13description         The GNU database manager
14long_description    The GNU `dbm' is a library of database functions \
15                    that use extendible hashing and works similar to \
16                    the standard UNIX `dbm' functions. These routines \
17                    are provided to a programmer needing to create and \
18                    manipulate a hashed database.
19homepage            http://www.gnu.org/software/gdbm/gdbm.html
20
21depends_lib         port:gettext
22
23master_sites        gnu
24checksums           rmd160  5f47e6adfec14b31c3e26c1027684ba4845eef8a \
25                    sha256  d97b2166ee867fd6ca5c022efee80702d6f30dd66af0e03ed092285c3af9bcea
26
27# Don't link using "-flat_namespace -undefined suppress" on Yosemite and
28# later (#45709).
29patchfiles          yosemite-libtool.patch
30
31configure.ccache    no
32
33configure.args      --disable-silent-rules
34
35post-install {
36    # gdbm @1.8.3_1 installed files outside the destroot; remove them if found
37    foreach file {share/info/gdbm.info share/man/man3/gdbm.3} {
38        set filepath ${prefix}/${file}
39        if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {
40            if {[catch {delete ${filepath}}]} {
41                ui_warn "Cannot delete ${filepath}; please remove it manually"
42            }
43        }
44    }
45}
46
47variant compat description {Install dbm/ndbm compatibility files} {
48    configure.args-append --enable-libgdbm-compat
49}
50
51livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)\\.tar
Note: See TracBrowser for help on using the repository browser.