[144462] trunk/dports/databases

devans at macports.org devans at macports.org
Sat Jan 9 08:39:38 PST 2016


Revision: 144462
          https://trac.macports.org/changeset/144462
Author:   devans at macports.org
Date:     2016-01-09 08:39:38 -0800 (Sat, 09 Jan 2016)
Log Message:
-----------
qof: new port, the Query Object Framework.

Added Paths:
-----------
    trunk/dports/databases/qof/
    trunk/dports/databases/qof/Portfile
    trunk/dports/databases/qof/files/
    trunk/dports/databases/qof/files/patch-configure.ac.diff
    trunk/dports/databases/qof/files/patch-qof-qofdate.c.diff

Added: trunk/dports/databases/qof/Portfile
===================================================================
--- trunk/dports/databases/qof/Portfile	                        (rev 0)
+++ trunk/dports/databases/qof/Portfile	2016-01-09 16:39:38 UTC (rev 144462)
@@ -0,0 +1,41 @@
+# -*- 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                qof
+version             0.8.8
+description          Query Object Framework (QOF)
+long_description    ${description} is a framework to allow the exection of SQL-type \
+                    queries using collections of in-memory objects as 'tables'.
+maintainers         nomaintainer
+categories          databases
+license             GPL-2+
+platforms           darwin
+homepage            http://sourceforge.net/projects/qof/
+master_sites        http://ftp.debian.org/debian/pool/main/q/${name}
+
+distname            ${name}_${version}.orig
+worksrcdir          ${name}-${version}
+
+checksums           rmd160  e020e9843ae59cf3d8a9946ea9241921d852234f \
+                    sha256  2cecb942bb42fc77c42417cf9118512c73911c16ccea6e72ab28b8bdf60a4e2e
+
+depends_build       port:pkgconfig
+
+depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
+                    port:libxml2
+
+patchfiles          patch-configure.ac.diff \
+                    patch-qof-qofdate.c.diff
+
+use_parallel_build  no
+use_autoreconf      yes
+autoreconf.args     -fvi
+
+configure.args      --disable-doxygen \
+                    --disable-gdasql
+
+livecheck.type      regex
+livecheck.url       ${master_sites}
+livecheck.regex     "${name}_(\\d+(?:\\.\\d+)*)"


Property changes on: trunk/dports/databases/qof/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/databases/qof/files/patch-configure.ac.diff
===================================================================
--- trunk/dports/databases/qof/files/patch-configure.ac.diff	                        (rev 0)
+++ trunk/dports/databases/qof/files/patch-configure.ac.diff	2016-01-09 16:39:38 UTC (rev 144462)
@@ -0,0 +1,102 @@
+--- configure.ac.orig	2014-09-23 00:39:16.000000000 -0700
++++ configure.ac	2016-01-09 06:52:29.000000000 -0800
+@@ -96,29 +96,6 @@
+ 
+ # nothing to do, yet.
+ 
+-AC_MSG_CHECKING(for darwin)
+-case $host_os in
+-	rhapsody* | darwin1*)
+-		AC_MSG_RESULT([yes, but too old])
+-		AC_MSG_ERROR([This platform is too old, please update to the latest darwin])
+-		;;
+-	darwin*)
+-		AC_MSG_RESULT([yes, patching libtool to always build dylibs])
+-		mv libtool libtool.old
+-		sed -e 's/^deplibs_check_method.*/deplibs_check_method=pass_all/g' \
+-			-e 's|^library_names_spec.*|library_names_spec="\\$libname\\$release\\$versuffix.dylib \\$libname\\$release\\${major}.dylib \\$libname.dylib"|g' \
+-			-e 's|^soname_spec.*|soname_spec="\\$libname\\$release\\$major.dylib"|g' \
+-			< libtool.old > libtool
+-		rm libtool.old
+-		AC_DEFINE(DARWIN,,Found Mac OSX Darwin)
+-		DARWIN="dylib"
+-		AC_SUBST(DARWIN)
+-		;;
+-	*)
+-		AC_MSG_RESULT(no)
+-		;;
+-esac
+-
+ dnl # **************************************************************
+ dnl # Checks for typedefs, structures, and compiler characteristics.
+ dnl # **************************************************************
+@@ -387,60 +364,6 @@
+ BB_ENABLE_DOXYGEN
+ # ----------------------------------------------------------------
+ 
+-dnl # *************************************
+-dnl # Extra warnings
+-dnl # *************************************
+-AC_MSG_CHECKING(what extra warning flags to pass to the C compiler)
+-if test ${GCC}x = yesx; then
+-  warnFLAGS=
+-  CFLAGS="${CFLAGS} -g2 -Wall"
+-  AC_ARG_ENABLE(error-on-warning,
+-        [  --disable-error-on-warning
+-                          disable treating compile warnings as errors],
+-        [case "${enableval}" in
+-        yes) warnFLAGS="${warnFLAGS} -Werror" ;;
+-        no)  ;;
+-        *) AC_MSG_ERROR(bad value ${enableval} for --enable-error-on-warning) ;;
+-        esac],
+-        [  warnFLAGS="${warnFLAGS}" ])
+-  GCC_VERSION=`${CC} -dumpversion`
+-  if test `echo ${GCC_VERSION} | cut -d. -f1` -ge 3; then
+-     # This is gcc >= 3.x.x
+-     if test `echo ${GCC_VERSION} | cut -d. -f2` -ge 4; then
+-        # This is gcc >= 3.4.x
+-        warnFLAGS="${warnFLAGS} -Wdeclaration-after-statement"
+-     else if test `echo ${GCC_VERSION} | cut -d. -f1` -ge 4; then
+-        # This is gcc == 4.x.x
+-        warnFLAGS="${warnFLAGS} -Wdeclaration-after-statement -Wno-pointer-sign"
+-        fi
+-     fi
+-  fi
+-dnl  CFLAGS="${CFLAGS} ${warnFLAGS}"
+-else
+-  warnFLAGS=
+-fi
+-AC_MSG_RESULT($warnFLAGS)
+-AC_SUBST(warnFLAGS)
+-
+-set_compile_warnings=no
+-
+-AC_ARG_ENABLE(compile-warnings,
+-              [  --enable-compile-warnings
+-                          Enable verbose compiler warnings],
+-              set_compile_warnings=yes)
+-
+-if test "$GCC" = "yes" -a "$set_compile_warnings" != "no"; then
+-        warnFLAGS="$warnFLAGS -Wcast-align -Wsign-compare \
+- -Wmissing-prototypes -Wmissing-declarations -Werror -Wmissing-include-dirs \
+- -Wstrict-prototypes -Winline -Wnested-externs -Wpointer-arith \
+- -Wmissing-field-initializers"
+-# LDFLAGS="$LDFLAGS -Wl,-z,defs"
+-fi
+-
+-AC_SUBST(CFLAGS)
+-AC_SUBST(CPPFLAGS)
+-AC_SUBST(LDFLAGS)
+-
+ DATADIR=`eval echo $datadir`
+ QSF_SCHEMA_DIR=`eval echo $DATADIR`"/xml/qof/qsf"
+ AC_SUBST(QSF_SCHEMA_DIR)
+@@ -491,7 +414,7 @@
+ echo ""
+ 
+ dnl # <= CFLAGS and LDFLAGS =>
+-echo "CFLAGS      :   $warnFLAGS"
++echo "CFLAGS      :   $CFLAGS"
+ echo "LDFLAGS     :   $LDFLAGS"
+ echo "QOF_CFLAGS  :   "`eval echo $QOF_CFLAGS`
+ echo "QOF_LIBS    :   $QOF_LIBS"

Added: trunk/dports/databases/qof/files/patch-qof-qofdate.c.diff
===================================================================
--- trunk/dports/databases/qof/files/patch-qof-qofdate.c.diff	                        (rev 0)
+++ trunk/dports/databases/qof/files/patch-qof-qofdate.c.diff	2016-01-09 16:39:38 UTC (rev 144462)
@@ -0,0 +1,11 @@
+--- qof/qofdate.c.orig	2016-01-09 06:26:38.000000000 -0800
++++ qof/qofdate.c	2016-01-09 06:27:28.000000000 -0800
+@@ -827,7 +827,7 @@
+ 	if (qd->qd_wday < 0)
+ 		qd->qd_wday += 7;
+ 	y = 1970;
+-	while (days < 0 || days >= (__isleap (y) ? 366 : 365))
++	while (days < 0 || days >= ((qof_date_isleap(y)) ? 366 : 365))
+ 	{
+ 		/* Guess a corrected year, assuming 365 days per year.  */
+ 		yg = y + days / 365 - (days % 365 < 0);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160109/2850e10e/attachment.html>


More information about the macports-changes mailing list