Revision: 87295 http://trac.macports.org/changeset/87295 Author: jwa@macports.org Date: 2011-11-16 10:23:45 -0800 (Wed, 16 Nov 2011) Log Message: ----------- new port, at 5.0.1 Added Paths: ----------- trunk/dports/databases/libgda5/ trunk/dports/databases/libgda5/Portfile Added: trunk/dports/databases/libgda5/Portfile =================================================================== --- trunk/dports/databases/libgda5/Portfile (rev 0) +++ trunk/dports/databases/libgda5/Portfile 2011-11-16 18:23:45 UTC (rev 87295) @@ -0,0 +1,128 @@ +# -*- 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: Portfile 87235 2011-11-14 20:10:59Z jwa@macports.org $ + +PortSystem 1.0 + +name libgda5 +conflicts libgda3 libgda4 +set gname libgda +version 5.0.1 +license {GPL-2 LGPL} + +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 581d88637c7a40148c94332395e4953c \ + sha1 df5f8bde7d24a475926a311910edc74d89bc08cd \ + rmd160 2ba15f7ddd83740d25ca2b9f73812bf6586d0852 + +#patchfiles patch-configure.ac.diff + +depends_build port:pkgconfig \ + port:intltool \ + port:gnome-doc-utils + +depends_lib port:sqlite3 \ + path:bin/dot:graphviz \ + port:gtksourceview2 \ + port:goocanvas \ + port:libunique \ + port:iso-codes \ + port:libsoup \ + port:libtool + +# +# 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_autoreconf yes + +configure.perl ${prefix}/bin/perl +configure.env-append INTLTOOL_PERL=${configure.perl} + +configure.args --with-bdb=${prefix} \ + --enable-system-sqlite \ + --disable-silent-rules \ + --disable-introspection \ + --without-mysql \ + --without-postgres \ + --without-oracle \ + --without-firebird \ + --without-java \ + --without-jni + +# --without-mdb + +use_parallel_build no + +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 conflicts with_postgresql84 with_postgresql90 \ + 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 with_postgresql84 conflicts with_postgresql83 with_postgresql90 \ + description {support for PostgreSQL 8.4.x} { + configure.cppflags-append "-I${prefix}/include/postgresql84" + depends_lib-append port:postgresql84 + configure.args-delete --without-postgres + configure.args-append --with-postgres=${prefix}/lib/postgresql84 +} + +variant with_postgresql90 conflicts with_postgresql83 with_postgresql84 \ + description {support for PostgreSQL 9.0.x} { + configure.cppflags-append "-I${prefix}/include/postgresql90" + depends_lib-append port:postgresql90 + configure.args-delete --without-postgres + configure.args-append --with-postgres=${prefix}/lib/postgresql90 +} + +variant without_bdb \ + description {remove support for Berkeley DB} { + configure.args-delete --with-bdb=${prefix} + configure.args-append --without-bdb +} + +post-activate { + system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor" +} + +livecheck.type regex +livecheck.url http://ftp.gnome.org/pub/GNOME/sources/${gname}/${branch}/ +livecheck.regex "LATEST-IS-(\\d+(?:\\.\\d+)*)"
participants (1)
-
jwa@macports.org