Changeset 144366


Ignore:
Timestamp:
Jan 7, 2016, 4:35:08 AM (3 years ago)
Author:
devans@…
Message:

db51, db52: fix usage of obsolete port group.

Location:
trunk/dports/databases
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/db51/Portfile

    r144333 r144366  
    33
    44PortSystem 1.0
    5 PortGroup  muniversal 1.0
     5
     6name            db51
     7version         5.1.29
     8revision        4
     9categories      databases
     10license         Sleepycat
    611
    712# This port can be removed on Jan 6, 2017.
    813replaced_by             db53
    914PortGroup               obsolete 1.0
    10 
    11 name            db51
    12 version         5.1.29
    13 revision        3
    14 set branch      [join [lrange [split ${version} .] 0 1] {}]
    15 categories      databases
    16 license         Sleepycat
    17 maintainers     nomaintainer
    18 platforms       darwin
    19 description     The Berkeley DB package, version 5.1
    20 long_description \
    21     Version 5.1 of the Berkeley Data Base library which \
    22     offers (key/value) storage with optional concurrent \
    23     access or transactions interface.  This port will \
    24     install the AES (American Encryption Standard) \
    25     enabled version.
    26 
    27 homepage        http://www.oracle.com/us/products/database/berkeley-db/db/overview/index.html
    28 master_sites    http://download.oracle.com/berkeley-db/
    29 
    30 distname        db-${version}
    31 
    32 checksums       md5     a94ea755ab695bc04f82b94d2e24a1ef \
    33                 sha1    42dc96c71873c7fde543c916ed866cadee6fa51d \
    34                 rmd160  0c1124f08f121fdd8e43e5622cc3b8ddfd724c78
    35 
    36 patchfiles      patch-src_dbinc_atomic.h
    37 
    38 configure.dir   ${worksrcpath}/build_unix
    39 build.dir       ${configure.dir}
    40 
    41 configure.cmd   ../dist/configure
    42 configure.args  --enable-cxx \
    43                 --includedir=\\\${prefix}/include/db${branch} \
    44                 --libdir=\\\${prefix}/lib/db${branch}
    45 
    46 set cxx_stdlibflags {}
    47 if {[string match *clang* ${configure.cxx}]} {
    48     set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
    49 }
    50 configure.cxx ${configure.cxx} ${cxx_stdlibflags}
    51 
    52 destroot.destdir \
    53     prefix=${destroot}${prefix} \
    54     docdir=${destroot}${prefix}/share/doc/${name}
    55 
    56 post-destroot {
    57     foreach bin [glob -tails -directory ${destroot}${prefix}/bin/ db_*] {
    58         set newbin [regsub {^db_} ${bin} "db${branch}_"]
    59         move ${destroot}${prefix}/bin/${bin} \
    60             ${destroot}${prefix}/bin/${newbin}
    61     }
    62     if { ![variant_isset no_sql] } {
    63         move ${destroot}${prefix}/bin/dbsql \
    64             ${destroot}${prefix}/bin/db${branch}sql
    65     }
    66 }
    67 
    68 variant java conflicts no_java description {Build the Java API} {
    69     configure.args-append   --enable-java
    70     platform macosx {
    71         pre-configure {
    72             if {![file isfile "/System/Library/Frameworks/JavaVM.framework/Headers/jni.h"]} {
    73                 ui_error "${name} requires the Java for Mac OS X development headers."
    74                 if {${os.major} == 10} {
    75                     ui_error "Download the Java Developer Package from: <https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20719>"
    76                 } elseif {${os.major} == 9} {
    77                     ui_error "Download the Java Developer Package from: <https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20720>"
    78                 } else {
    79                     ui_error "Make sure your Xcode installation is complete."
    80                 }
    81                 return -code error "missing Java headers"
    82             }
    83         }
    84     }
    85 }
    86 
    87 variant no_java conflicts java description {Legacy compatibility variant} {}
    88 if {[variant_isset no_java]} {
    89     default_variants -java
    90 } elseif {${os.subplatform} eq "macosx" && ${os.major} < 11} {
    91     default_variants +java
    92 }
    93 
    94 variant sql conflicts no_sql description {Build the SQL API} {
    95     configure.args-append   --enable-sql
    96 # build with -DSQLITE_ENABLE_COLUMN_METADATA
    97 # required by libgda5 to enable Berkeley DB SQL support
    98     configure.cppflags-append -DSQLITE_ENABLE_COLUMN_METADATA
    99 }
    100 
    101 variant no_sql conflicts sql description {Legacy compatibility variant} {}
    102 if {[variant_isset no_sql]} {
    103     default_variants -sql
    104 } else {
    105     default_variants +sql
    106 }
    107 
    108 variant tcl description {build Tcl API} {
    109     depends_lib-append      port:tcl
    110     configure.args-append   --enable-tcl --with-tcl=${prefix}/lib
    111 }
    112 
    113 if { [variant_isset universal] } {
    114     if {${os.arch} eq "i386"} {
    115         if { ${os.major} >= 10 } {
    116             set merger_configure_args(ppc) --with-mutex=Darwin/_spin_lock_try
    117         }
    118         set merger_configure_args(ppc64)   --with-mutex=Darwin/_spin_lock_try
    119     } else {
    120         set merger_configure_args(i386)    --with-mutex=x86/gcc-assembly
    121         set merger_configure_args(x86_64)  --with-mutex=x86_64/gcc-assembly
    122     }
    123 }
    124 
    125 livecheck.type  regex
    126 livecheck.url   http://www.oracle.com/technetwork/database/berkeleydb/downloads/index-082944.html
    127 livecheck.regex {(5\.1(?:\.\d+)*)\.tar\.gz}
  • trunk/dports/databases/db52/Portfile

    r144333 r144366  
    33
    44PortSystem 1.0
    5 PortGroup  muniversal 1.0
    6 
    7 # This port can be removed on Jan 6, 2017.
    8 replaced_by             db53
    9 PortGroup               obsolete 1.0
    105
    116name            db52
    127version         5.2.42
    13 revision        2
    14 set branch      [join [lrange [split ${version} .] 0 1] {}]
     8revision        3
    159categories      databases
    1610license         Sleepycat
    17 maintainers     nomaintainer
    18 platforms       darwin
    19 description     The Berkeley DB package, version 5.2
    20 long_description \
    21     Version 5.2 of the Berkeley Data Base library which \
    22     offers (key/value) storage with optional concurrent \
    23     access or transactions interface.  This port will \
    24     install the AES (American Encryption Standard) \
    25     enabled version.
    2611
    27 homepage        http://www.oracle.com/us/products/database/berkeley-db/db/overview/index.html
    28 master_sites    http://download.oracle.com/berkeley-db/
    29 
    30 distname        db-${version}
    31 
    32 checksums       md5     28c39545efbeb926d1efef0bf33135b9 \
    33                 sha1    c533839056ab465a12808d48d3af0a35e50019be \
    34                 rmd160  717b2b68ff7d225edaed834289d8e06a3c1d7cc7
    35 
    36 patchfiles      patch-src_dbinc_atomic.h
    37 
    38 configure.dir   ${worksrcpath}/build_unix
    39 build.dir       ${configure.dir}
    40 
    41 configure.cmd   ../dist/configure
    42 configure.args  --enable-cxx \
    43                 --includedir=\\\${prefix}/include/db${branch} \
    44                 --libdir=\\\${prefix}/lib/db${branch}
    45 
    46 set cxx_stdlibflags {}
    47 if {[string match *clang* ${configure.cxx}]} {
    48     set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
    49 }
    50 configure.cxx ${configure.cxx} ${cxx_stdlibflags}
    51 
    52 destroot.destdir \
    53     prefix=${destroot}${prefix} \
    54     docdir=${destroot}${prefix}/share/doc/${name}
    55 
    56 post-destroot {
    57     foreach bin [glob -tails -directory ${destroot}${prefix}/bin/ db_*] {
    58         set newbin [regsub {^db_} ${bin} "db${branch}_"]
    59         move ${destroot}${prefix}/bin/${bin} \
    60             ${destroot}${prefix}/bin/${newbin}
    61     }
    62     if { ![variant_isset no_sql] } {
    63         move ${destroot}${prefix}/bin/dbsql \
    64             ${destroot}${prefix}/bin/db${branch}sql
    65     }
    66 }
    67 
    68 variant java conflicts no_java description {Build the Java API} {
    69     configure.args-append   --enable-java
    70     platform macosx {
    71         pre-configure {
    72             if {![file isfile "/System/Library/Frameworks/JavaVM.framework/Headers/jni.h"]} {
    73                 ui_error "${name} requires the Java for Mac OS X development headers."
    74                 if {${os.major} == 10} {
    75                     ui_error "Download the Java Developer Package from: <https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20719>"
    76                 } elseif {${os.major} == 9} {
    77                     ui_error "Download the Java Developer Package from: <https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20720>"
    78                 } else {
    79                     ui_error "Make sure your Xcode installation is complete."
    80                 }
    81                 return -code error "missing Java headers"
    82             }
    83         }
    84     }
    85 }
    86 
    87 variant no_java conflicts java description {Legacy compatibility variant} {}
    88 if {[variant_isset no_java]} {
    89     default_variants -java
    90 } elseif {${os.subplatform} eq "macosx" && ${os.major} < 11} {
    91     default_variants +java
    92 }
    93 
    94 variant sql conflicts no_sql description {Build the SQL API} {
    95     patchfiles-append       patch-sqlite.diff
    96     configure.args-append   --enable-sql
    97 }
    98 
    99 variant no_sql conflicts sql description {Legacy compatibility variant} {}
    100 if {[variant_isset no_sql]} {
    101     default_variants -sql
    102 } else {
    103     default_variants +sql
    104 }
    105 
    106 variant tcl description {build Tcl API} {
    107     depends_lib-append      port:tcl
    108     configure.args-append   --enable-tcl --with-tcl=${prefix}/lib
    109 }
    110 
    111 if { [variant_isset universal] } {
    112     if {${os.arch} eq "i386"} {
    113         if { ${os.major} >= 10 } {
    114             set merger_configure_args(ppc) --with-mutex=Darwin/_spin_lock_try
    115         }
    116         set merger_configure_args(ppc64)   --with-mutex=Darwin/_spin_lock_try
    117     } else {
    118         set merger_configure_args(i386)    --with-mutex=x86/gcc-assembly
    119         set merger_configure_args(x86_64)  --with-mutex=x86_64/gcc-assembly
    120     }
    121 }
    122 
    123 livecheck.type  regex
    124 livecheck.url   http://www.oracle.com/technetwork/database/berkeleydb/downloads/index-082944.html
    125 livecheck.regex {(5\.2(?:\.\d+)*)\.tar\.gz}
     12# This port can be removed on Jan 6, 2017.
     13replaced_by     db53
     14PortGroup       obsolete 1.0
Note: See TracChangeset for help on using the changeset viewer.