Changeset 111791


Ignore:
Timestamp:
Oct 1, 2013, 10:07:04 PM (7 years ago)
Author:
devans@…
Message:

libgda5:

  • update dependencies
  • really enable gobject introspection
  • fix m4/bdb.m4 to work with MacPorts Berkeley DB file layout
  • replace broken +bdb variant with new +db47 +db48 +db51
  • default is +db51 which provides additional Berkeley DB SQL support
Location:
trunk/dports/databases/libgda5
Files:
2 added
1 edited

Legend:

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

    r111785 r111791  
    77set gname       libgda
    88version         5.1.2
    9 revision        3
     9revision        4
    1010license         {GPL-2 LGPL}
    1111
     
    2222distname        libgda-${version}
    2323master_sites    gnome:sources/${gname}/${branch}/
     24
    2425use_xz          yes
    2526
    2627checksums       rmd160  36b06a9e07a2e8d81d2d093021712fa2d8b361f0 \
    2728                sha256  59c4416a151297a406091fcfe7af781ea88af3381d10b365ba73b1eb8e23b6c5
     29
     30patchfiles      patch-bdb.diff
    2831
    2932depends_skip_archcheck gnome-settings-daemon
     
    3740                port:readline \
    3841                path:bin/dot:graphviz \
    39                 port:gtksourceview2 \
    40                 port:goocanvas \
     42                port:gtk3 \
     43                port:gtksourceview3 \
     44                port:goocanvas2 \
    4145                port:iso-codes \
     46                port:libsecret \
    4247                port:libsoup \
    43                 port:libtool \
     48                port:libgcrypt \
     49                port:libxml2 \
     50                port:libxslt \
    4451                port:gobject-introspection
    4552
     
    4754                port:yelp
    4855
    49 default_variants +bdb
    5056
    5157# Don't do intltool's INTLTOOL_PERL dance
     
    5864#
    5965
    60 configure.args  --with-bdb=${prefix} \
    61                 --enable-system-sqlite=no \
     66configure.args  --enable-system-sqlite=no \
    6267                --enable-introspection=yes \
     68                --enable-gda-gi=yes \
     69                --enable-gdaui-gi=yes \
    6370                --disable-silent-rules \
    6471                --with-ldap=no \
     
    116123}
    117124
    118 variant bdb description {support for Berkeley DB} {
    119 #
    120 # prefer Berkeley DB 4.7 over 4.6
    121 # and depend on it if 4.6 is not installed
    122 # if both are installed configure will select 4.7
    123 # otherwise look for 4.6
    124 #
    125     if ([file exists ${prefix}/include/db52/db.h]) {
    126         depends_lib-append port:db52
    127     } elseif ([file exists ${prefix}/include/db46/db.h])  {
    128         depends_lib-append port:db46
    129     } elseif ([file exists ${prefix}/include/db47/db.h])  {
    130         depends_lib-append port:db47
    131     } elseif ([file exists ${prefix}/include/db48/db.h])  {
    132         depends_lib-append port:db48
    133     } elseif ([file exists ${prefix}/include/db51/db.h])  {
    134         depends_lib-append port:db51
    135     }
     125variant db47 conflicts db48 db51  \
     126    description {support for Berkeley DB 4.7.x} {
     127    set db_version 47
     128    depends_lib-append  port:db${db_version}
     129    configure.cppflags-append "-I${prefix}/include/db${db_version}"
     130    configure.args-delete   --with-bdb=no
     131    configure.args-append   --with-bdb=${prefix} \
     132                            --with-bdb-libdir-name=lib/db${db_version}
    136133}
    137134
    138 default_variants    +bdb
     135variant db48 conflicts db47 db51 \
     136    description {support for Berkeley DB 4.8.x} {
     137    set db_version 48
     138    depends_lib-append  port:db${db_version}
     139    configure.cppflags-append "-I${prefix}/include/db${db_version}"
     140    configure.args-delete   --with-bdb=no
     141    configure.args-append   --with-bdb=${prefix} \
     142                            --with-bdb-libdir-name=lib/db${db_version}
     143}
     144
     145variant db51 conflicts db47 db48 \
     146    description {support for Berkeley DB 5.1.x} {
     147    set db_version 51
     148    depends_lib-append  port:db${db_version}
     149    configure.cppflags-append "-I${prefix}/include/db${db_version}"
     150    configure.args-delete   --with-bdb=no
     151    configure.args-append   --with-bdb=${prefix} \
     152                            --with-bdb-libdir-name=lib/db${db_version}
     153}
     154
     155if {![variant_isset db47] && ![variant_isset db48]} {
     156    default_variants +db51
     157}
    139158
    140159post-activate {
    141     system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
    142160    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
     161    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
    143162}
    144163
Note: See TracChangeset for help on using the changeset viewer.