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 87355 2011-11-18 00:45:10Z rmstonecipher@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name gdbm |
---|
7 | version 1.10 |
---|
8 | categories databases |
---|
9 | license GPL-3+ |
---|
10 | maintainers nomaintainer |
---|
11 | description The GNU database manager |
---|
12 | long_description \ |
---|
13 | The GNU `dbm' is a library of database functions that \ |
---|
14 | use extendible hashing and works similar to the standard \ |
---|
15 | UNIX `dbm' functions. \ |
---|
16 | These routines are provided to a programmer needing to \ |
---|
17 | create and manipulate a hashed database. |
---|
18 | homepage http://www.gnu.org/software/gdbm/gdbm.html |
---|
19 | platforms darwin |
---|
20 | master_sites gnu |
---|
21 | |
---|
22 | checksums rmd160 32207388952acc2e9123fd1fd1f8880031cfb8d6 \ |
---|
23 | sha256 23f8134c5b94bbfb06d756a6b78f074fba6e6028cf2fe01341d40b26db773441 |
---|
24 | |
---|
25 | configure.args --mandir=${prefix}/share/man --infodir=${prefix}/share/info |
---|
26 | configure.ccache no |
---|
27 | post-configure { |
---|
28 | reinplace "s|-dynamiclib)|-dynamiclib) ${configure.ldflags} ${configure.cc_archflags}|" ${worksrcpath}/libtool |
---|
29 | } |
---|
30 | post-patch { |
---|
31 | reinplace "s|-o \$(BINOWN) -g \$(BINGRP)||g" ${worksrcpath}/Makefile.in |
---|
32 | } |
---|
33 | |
---|
34 | post-install { |
---|
35 | # gdbm @1.8.3_1 installed files outside the destroot; remove them if found |
---|
36 | foreach file {share/info/gdbm.info share/man/man3/gdbm.3} { |
---|
37 | set filepath ${prefix}/${file} |
---|
38 | if {[file exists ${filepath}]} { |
---|
39 | if {[catch {delete ${filepath}}]} { |
---|
40 | ui_warn "Cannot delete ${filepath}; please remove it manually" |
---|
41 | } |
---|
42 | } |
---|
43 | } |
---|
44 | } |
---|
45 | |
---|
46 | variant compat description {Install dbm/ndbm compatibility files} { |
---|
47 | configure.args-append --enable-libgdbm-compat |
---|
48 | } |
---|
49 | |
---|
50 | livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)\\.tar |
---|