source: trunk/dports/perl/p5-berkeleydb/Portfile

Last change on this file was 154393, checked in by mojca@…, 11 months ago

p5-*: remove subports for perl5.22 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 154393 2016-10-28 22:10:07Z ryandesign@macports.org $
3
4# This comment was inserted on 20160713 to force reindexing of
5# this port after the default homepage definition in the perl5
6# PortGroup was changed to use metacpan.org (r150080).
7# Reindexing is necessary for the new definition to take effect.
8# This comment may be removed in subsequent updates of this port.
9
10PortSystem          1.0
11PortGroup           perl5 1.0
12
13perl5.branches      5.24
14perl5.setup         BerkeleyDB 0.55
15license             {Artistic-1 GPL}
16maintainers         nomaintainer
17description         BerkeleyDB is a module which allows Perl programs \
18                    to make use of the facilities provided by \
19                    Berkeley DB version 2 or greater.
20long_description    ${description}
21
22platforms           darwin
23
24checksums           rmd160  ba5dde51bd5672dfe9117f85808ad4f91ba142d5 \
25                    sha256  6f28e141c7e2fbc455621bc809d6e7d84a3640cc77568b07798ae3933107e44f
26
27variant db48 conflicts db51 db52 db53 description {Build with Berkeley DB 4.8} {}
28variant db51 conflicts db48 db52 db53 description {Build with Berkeley DB 5.1} {}
29variant db52 conflicts db48 db51 db53 description {Build with Berkeley DB 5.2} {}
30variant db53 conflicts db48 db51 db52 description {Build with Berkeley DB 5.3} {}
31
32if {![variant_isset db48] && ![variant_isset db51] && ![variant_isset db52]} {
33    default_variants +db53
34}
35
36if {${perl5.major} != ""} {
37    foreach setvariant {db48 db51 db52 db53} {
38        if {[variant_isset $setvariant]} {
39            depends_lib-append \
40                    port:$setvariant
41
42            configure.env \
43                    BERKELEYDB_INCLUDE=${prefix}/include/$setvariant \
44                    BERKELEYDB_LIB=${prefix}/lib/$setvariant \
45                    DBNAME=-ldb
46        }
47    }
48}
Note: See TracBrowser for help on using the repository browser.