[52549] trunk/dports/databases
David Evans
devans at macports.org
Thu Jun 18 15:28:55 PDT 2009
nox wrote:
> libgda should be updated instead, I have a local diff which I need to
> file on Trac.
>
> Le 18 juin 09 à 21:39, devans at macports.org a écrit :
>
>> Revision52549Authordevans at macports.orgDate2009-06-18 12:39:00 -0700
>> (Thu, 18 Jun 2009)Log Message
>> new port libgda4:
>>
>> * updates libgda to version 4.0.2 as required by gnome 2.26 release
>> * co-maintainership with jwa openmaintainer
>> * installs Berkeley DB and sqlite3 support by default
>> * the port perfers port db47 and will install that if db46 is not
>> installed, but will build against db46 if it is already installed.
>> * configure.in is patched to allow recognition of Macports Berkeley
>> DB ports and autoconf is used to update configure
>> * a variant is supplied to remove Berkeley DB support if desired
>> * variants are supplied to build backends for MySQL 5 and/or
>> PostgreSQL 8.3
>> * more variants could be added to support a large number of other
>> databases that are supported by this version but these are disabled
>> initially.
>> Added Paths
>> • trunk/dports/databases/libgda4/
>> • trunk/dports/databases/libgda4/Portfile
>> • trunk/dports/databases/libgda4/files/
>> • trunk/dports/databases/libgda4/files/patch-configure.in.diff
>> Diff
>> Added: trunk/dports/databases/libgda4/Portfile (0 => 52549)
>>
>> ---
>> trunk/dports/databases/libgda4/Portfile
>> (rev 0)
>> +++ trunk/dports/databases/libgda4/Portfile 2009-06-18 19:39:00
>> UTC (rev 52549)
>> @@ -0,0 +1,113 @@
>> +# -*- 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
>> +# $Id$
>> +
>> +PortSystem 1.0
>> +
>> +name libgda4
>> +set gname libgda
>> +version 4.0.2
>> +set branch [join [lrange [split ${version} .] 0 1] .]
>> +description GDA provides uniform access to diffent kinds of data
>> sources.
>> +long_description \
>> + GNU Data Access (GDA) is an attempt to provide \
>> + uniform access to different kinds of data sources \
>> + (databases, information servers, mail spools, etc).
>> +maintainers jwa devans openmaintainer
>> +categories databases gnome
>> +platforms darwin
>> +homepage http://www.gnome-db.org/
>> +distname libgda-${version}
>> +master_sites gnome:sources/${gname}/${branch}/
>> +use_bzip2 yes
>> +
>> +checksums md5 cd79f6542cdd9477017b76b5f81c776f \
>> + sha1 9cfc4afc8eb4f39fa91d1007ac7b77ea7498bdab \
>> + rmd160 eb746e7c5b7863b9c528d39a2dae09e0ea284101
>> +
>> +patchfiles patch-configure.in.diff
>> +
>> +depends_build port:pkgconfig \
>> + port:autoconf \
>> + port:flex \
>> + port:m4 \
>> + port:intltool \
>> + port:p5-xml-parser \
>> + port:gnome-doc-utils
>> +
>> +depends_lib port:gettext \
>> + port:libiconv \
>> + port:libxml2 \
>> + port:ncurses \
>> + port:readline \
>> + port:zlib \
>> + port:gnome-vfs \
>> + port:sqlite3 \
>> + port:libsoup
>> +
>> +#
>> +# prefer Berkeley DB 4.7 over 4.6
>> +# and depend on it if 4.6 is not installed
>> +# if both are installed configure will select 4.7
>> +# otherwise look for 4.6
>> +#
>> +
>> +if (![variant_isset without_bdb]) {
>> + if !([file exists ${prefix}/include/db46/db.h]) {
>> + depends_lib-append port:db47
>> + } elseif ([file exists ${prefix}/include/db47/db.h]) {
>> + depends_lib-append port:db47
>> + } else {
>> + depends_lib-append port:db46
>> + }
>> +}
>> +
>> +use_autoconf yes
>> +
>> +configure.perl ${prefix}/bin/perl
>> +configure.env-append INTLTOOL_PERL=${configure.perl}
>> +
>> +configure.args --mandir=${prefix}/share/man \
>> + --with-bdb=${prefix} \
>> + --enable-system-sqlite \
>> + --without-odbc \
>> + --without-mysql \
>> + --without-msql \
>> + --without-postgres \
>> + --without-tds \
>> + --without-ibmdb2 \
>> + --without-sybase \
>> + --without-oracle \
>> + --without-firebird \
>> + --without-xbase \
>> + --without-mdb \
>> + --without-ldap \
>> + --without-java \
>> + --without-jni
>> +
>> +variant with_mysql5 \
>> + description {support for current MySQL 5.x} {
>> + depends_lib-append path:bin/mysql_config5:mysql5
>> + configure.env-append \
>> + MYSQL_CONFIG=${prefix}/lib/mysql5/bin/mysql_config
>> + configure.args-delete --without-mysql
>> + configure.args-append --with-mysql=${prefix}/lib/mysql5
>> + configure.cppflags-append "-I${prefix}/include/mysql5/mysql"
>> +}
>> +
>> +variant with_postgresql83 \
>> + description {support for PostgreSQL 8.3.x} {
>> + configure.cppflags-append "-I${prefix}/include/postgresql83"
>> + depends_lib-append port:postgresql83
>> + configure.args-delete --without-postgres
>> + configure.args-append --with-postgres=${prefix}/lib/postgresql83
>> +}
>> +
>> +variant without_bdb \
>> + description {remove support for Berkeley DB} {
>> + configure.args-delete --with-bdb=${prefix}
>> + configure.args-append --without-bdb
>> +}
>> +
>> +livecheck.check regex
>> +livecheck.url
>> http://ftp.gnome.org/pub/GNOME/sources/${gname}/${branch}/
>> +livecheck.regex "LATEST-IS-(\\d+(?:\\.\\d+)*)"
>> Property changes on: trunk/dports/databases/libgda4/Portfile
>> ___________________________________________________________________
>> Added: svn:keywords
>> Added: svn:eol-style
>> Added: trunk/dports/databases/libgda4/files/patch-configure.in.diff
>> (0 => 52549)
>>
>> ---
>> trunk/dports/databases/libgda4/files/patch-configure.in.diff
>> (rev 0)
>> +++ trunk/dports/databases/libgda4/files/patch-configure.in.diff
>> 2009-06-18 19:39:00 UTC (rev 52549)
>> @@ -0,0 +1,36 @@
>> +--- configure.in.orig 2009-04-18 05:03:50.000000000 -0700
>> ++++ configure.in 2009-06-13 15:19:24.000000000 -0700
>> +@@ -176,6 +176,7 @@
>> + AC_MSG_RESULT([Mac OS X - carbon])
>> + platform_carbon=yes
>> + SOPREFIX='lib'
>> ++ linklibext=".dylib"
>> + AM_BINRELOC
>> + LIBTOOL_EXPORT_OPTIONS=$EXPORT_SYM_REGEX
>> + LIBTOOL_PROV_EXPORT_OPTIONS=$EXPORT_PROV_SYM_REGEX
>> +@@ -355,6 +356,25 @@
>> + BDB_LIBS="-L${bdbdir}/lib -ldb"
>> + break
>> + fi
>> ++ if test $platform_carbon = yes -a -f
>> $d/include/db47/db.h -a -f $d/lib/db47/libdb$linklibext
>> ++ then
>> ++ AC_MSG_RESULT(found Berkeley DB 4.7
>> in $d)
>> ++ AC_DEFINE(HAVE_BDB, 1, [Have
>> Berkeley DB])
>> ++ bdbdir=$d
>> ++ BDB_CFLAGS="-I${bdbdir}/include/db47"
>> ++ BDB_LIB="$d/lib/db47/libdb$linklibext"
>> ++ BDB_LIBS="-L${bdbdir}/lib/db47 -ldb"
>> ++ break
>> ++ elif test $platform_carbon = yes -a -f
>> $d/include/db46/db.h -a -f $d/lib/db46/libdb$linklibext
>> ++ then
>> ++ AC_MSG_RESULT(found Berkeley DB 4.6 in $d)
>> ++ AC_DEFINE(HAVE_BDB, 1, [Have Berkeley DB])
>> ++ bdbdir=$d
>> ++ BDB_CFLAGS="-I${bdbdir}/include/db46"
>> ++ BDB_LIB="$d/lib/db46/libdb$linklibext"
>> ++ BDB_LIBS="-L${bdbdir}/lib/db46 -ldb"
>> ++ break
>> ++ fi
>> + dnl FIXME: check for db1 (non-sleepycat implementation)
>> + done
>> + if test x$bdbdir = x
>> _______________________________________________
>> macports-changes mailing list
>> macports-changes at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macports-changes
>
I agree that it would be good to update libgda itself to version 4 but
this should be done with caution. It is not clear that all the current
dependents of
libgda are compatible with libgda-4.0 and this should be addressed
before any further changes are made.
As it is libgda and libgda3/4 do not interfere with each other so the
libgda dependents should not be effected by the recent changes.
I suggest that libgda3 be deleted after the midgard2-core port has been
updated to libgda4, then address the potential merging of
libgda and libgda4 as a separate project in a way that existing ports
are not broken unnecessarily.
Dave
More information about the macports-dev
mailing list