Ticket #32427: Portfile

File Portfile, 1.7 KB (added by abarnert@…, 10 years ago)

un-muniversal-ized version of gdbm portfile

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 87355 2011-11-18 00:45:10Z rmstonecipher@macports.org $
3
4PortSystem 1.0
5
6name            gdbm
7version         1.10
8categories      databases
9license         GPL-3+
10maintainers     nomaintainer
11description     The GNU database manager
12long_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.
18homepage        http://www.gnu.org/software/gdbm/gdbm.html
19platforms       darwin
20master_sites    gnu
21
22checksums           rmd160  32207388952acc2e9123fd1fd1f8880031cfb8d6 \
23                    sha256  23f8134c5b94bbfb06d756a6b78f074fba6e6028cf2fe01341d40b26db773441
24
25configure.args  --mandir=${prefix}/share/man --infodir=${prefix}/share/info
26configure.ccache no
27post-configure {
28                reinplace "s|-dynamiclib)|-dynamiclib) ${configure.ldflags} ${configure.cc_archflags}|" ${worksrcpath}/libtool
29}
30post-patch {
31        reinplace "s|-o \$(BINOWN) -g \$(BINGRP)||g" ${worksrcpath}/Makefile.in
32}
33
34post-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
46variant compat description {Install dbm/ndbm compatibility files} {
47        configure.args-append --enable-libgdbm-compat
48}
49
50livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)\\.tar