diff options
author | Markus Dittrich <markusle@gentoo.org> | 2008-02-04 11:51:35 +0000 |
---|---|---|
committer | Markus Dittrich <markusle@gentoo.org> | 2008-02-04 11:51:35 +0000 |
commit | 233f8db2558b8391d0f2218b5bc976f224ce46ac (patch) | |
tree | c9067fdd08057b4ead7d12dcee0871bea08aac52 /sci-libs/libqalculate | |
parent | Version bump, bug #207570 (diff) | |
download | historical-233f8db2558b8391d0f2218b5bc976f224ce46ac.tar.gz historical-233f8db2558b8391d0f2218b5bc976f224ce46ac.tar.bz2 historical-233f8db2558b8391d0f2218b5bc976f224ce46ac.zip |
Added patches to allow compilation against cln-1.2 (see bug #208527).
Package-Manager: portage-2.1.4.1
Diffstat (limited to 'sci-libs/libqalculate')
-rw-r--r-- | sci-libs/libqalculate/ChangeLog | 11 | ||||
-rw-r--r-- | sci-libs/libqalculate/Manifest | 5 | ||||
-rw-r--r-- | sci-libs/libqalculate/files/libqalculate-0.9.6-cl_abort.patch | 20 | ||||
-rw-r--r-- | sci-libs/libqalculate/files/libqalculate-0.9.6-cln-config.patch | 171 | ||||
-rw-r--r-- | sci-libs/libqalculate/libqalculate-0.9.6-r1.ebuild | 52 |
5 files changed, 256 insertions, 3 deletions
diff --git a/sci-libs/libqalculate/ChangeLog b/sci-libs/libqalculate/ChangeLog index 42d7ffceae37..5440976450ce 100644 --- a/sci-libs/libqalculate/ChangeLog +++ b/sci-libs/libqalculate/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-libs/libqalculate -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/libqalculate/ChangeLog,v 1.24 2007/10/19 20:14:56 nixnut Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/libqalculate/ChangeLog,v 1.25 2008/02/04 11:51:34 markusle Exp $ + +*libqalculate-0.9.6-r1 (02 Feb 2008) + + 02 Feb 2008; Markus Dittrich <markusle@gentoo.org> + +files/libqalculate-0.9.6-cl_abort.patch, + +files/libqalculate-0.9.6-cln-config.patch, +libqalculate-0.9.6-r1.ebuild: + Added patches to allow compilation against cln-1.2 (see bug #208527). 19 Oct 2007; nixnut <nixnut@gentoo.org> libqalculate-0.9.6.ebuild: Stable on ppc wrt bug 193455 diff --git a/sci-libs/libqalculate/Manifest b/sci-libs/libqalculate/Manifest index 7d64d21cf787..ea187f57dce3 100644 --- a/sci-libs/libqalculate/Manifest +++ b/sci-libs/libqalculate/Manifest @@ -1,9 +1,12 @@ AUX libqalculate-0.9.6-check-fix.patch 687 RMD160 e35afa4e94a22c2741396d0d0128673d7adba90a SHA1 d8ad58203a8760fe46d0a3b54c1ef3f56745a1a8 SHA256 040a67e8f69eac2805f2b14c772d11696530846618a3c1b38b3eabc4f404311a +AUX libqalculate-0.9.6-cl_abort.patch 770 RMD160 5bddb84ba816c28187f57759685cff1e2fae1f6b SHA1 69619a265d0ac75e0f81bcf0b1bd68f240412567 SHA256 e3603747cabc58e3c97dbce7f54061785cfe3eec9ec922ee77a7cedf94b091f6 +AUX libqalculate-0.9.6-cln-config.patch 8897 RMD160 f86f2e4a4e9a53d838c105172c8c6bee8f473009 SHA1 9e8f9aef18e7c6f91a16d3bdd031ebf4d192221a SHA256 a61b9768192c1290df90c94132f04e6e6b2c23626c18a9a5259bd8d95da3c5f9 DIST libqalculate-0.9.4.tar.gz 1055947 RMD160 8d14a0ac6790eeab0d8fe2d7b8f87381d1ad223c SHA1 78468f5a0329b01e146a71ff8d1b9b823ed52262 SHA256 4eff5995b73664ae307cbaf2c6c6ee840938f2763243c7fd67d8de7ee90df701 DIST libqalculate-0.9.5.tar.gz 1118827 RMD160 7839c56e275979157f6bace072d1fc9f500c8953 SHA1 df44162bfb41907851817306b6599d27d74de0ce SHA256 f9f40c0753890779cf9507548cc5212961d3c7c4ff699db517f0422e0b5a2b0d DIST libqalculate-0.9.6.tar.gz 1111134 RMD160 30f819530236da6b6b78088754643408c8aeb70d SHA1 0bcd42e13c23db9489ce594767d5017bdcb338ad SHA256 d9bd34a026e130d987e92994d9fd9437fc3187c022ef0931bea335e8479722fc EBUILD libqalculate-0.9.4.ebuild 1168 RMD160 2d967615dc71e4884e3b7c46b581d3697c76642c SHA1 b89a4de64c72f8a3df051a9410087d7af0fdf73c SHA256 e6b41186f7009144ffda604ac912499eec27b8d6ab998fcf21ea2c452de562fb EBUILD libqalculate-0.9.5.ebuild 1171 RMD160 7c1b523633d90e4c604fad2e1b5e3f87f3711ea7 SHA1 204f40de8949211d850cfae434ea0bc5d0aec2e1 SHA256 4f718dda0a7ccf8c2aaeef44ecd6d9c11721efb06ccd475d150772bdcc29d328 +EBUILD libqalculate-0.9.6-r1.ebuild 1387 RMD160 bae1317163a9ac747dbbbe4e5fbe08582a2d9ce6 SHA1 9bb81baaf904b8b8d6ecc1ab88b8c0ce0b40926a SHA256 4129d262435a76a85ba3edca10380abbcfd5d266b3c716128c29c78489e391a3 EBUILD libqalculate-0.9.6.ebuild 1272 RMD160 f990c1253667fa234394aa4a437ceb480b00f594 SHA1 b528342cd21a89623a87b96cd9b00f737786c8a1 SHA256 44bc474109ed55729ca531f7be5e9597a79b8caed3ba6dc79108b6c86db2fca3 -MISC ChangeLog 3638 RMD160 25223ab4fbf160e6f6f6b880cde86ae128837a12 SHA1 fd2664bc5fd576a67736e729a148d3b5860ada77 SHA256 ce0e92560a69a9ca6515f240054fff24963404b8c0a4cf0390084a672fd09383 +MISC ChangeLog 3925 RMD160 3e0feb5abb9e937fc3bc88fef41580f56537a2a6 SHA1 e04c8f401cb92f269fe4d0683288da580322b6ee SHA256 7c82d163c80533380dbbd689425bf1cf402077832bb89eb896ee4c278cbafecf MISC metadata.xml 157 RMD160 ed43b99e7bf8bbf62cf4e46152138ab42d3a88c5 SHA1 2182a6de0b10959aad51af2990f1a6c69e34dd97 SHA256 750cb9e46ac2b77e1adf73de43c186a8c2d2234a9c6a89d9358d0969dc5cf8ac diff --git a/sci-libs/libqalculate/files/libqalculate-0.9.6-cl_abort.patch b/sci-libs/libqalculate/files/libqalculate-0.9.6-cl_abort.patch new file mode 100644 index 000000000000..74a0c9dc0117 --- /dev/null +++ b/sci-libs/libqalculate/files/libqalculate-0.9.6-cl_abort.patch @@ -0,0 +1,20 @@ +diff -Naur libqalculate-0.9.6/libqalculate/Number.cc libqalculate-0.9.6.new1/libqalculate/Number.cc +--- libqalculate-0.9.6/libqalculate/Number.cc 2007-05-18 04:03:22.000000000 -0400 ++++ libqalculate-0.9.6.new1/libqalculate/Number.cc 2008-02-02 11:06:15.000000000 -0500 +@@ -28,6 +28,7 @@ + + using namespace cln; + ++/* + void cln::cl_abort() { + CALCULATOR->error(true, "CLN Error: see terminal output (probably too large or small floating point number)", NULL); + if(CALCULATOR->busy()) { +@@ -36,7 +37,7 @@ + exit(0); + } + } +- ++*/ + string printCL_I(cl_I integ, int base = 10, bool display_sign = true, BaseDisplay base_display = BASE_DISPLAY_NORMAL, bool lower_case = false) { + if(base == BASE_ROMAN_NUMERALS) { + if(!zerop(integ) && integ < 10000 && integ > -10000) { diff --git a/sci-libs/libqalculate/files/libqalculate-0.9.6-cln-config.patch b/sci-libs/libqalculate/files/libqalculate-0.9.6-cln-config.patch new file mode 100644 index 000000000000..d0e4d9bedcdc --- /dev/null +++ b/sci-libs/libqalculate/files/libqalculate-0.9.6-cln-config.patch @@ -0,0 +1,171 @@ +diff -Naur libqalculate-0.9.6/aclocal.m4 libqalculate-0.9.6.new/aclocal.m4 +--- libqalculate-0.9.6/aclocal.m4 2007-06-17 04:45:44.000000000 -0400 ++++ libqalculate-0.9.6.new/aclocal.m4 2008-02-02 11:04:21.000000000 -0500 +@@ -7836,146 +7836,27 @@ + [dnl + dnl Get the cppflags and libraries from the cln-config script + dnl +-AC_ARG_WITH(cln-prefix,[ --with-cln-prefix=PFX Prefix where CLN is installed (optional)], +- cln_config_prefix="$withval", cln_config_prefix="") +-AC_ARG_WITH(cln-exec-prefix,[ --with-cln-exec-prefix=PFX Exec prefix where CLN is installed (optional)], +- cln_config_exec_prefix="$withval", cln_config_exec_prefix="") +-AC_ARG_ENABLE(clntest, [ --disable-clntest Do not try to compile and run a test CLN program], +- , enable_clntest=yes) +- +-if test x$cln_config_exec_prefix != x ; then +- cln_config_args="$cln_config_args --exec-prefix=$cln_config_exec_prefix" +- if test x${CLN_CONFIG+set} != xset ; then +- CLN_CONFIG=$cln_config_exec_prefix/bin/cln-config +- fi +-fi +-if test x$cln_config_prefix != x ; then +- cln_config_args="$cln_config_args --prefix=$cln_config_prefix" +- if test x${CLN_CONFIG+set} != xset ; then +- CLN_CONFIG=$cln_config_prefix/bin/cln-config +- fi +-fi + +-AC_PATH_PROG(CLN_CONFIG, cln-config, no) ++AC_PATH_PROG(PKG_CONFIG, pkg-config, no) + cln_min_version=ifelse([$1], ,1.1.0,$1) + AC_MSG_CHECKING(for CLN - version >= $cln_min_version) +-if test "$CLN_CONFIG" = "no" ; then ++if test "$PKG_CONFIG" = "no" ; then + AC_MSG_RESULT(no) +- echo "*** The cln-config script installed by CLN could not be found" +- echo "*** If CLN was installed in PREFIX, make sure PREFIX/bin is in" +- echo "*** your path, or set the CLN_CONFIG environment variable to the" +- echo "*** full path to cln-config." ++ echo "*** could not find pkg-config" + ifelse([$3], , :, [$3]) + else + dnl Parse required version and the result of cln-config. +- cln_min_major_version=`echo $cln_min_version | \ +- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` +- cln_min_minor_version=`echo $cln_min_version | \ +- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` +- cln_min_micro_version=`echo $cln_min_version | \ +- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` +- CLN_CPPFLAGS=`$CLN_CONFIG $cln_config_args --cppflags` +- CLN_LIBS=`$CLN_CONFIG $cln_config_args --libs` +- cln_config_version=`$CLN_CONFIG $cln_config_args --version` +- cln_config_major_version=`echo $cln_config_version | \ +- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` +- cln_config_minor_version=`echo $cln_config_version | \ +- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` +- cln_config_micro_version=`echo $cln_config_version | \ +- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` +-dnl Check if the installed CLN is sufficiently new according to cln-config. +- if test \( $cln_config_major_version -lt $cln_min_major_version \) -o \ +- \( $cln_config_major_version -eq $cln_min_major_version -a $cln_config_minor_version -lt $cln_min_minor_version \) -o \ +- \( $cln_config_major_version -eq $cln_min_major_version -a $cln_config_minor_version -eq $cln_min_minor_version -a $cln_config_micro_version -lt $cln_min_micro_version \); then +- echo -e "\n*** 'cln-config --version' returned $cln_config_major_version.$cln_config_minor_version.$cln_config_micro_version, but the minimum version" +- echo "*** of CLN required is $cln_min_major_version.$cln_min_minor_version.$cln_min_micro_version. If cln-config is correct, then it is" +- echo "*** best to upgrade to the required version." +- echo "*** If cln-config was wrong, set the environment variable CLN_CONFIG" +- echo "*** to point to the correct copy of cln-config, and remove the file" +- echo "*** config.cache before re-running configure." +- ifelse([$3], , :, [$3]) ++ if $PKG_CONFIG cln --atleast-version=${cln_min_version}; then ++ echo "Found cln >= ${cln_min_version}" ++ CLN_CPPFLAGS=`$PKG_CONFIG cln --cflags` ++ CLN_LIBS=`$PKG_CONFIG cln --libs` + else +-dnl The versions match so far. Now do a sanity check: Does the result of cln-config +-dnl match the version of the headers and the version built into the library, too? +- no_cln="" +- if test "x$enable_clntest" = "xyes" ; then +- ac_save_CPPFLAGS="$CPPFLAGS" +- ac_save_LIBS="$LIBS" +- CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS" +- LIBS="$LIBS $CLN_LIBS" +- rm -f conf.clntest +- AC_TRY_RUN([ +-#include <stdio.h> +-#include <string.h> +-#include <cln/version.h> +- +-/* we do not #include <stdlib.h> because autoconf in C++ mode inserts a +- prototype for exit() that conflicts with the one in stdlib.h */ +-extern "C" int system(const char *); +- +-int main(void) +-{ +- system("touch conf.clntest"); +- +- if ((CL_VERSION_MAJOR != $cln_config_major_version) || +- (CL_VERSION_MINOR != $cln_config_minor_version) || +- (CL_VERSION_PATCHLEVEL != $cln_config_micro_version)) { +- printf("\n*** 'cln-config --version' returned %d.%d.%d, but the header file I found\n", $cln_config_major_version, $cln_config_minor_version, $cln_config_micro_version); +- printf("*** corresponds to %d.%d.%d. This mismatch suggests your installation of CLN\n", CL_VERSION_MAJOR, CL_VERSION_MINOR, CL_VERSION_PATCHLEVEL); +- printf("*** is corrupted or you have specified some wrong -I compiler flags.\n"); +- printf("*** Please inquire and consider reinstalling CLN.\n"); +- return 1; +- } +- if ((cln::version_major != $cln_config_major_version) || +- (cln::version_minor != $cln_config_minor_version) || +- (cln::version_patchlevel != $cln_config_micro_version)) { +- printf("\n*** 'cln-config --version' returned %d.%d.%d, but the library I found\n", $cln_config_major_version, $cln_config_minor_version, $cln_config_micro_version); +- printf("*** corresponds to %d.%d.%d. This mismatch suggests your installation of CLN\n", cln::version_major, cln::version_minor, cln::version_patchlevel); +- printf("*** is corrupted or you have specified some wrong -L compiler flags.\n"); +- printf("*** Please inquire and consider reinstalling CLN.\n"); +- return 1; +- } +- return 0; +-} +-],, no_cln=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) +- CPPFLAGS="$ac_save_CPPFLAGS" +- LIBS="$ac_save_LIBS" +- fi +- if test "x$no_cln" = x ; then +- AC_MSG_RESULT([yes, $cln_config_version]) +- ifelse([$2], , :, [$2]) +- else +- AC_MSG_RESULT(no) +- if test ! -f conf.clntest ; then +- echo "*** Could not run CLN test program, checking why..." +- CPPFLAGS="$CFLAGS $CLN_CPPFLAGS" +- LIBS="$LIBS $CLN_LIBS" +- AC_TRY_LINK([ +-#include <stdio.h> +-#include <cln/version.h> +-], [ return 0; ], +- [ echo "*** The test program compiled, but did not run. This usually means" +- echo "*** that the run-time linker is not finding CLN or finding the wrong" +- echo "*** version of CLN. If it is not finding CLN, you'll need to set your" +- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" +- echo "*** to the installed location. Also, make sure you have run ldconfig if that" +- echo "*** is required on your system."], +- [ echo "*** The test program failed to compile or link. See the file config.log for the" +- echo "*** exact error that occured. This usually means CLN was incorrectly installed" +- echo "*** or that you have moved CLN since it was installed. In the latter case, you" +- echo "*** may want to edit the cln-config script: $CLN_CONFIG." ]) +- CPPFLAGS="$ac_save_CPPFLAGS" +- LIBS="$ac_save_LIBS" +- fi +- CLN_CPPFLAGS="" +- CLN_LIBS="" +- ifelse([$3], , :, [$3]) +- fi ++ echo "ERROR: cln >= ${cln_min_version} not found" ++ ifelse([$3], , :, [$3]) + fi + fi + AC_SUBST(CLN_CPPFLAGS) + AC_SUBST(CLN_LIBS) +-rm -f conf.clntest + ]) + + # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- +diff -Naur libqalculate-0.9.6/src/Makefile.in libqalculate-0.9.6.new/src/Makefile.in +--- libqalculate-0.9.6/src/Makefile.in 2007-06-17 04:45:49.000000000 -0400 ++++ libqalculate-0.9.6.new/src/Makefile.in 2008-02-02 11:37:48.000000000 -0500 +@@ -117,7 +117,7 @@ + INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ + LDFLAGS = @LDFLAGS@ + LIBOBJS = @LIBOBJS@ +-LIBS = @LIBS@ ++LIBS = @LIBS@ @CLN_LIBS@ + LIBTOOL = @LIBTOOL@ + LN_QALCULATE = @LN_QALCULATE@ + LN_S = @LN_S@ diff --git a/sci-libs/libqalculate/libqalculate-0.9.6-r1.ebuild b/sci-libs/libqalculate/libqalculate-0.9.6-r1.ebuild new file mode 100644 index 000000000000..a966a21b8880 --- /dev/null +++ b/sci-libs/libqalculate/libqalculate-0.9.6-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/libqalculate/libqalculate-0.9.6-r1.ebuild,v 1.1 2008/02/04 11:51:34 markusle Exp $ + +inherit eutils autotools + +DESCRIPTION="A modern multi-purpose calculator library" +LICENSE="GPL-2" +HOMEPAGE="http://qalculate.sourceforge.net/" +SRC_URI="mirror://sourceforge/qalculate/${P}.tar.gz" + +SLOT="0" +IUSE="readline" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" + +COMMON_DEPEND=">=sci-libs/cln-1.1 + dev-libs/libxml2 + >=dev-libs/glib-2.4 + sys-libs/zlib + readline? ( sys-libs/readline )" + +DEPEND="${COMMON_DEPEND} + >=dev-util/pkgconfig-0.12.0 + dev-util/intltool + sys-devel/gettext" + +RDEPEND="${COMMON_DEPEND} + >=sci-visualization/gnuplot-3.7 + net-misc/wget" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-check-fix.patch + epatch "${FILESDIR}"/${P}-cl_abort.patch + epatch "${FILESDIR}"/${P}-cln-config.patch + eautoconf +} + +src_compile() { + # The CLN test is buggy and will often fail though an appropriate version + # of the library is installed. + CONFIG="$(use_with readline) --disable-clntest" + econf ${CONFIG} || die "Configuration failed." + emake || die "Compilation failed." +} + +src_install() { + einstall || die "Installation failed." + DOCS="AUTHORS ChangeLog NEWS README TODO" + dodoc ${DOCS} || die "Documentation installation failed." +} |