summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2012-10-08 23:42:28 +0200
committerGilles Dartiguelongue <eva@gentoo.org>2012-10-08 23:55:31 +0200
commitcaf093b6ae3e0d1049209590025522b336d91fbb (patch)
tree1cdff133a13fdfee2bab9e027a07f8e42ade8ee3 /dev-libs
parentapp-office/gnotime: restore from gentoo-x86 attic (diff)
downloadeva-caf093b6ae3e0d1049209590025522b336d91fbb.tar.gz
eva-caf093b6ae3e0d1049209590025522b336d91fbb.tar.bz2
eva-caf093b6ae3e0d1049209590025522b336d91fbb.zip
dev-libs/qof: restore from gentoo-x86 attic
Also switch to EAPI=4 and fix a few minor nitpicks.
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/qof/Manifest11
-rw-r--r--dev-libs/qof/files/qof-0.7.4-remove_spurious_CFLAGS.patch57
-rw-r--r--dev-libs/qof/qof-0.7.5-r1.ebuild45
3 files changed, 113 insertions, 0 deletions
diff --git a/dev-libs/qof/Manifest b/dev-libs/qof/Manifest
new file mode 100644
index 0000000..d0ac210
--- /dev/null
+++ b/dev-libs/qof/Manifest
@@ -0,0 +1,11 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA512
+
+DIST qof-0.7.5.tar.gz 906010 SHA256 39dbb47f59ef33d4754f622c4afcc201862743dbd974172f19be0c19cb53428c SHA512 860ea276aec3fc77196655f8959d15b862006bd649fd655fa1be3b50c46c2b584844c6b47c31c5a67d1d0393ccd1b7ed5c62728fc8fb5f346ba1ba0fd1f93bd0 WHIRLPOOL 0b339ad809f1cdf00a5573373157d01324d5e975073989bf134e2a96f17f854121f65870abd3302d6fde69e6e31640a56c75fc432040c88f784e5f872a819f60
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iEYEAREKAAYFAlBzS1gACgkQ1fmVwcYIWAaHkwCgnsdK1c7Cs+zWosXEk6F+fTMe
+uN4AnRiaXDPBgUjjmZ5/zGysDxb1AZvr
+=LzNl
+-----END PGP SIGNATURE-----
diff --git a/dev-libs/qof/files/qof-0.7.4-remove_spurious_CFLAGS.patch b/dev-libs/qof/files/qof-0.7.4-remove_spurious_CFLAGS.patch
new file mode 100644
index 0000000..eb7b2ec
--- /dev/null
+++ b/dev-libs/qof/files/qof-0.7.4-remove_spurious_CFLAGS.patch
@@ -0,0 +1,57 @@
+--- configure.orig 2008-01-30 13:06:35.000000000 +0100
++++ configure 2008-01-30 13:06:45.000000000 +0100
+@@ -26894,18 +26894,18 @@
+ echo $ECHO_N "checking what extra warning flags to pass to the C compiler... $ECHO_C" >&6; }
+ if test ${GCC}x = yesx; then
+ warnFLAGS=
+- CFLAGS="${CFLAGS} -g2 -Wall"
++ CFLAGS="${CFLAGS}"
+ # Check whether --enable-error-on-warning was given.
+ if test "${enable_error_on_warning+set}" = set; then
+ enableval=$enable_error_on_warning; case "${enableval}" in
+- yes) warnFLAGS="${warnFLAGS} -Werror" ;;
++ yes) warnFLAGS="${warnFLAGS}" ;;
+ no) ;;
+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-error-on-warning" >&5
+ echo "$as_me: error: bad value ${enableval} for --enable-error-on-warning" >&2;}
+ { (exit 1); exit 1; }; } ;;
+ esac
+ else
+- warnFLAGS="${warnFLAGS} -Werror"
++ warnFLAGS="${warnFLAGS}"
+ fi
+
+ GCC_VERSION=`${CC} -dumpversion`
+@@ -26913,10 +26913,10 @@
+ # 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"
++ warnFLAGS="${warnFLAGS}"
+ 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"
++ warnFLAGS="${warnFLAGS}"
+ fi
+ fi
+ fi
+@@ -26934,19 +26934,6 @@
+ enableval=$enable_compile_warnings; set_compile_warnings=yes
+ fi
+
+-
+-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
+-
+-
+-
+-
+-
+ DATADIR=`eval echo $datadir`
+ QSF_SCHEMA_DIR=`eval echo $DATADIR`"/xml/qof/qsf"
+
diff --git a/dev-libs/qof/qof-0.7.5-r1.ebuild b/dev-libs/qof/qof-0.7.5-r1.ebuild
new file mode 100644
index 0000000..d459e7e
--- /dev/null
+++ b/dev-libs/qof/qof-0.7.5-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/qof/Attic/qof-0.7.5-r1.ebuild,v 1.9 2012/06/16 12:03:22 pacho dead $
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="A Query Object Framework"
+HOMEPAGE="http://qof.alioth.debian.org/"
+SRC_URI="mirror://sourceforge/qof/${P}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+
+KEYWORDS="amd64 ~ppc ~ppc64 sparc x86"
+
+IUSE="doc nls sqlite"
+
+RDEPEND="
+ dev-libs/libxml2:2
+ dev-libs/glib:2
+ sqlite? ( dev-db/sqlite:0 )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ !dev-libs/qof:2
+ doc? ( app-doc/doxygen )"
+
+src_prepare() {
+ # Upstream not willing to remove those stupid flags...
+ epatch "${FILESDIR}/${PN}-0.7.4-remove_spurious_CFLAGS.patch"
+}
+
+src_configure() {
+ econf \
+ --disable-error-on-warning \
+ --disable-dot \
+ --disable-gdabackend \
+ --disable-gdasql \
+ $(use_enable doc doxygen) \
+ $(use_enable doc html-docs) \
+ $(use_enable nls) \
+ $(use_enable sqlite)
+}