summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2009-05-01 13:40:19 +0200
committerGilles Dartiguelongue <eva@gentoo.org>2009-05-07 23:18:10 +0200
commit84f4dcc7599f8c232a295bf0e0c4d345398dc8f9 (patch)
treecdf2b6408f01e85898dc383c8a310b5d8cd0c96c /app-misc/gnote
parentdev-libs/libgdata: fixing tests that nirbheek ignored. (diff)
downloadgnome-84f4dcc7599f8c232a295bf0e0c4d345398dc8f9.tar.gz
gnome-84f4dcc7599f8c232a295bf0e0c4d345398dc8f9.tar.bz2
gnome-84f4dcc7599f8c232a295bf0e0c4d345398dc8f9.zip
app-misc/gnote: bump to 0.3.1
* Include an automagic fix for libpanelappletmm which doesn't build properly hence has no ebuild yet. * Thanks to Priit Laes for as-needed and boost fixes.
Diffstat (limited to 'app-misc/gnote')
-rw-r--r--app-misc/gnote/Manifest7
-rw-r--r--app-misc/gnote/files/gnote-0.3.1-automagic.patch83
-rw-r--r--app-misc/gnote/files/gnote-0.3.1-boost-update-v10.patch575
-rw-r--r--app-misc/gnote/files/gnote-0.3.1-fix-ldflags-as-needed.patch28
-rw-r--r--app-misc/gnote/gnote-0.3.1.ebuild (renamed from app-misc/gnote/gnote-0.2.0.ebuild)24
5 files changed, 713 insertions, 4 deletions
diff --git a/app-misc/gnote/Manifest b/app-misc/gnote/Manifest
index cd077423..b1d85fd7 100644
--- a/app-misc/gnote/Manifest
+++ b/app-misc/gnote/Manifest
@@ -1,2 +1,5 @@
-DIST gnote-0.2.0.tar.bz2 1402412 RMD160 3a4be07c7e3a6e11b25a9d068fc5c08d94975b9f SHA1 9a67a14105f8d6e96857709185f5f81aede36483 SHA256 690cab99189969ddc3b200cfda34cae5ed65d9442b75725492fd1875e15e7b93
-EBUILD gnote-0.2.0.ebuild 912 RMD160 9ac6a0d95b4423b76ca450e06b999e6dcfdda446 SHA1 a523a0eac84629c2398bd9c96d38f7cfaf945d8d SHA256 f22e2425fb50aaddea3a1eee75e8986de2bc7a032e7ac90964618fec9f92bdd7
+AUX gnote-0.3.1-automagic.patch 2853 RMD160 4c0ef593113c780e812cf2690390f0146728381f SHA1 c79a48e3feac4446bff32501cf2cf065df2aa64e SHA256 0d9ea331b24acf533a276ca7e048151f71c9355241bbb0fc1b5c21315d38dc75
+AUX gnote-0.3.1-boost-update-v10.patch 22669 RMD160 304995d3c1d988ec4a7dd009be65f7f3bacc6974 SHA1 10ff73addf831a84ac695a10f1bd83f0cdd62b09 SHA256 1f9767ec6c026c69e80d8c7f4633fa2567e7e94b5aee415943acd4f79ab52243
+AUX gnote-0.3.1-fix-ldflags-as-needed.patch 883 RMD160 5c92d8180b5483d9edcd94c461aa6a4a798757b5 SHA1 5f1dddedee0c2aa7b23a2dcbf31f6986ea773192 SHA256 d3cf4c251f2a480a65d5c544c9d0e219f7423dff65992e3ee56474c28e7707f1
+DIST gnote-0.3.1.tar.bz2 1485612 RMD160 a7dfabadcb777365b9e160bb6d4b7df429c2efd7 SHA1 082cf2c402241eec5f88663b214b39326966cad1 SHA256 73436300e5699a4ef3a3cee6c0e5fe7bbfbf8c42800f1500767b67c86147c1b0
+EBUILD gnote-0.3.1.ebuild 1327 RMD160 19589b0d1c38e901fb9b7e1a2d42e504a5c11ee2 SHA1 1e06475360b7bbab617337bd6a2ae6c33f047bc4 SHA256 c24367190bc3503f54077de590313dd539288cbf661af8a05c2f8df77c34c86e
diff --git a/app-misc/gnote/files/gnote-0.3.1-automagic.patch b/app-misc/gnote/files/gnote-0.3.1-automagic.patch
new file mode 100644
index 00000000..87283f4b
--- /dev/null
+++ b/app-misc/gnote/files/gnote-0.3.1-automagic.patch
@@ -0,0 +1,83 @@
+From 814e578545eaa089a107679e669dd7cb80d56782 Mon Sep 17 00:00:00 2001
+From: Gilles Dartiguelongue <eva@gentoo.org>
+Date: Thu, 7 May 2009 22:44:41 +0200
+Subject: [PATCH] Fix automagic libpanelappletmm dependency.
+
+---
+ configure.ac | 54 ++++++++++++++++++++++++++++++------------------------
+ 1 files changed, 30 insertions(+), 24 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index a743d8d..c20a03a 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -86,30 +86,36 @@ dnl check for the ext2 uuid library. TODO replace it with something more portabl
+ AC_CHECK_HEADER(uuid/uuid.h,,[AC_MSG_ERROR("uuid header is missing")])
+ AC_CHECK_LIB(uuid,uuid_unparse_lower, ,[AC_MSG_ERROR("libuuid library is missing")])
+
+-PKG_CHECK_EXISTS(libpanelappletmm-2.6 >= $LIBPANELAPPLETMM_VERSION,
+- [
+- AC_DEFINE(HAVE_PANELAPPLETMM, 1, [Define to 1 if panelapplet is available])
+- have_panelapplet="yes"
+- PKG_CHECK_MODULES(LIBPANELAPPLETMM, [libpanelappletmm-2.6 >= $LIBPANELAPPLETMM_VERSION])
+- ],
+- [have_panelapplet="no"]
+-)
+-
+-AM_CONDITIONAL(HAVE_PANELAPPLETMM, test $have_panelapplet == "yes")
+-
+-#
+-# If libpanelapplet available, use it to find .server install location.
+-#
+-if test "x$prefix" = "x$ac_default_prefix"; then
+- PANELAPPLET_LIBDIR=`$PKG_CONFIG --variable=libdir libpanelapplet-2.0`
+-fi
+-if test "x$PANELAPPLET_LIBDIR" != "x"; then
+- PANELAPPLET_SERVER_DIR="$PANELAPPLET_LIBDIR/bonobo/servers"
+-fi
+-# Set PANELAPPLET_SERVER_DIR default if it's not already set
+-if test "x$PANELAPPLET_SERVER_DIR" = "x" ; then
+- PANELAPPLET_SERVER_DIR="$libdir/bonobo/servers"
++AC_ARG_ENABLE([applet],
++ AS_HELP_STRING([--disable-applet],[Disable panel applet]),
++ [],[enable_applet=yes])
++
++if test $enable_applet = "yes"; then
++ PKG_CHECK_EXISTS(libpanelappletmm-2.6 >= $LIBPANELAPPLETMM_VERSION,
++ [
++ AC_DEFINE(HAVE_PANELAPPLETMM, 1, [Define to 1 if panelapplet is available])
++ have_panelapplet="yes"
++ PKG_CHECK_MODULES(LIBPANELAPPLETMM, [libpanelappletmm-2.6 >= $LIBPANELAPPLETMM_VERSION])
++ ], [
++ have_panelapplet="no"]
++ )
++
++ #
++ # If libpanelapplet available, use it to find .server install location.
++ #
++ if test "x$prefix" = "x$ac_default_prefix"; then
++ PANELAPPLET_LIBDIR=`$PKG_CONFIG --variable=libdir libpanelapplet-2.0`
++ fi
++ if test "x$PANELAPPLET_LIBDIR" != "x"; then
++ PANELAPPLET_SERVER_DIR="$PANELAPPLET_LIBDIR/bonobo/servers"
++ fi
++ # Set PANELAPPLET_SERVER_DIR default if it's not already set
++ if test "x$PANELAPPLET_SERVER_DIR" = "x" ; then
++ PANELAPPLET_SERVER_DIR="$libdir/bonobo/servers"
++ fi
+ fi
++
++AM_CONDITIONAL(HAVE_PANELAPPLETMM, test $have_panelapplet = "yes")
+ AC_SUBST(PANELAPPLET_SERVER_DIR)
+
+ #
+@@ -227,4 +233,4 @@ Options:
+ Spellchecking support: ${FIXED_GTKSPELL}
+ GNOME Panel Applet support: ${have_panelapplet}
+
+-"
+\ No newline at end of file
++"
+--
+1.6.2.3
+
diff --git a/app-misc/gnote/files/gnote-0.3.1-boost-update-v10.patch b/app-misc/gnote/files/gnote-0.3.1-boost-update-v10.patch
new file mode 100644
index 00000000..46acd778
--- /dev/null
+++ b/app-misc/gnote/files/gnote-0.3.1-boost-update-v10.patch
@@ -0,0 +1,575 @@
+From 31e5a0c83a4f4707e8dd401f2d4065cc094e1735 Mon Sep 17 00:00:00 2001
+From: Priit Laes <plaes@plaes.org>
+Date: Wed, 6 May 2009 09:53:45 +0300
+Subject: [PATCH 1/2] Update boost.m4 to latest version from http://repo.or.cz/w/boost.m4.git
+
+---
+ m4/boost.m4 | 361 ++++++++++++++++++++++++++++++++++++++++++-----------------
+ 1 files changed, 257 insertions(+), 104 deletions(-)
+
+diff --git a/m4/boost.m4 b/m4/boost.m4
+index 551f263..c4ba5ec 100644
+--- a/m4/boost.m4
++++ b/m4/boost.m4
+@@ -1,11 +1,18 @@
+ # boost.m4: Locate Boost headers and libraries for autoconf-based projects.
+-# Copyright (C) 2007 Benoit Sigoure <tsuna@lrde.epita.fr>
++# Copyright (C) 2007, 2008, 2009 Benoit Sigoure <tsuna@lrde.epita.fr>
+ #
+ # This program is free software: you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation, either version 3 of the License, or
+ # (at your option) any later version.
+ #
++# Additional permission under section 7 of the GNU General Public
++# License, version 3 ("GPLv3"):
++#
++# If you convey this file as part of a work that contains a
++# configuration script generated by Autoconf, you may do so under
++# terms of your choice.
++#
+ # This program is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+@@ -14,7 +21,7 @@
+ # You should have received a copy of the GNU General Public License
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+-# serial 4
++# serial 10
+ # Original sources can be found at http://repo.or.cz/w/boost.m4.git
+ # You can fetch the latest version of the script by doing:
+ # wget 'http://repo.or.cz/w/boost.m4.git?a=blob_plain;f=build-aux/boost.m4;hb=HEAD' -O boost.m4
+@@ -28,12 +35,36 @@
+ # find the Boost headers of a given (optional) minimum version and it will
+ # define BOOST_CPPFLAGS accordingly. It will add an option --with-boost to
+ # your configure so that users can specify non standard locations.
++# If the user's environment contains BOOST_ROOT and --with-boost was not
++# specified, --with-boost=$BOOST_ROOT is implicitly used.
+ # For more README and documentation, go to http://repo.or.cz/w/boost.m4.git
+-# Note: THESE MACRO ASSUME THAT YOU USE LIBTOOL. If you don't, don't worry,
++# Note: THESE MACROS ASSUME THAT YOU USE LIBTOOL. If you don't, don't worry,
+ # simply read the README, it will show you what to do step by step.
+
+ m4_pattern_forbid([^_?BOOST_])
+
++
++# _BOOST_SED_CPP(SED-PROGRAM, PROGRAM,
++# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
++# --------------------------------------------------------
++# Same as AC_EGREP_CPP, but leave the result in conftest.i.
++# PATTERN is *not* overquoted, as in AC_EGREP_CPP. It could be useful
++# to turn this into a macro which extracts the value of any macro.
++m4_define([_BOOST_SED_CPP],
++[AC_LANG_PREPROC_REQUIRE()dnl
++AC_REQUIRE([AC_PROG_SED])dnl
++AC_LANG_CONFTEST([AC_LANG_SOURCE([[$2]])])
++AS_IF([dnl eval is necessary to expand ac_cpp.
++dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell.
++(eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD |
++ $SED -n -e "$1" >conftest.i 2>&1],
++ [$3],
++ [$4])dnl
++rm -f conftest*
++])# AC_EGREP_CPP
++
++
++
+ # BOOST_REQUIRE([VERSION])
+ # ------------------------
+ # Look for Boost. If version is given, it must either be a literal of the form
+@@ -44,109 +75,101 @@ m4_pattern_forbid([^_?BOOST_])
+ # FIXME: Add a 2nd optional argument so that it's not fatal if Boost isn't found
+ # and add an AC_DEFINE to tell whether HAVE_BOOST.
+ AC_DEFUN([BOOST_REQUIRE],
+-[dnl First find out what kind of argument we have.
+-dnl If we have an empty argument, there is no constraint on the version of
+-dnl Boost to use. If it's a literal version number, we can split it in M4 (so
+-dnl the resulting configure script will be smaller/faster). Otherwise we do
+-dnl the splitting at runtime.
+-m4_bmatch([$1],
+- [^ *$], [m4_pushdef([BOOST_VERSION_REQ], [])dnl
+- boost_version_major=0
+- boost_version_minor=0
+- boost_version_subminor=0
+-],
+- [^[0-9]+\([-._][0-9]+\)*$],
+- [m4_pushdef([BOOST_VERSION_REQ], [ version >= $1])dnl
+- boost_version_major=m4_bregexp([$1], [^\([0-9]+\)], [\1])
+- boost_version_minor=m4_bregexp([$1], [^[0-9]+[-._]\([0-9]+\)], [\1])
+- boost_version_subminor=m4_bregexp([$1], [^[0-9]+[-._][0-9]+[-._]\([0-9]+\)], [\1])
+-],
+- [^\$[a-zA-Z_]+$],
+- [m4_pushdef([BOOST_VERSION_REQ], [])dnl
+- boost_version_major=`expr "X$1" : 'X\([[^-._]]*\)'`
+- boost_version_minor=`expr "X$1" : 'X[[0-9]]*[[-._]]\([[^-._]]*\)'`
+- boost_version_subminor=`expr "X$1" : 'X[[0-9]]*[[-._]][[0-9]]*[[-._]]\([[0-9]]*\)'`
+- case $boost_version_major:$boost_version_minor in #(
+- *: | :* | *[[^0-9]]*:* | *:*[[^0-9]]*)
+- AC_MSG_ERROR([[Invalid argument for REQUIRE_BOOST: `$1']])
+- ;;
+- esac
+-],
+- [m4_fatal(Invalid argument: `$1')]
+-)dnl
++[boost_save_IFS=$IFS
++boost_version_req="$1"
++IFS=.
++set x $boost_version_req 0 0 0
++IFS=$boost_save_IFS
++shift
++boost_version_req=`expr "$[1]" '*' 100000 + "$[2]" '*' 100 + "$[3]"`
+ AC_ARG_WITH([boost],
+ [AS_HELP_STRING([--with-boost=DIR],
+- [prefix of Boost]BOOST_VERSION_REQ[ @<:@guess@:>@])])dnl
++ [prefix of Boost $1 @<:@guess@:>@])])dnl
++AC_ARG_VAR([BOOST_ROOT],[Location of Boost installation])dnl
++# If BOOST_ROOT is set and the user has not provided a value to
++# --with-boost, then treat BOOST_ROOT as if it the user supplied it.
++if test x"$BOOST_ROOT" != x; then
++ if test x"$with_boost" = x; then
++ AC_MSG_NOTICE([Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT])
++ with_boost=$BOOST_ROOT
++ else
++ AC_MSG_NOTICE([Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost])
++ fi
++fi
+ AC_SUBST([DISTCHECK_CONFIGURE_FLAGS],
+ ["$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"])
+- AC_CACHE_CHECK([for Boost headers[]BOOST_VERSION_REQ],
++boost_save_CPPFLAGS=$CPPFLAGS
++ AC_CACHE_CHECK([for Boost headers version >= $boost_version_req],
+ [boost_cv_inc_path],
+ [boost_cv_inc_path=no
+ AC_LANG_PUSH([C++])dnl
+- boost_subminor_chk=
+- test x"$boost_version_subminor" != x \
+- && boost_subminor_chk="|| (B_V_MAJ == $boost_version_major \
+-&& B_V_MIN == $boost_version_minor \
+-&& B_V_SUB < $boost_version_subminor)"
+- for boost_inc in "$with_boost/include" '' \
+- /opt/local/include /usr/local/include /opt/include /usr/include \
+- "$with_boost" C:/Boost/include
+- do
+- test -e "$boost_inc" || continue
+- # Ensure that version.hpp exists: we're going to read it. Moreover,
+- # Boost could be reachable thanks to the default include path so we can
+- # mistakenly accept a wrong include path without this check.
+- test -e "$boost_inc/boost/version.hpp" || continue
+- boost_save_CPPFLAGS=$CPPFLAGS
+- test x"$boost_inc" != x && CPPFLAGS="$CPPFLAGS -I$boost_inc"
+ m4_pattern_allow([^BOOST_VERSION$])dnl
+- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <boost/version.hpp>
+-#ifndef BOOST_VERSION
++ AC_LANG_CONFTEST([AC_LANG_PROGRAM([[#include <boost/version.hpp>
++#if !defined BOOST_VERSION
+ # error BOOST_VERSION is not defined
++#elif BOOST_VERSION < $boost_version_req
++# error Boost headers version < $boost_version_req
+ #endif
+-#define B_V_MAJ (BOOST_VERSION / 100000)
+-#define B_V_MIN (BOOST_VERSION / 100 % 1000)
+-#define B_V_SUB (BOOST_VERSION % 100)
+-#if (B_V_MAJ < $boost_version_major) \
+- || (B_V_MAJ == $boost_version_major \
+- && B_V_MIN < $boost_version_minor) $boost_subminor_chk
+-# error Boost headers version < $1
+-#endif
+-]])], [boost_cv_inc_path=yes], [boost_cv_version=no])
+- CPPFLAGS=$boost_save_CPPFLAGS
++]])])
++ # If the user provided a value to --with-boost, use it and only it.
++ case $with_boost in #(
++ ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
++ /usr/include C:/Boost/include;; #(
++ *) set x "$with_boost/include" "$with_boost";;
++ esac
++ shift
++ for boost_dir
++ do
++ # Without --layout=system, Boost (or at least some versions) installs
++ # itself in <prefix>/include/boost-<version>. This inner loop helps to
++ # find headers in such directories.
++ # I didn't indent this loop on purpose (to avoid over-indented code)
++ for boost_inc in "$boost_dir" "$boost_dir"/boost-*
++ do
++ test x"$boost_inc" != x && CPPFLAGS="$CPPFLAGS -I$boost_inc"
++ AC_COMPILE_IFELSE([], [boost_cv_inc_path=yes], [boost_cv_version=no])
+ if test x"$boost_cv_inc_path" = xyes; then
+ if test x"$boost_inc" != x; then
+ boost_cv_inc_path=$boost_inc
+ fi
+- break
++ break 2
+ fi
+ done
++ done
+ AC_LANG_POP([C++])dnl
+ ])
+ case $boost_cv_inc_path in #(
+- no)
+- AC_MSG_ERROR([Could not find Boost headers[]BOOST_VERSION_REQ])
+- ;;#(
+- yes)
+- BOOST_CPPFLAGS=
+- ;;#(
+- *)
+- BOOST_CPPFLAGS="-I$boost_cv_inc_path"
+- ;;
++ no) AC_MSG_ERROR([cannot find Boost headers version >= $boost_version_req]);;#(
++ yes) BOOST_CPPFLAGS=;;#(
++ *) AC_SUBST([BOOST_CPPFLAGS], ["-I$boost_cv_inc_path"]);;
+ esac
+-AC_SUBST([BOOST_CPPFLAGS])dnl
+ AC_CACHE_CHECK([for Boost's header version],
+ [boost_cv_lib_version],
+ [m4_pattern_allow([^BOOST_LIB_VERSION$])dnl
+- boost_cv_lib_version=unknown
+- boost_sed_version='/^.*BOOST_LIB_VERSION.*"\([[^"]]*\)".*$/!d;s//\1/'
+- boost_version_hpp="$boost_inc/boost/version.hpp"
+- test -e "$boost_version_hpp" \
+- && boost_cv_lib_version=`sed "$boost_sed_version" "$boost_version_hpp"`
+- ])
+-m4_popdef([BOOST_VERSION_REQ])dnl
++ _BOOST_SED_CPP([/^boost-lib-version = /{s///;s/\"//g;p;g;}],
++ [#include <boost/version.hpp>
++boost-lib-version = BOOST_LIB_VERSION],
++ [boost_cv_lib_version=`cat conftest.i`])])
++ # e.g. "134" for 1_34_1 or "135" for 1_35
++ boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
++ case $boost_major_version in #(
++ '' | *[[!0-9]]*)
++ AC_MSG_ERROR([Invalid value: boost_major_version=$boost_major_version])
++ ;;
++ esac
++CPPFLAGS=$boost_save_CPPFLAGS
+ ])# BOOST_REQUIRE
+
++# BOOST_STATIC()
++# --------------
++# Add the "--enable-static-boost" configure argument. If this argument is given
++# on the command line, static versions of the libraries will be looked up.
++AC_DEFUN([BOOST_STATIC],
++ [AC_ARG_ENABLE([static-boost],
++ [AC_HELP_STRING([--enable-static-boost],
++ [Prefer the static boost libraries over the shared ones [no]])],
++ [enable_static_boost=yes],
++ [enable_static_boost=no])])# BOOST_STATIC
+
+ # BOOST_FIND_HEADER([HEADER-NAME], [ACTION-IF-NOT-FOUND], [ACTION-IF-FOUND])
+ # --------------------------------------------------------------------------
+@@ -173,11 +196,14 @@ AC_LANG_POP([C++])dnl
+ ])# BOOST_FIND_HEADER
+
+
+-# BOOST_FIND_LIB([LIB-NAME], [PREFERRED-RT-OPT], [HEADER-NAME], [CXX-TEST], [CXX-PROLOGUE])
++# BOOST_FIND_LIB([LIB-NAME], [PREFERRED-RT-OPT], [HEADER-NAME], [CXX-TEST],
++# [CXX-PROLOGUE])
+ # -------------------------------------------------------------------------
+ # Look for the Boost library LIB-NAME (e.g., LIB-NAME = `thread', for
+ # libboost_thread). Check that HEADER-NAME works and check that
+-# libboost_LIB-NAME can link with the code CXX-TEST.
++# libboost_LIB-NAME can link with the code CXX-TEST. The optional argument
++# CXX-PROLOGUE can be used to include some C++ code before the `main'
++# function.
+ #
+ # Invokes BOOST_FIND_HEADER([HEADER-NAME]) (see above).
+ #
+@@ -194,6 +220,7 @@ AC_LANG_POP([C++])dnl
+ AC_DEFUN([BOOST_FIND_LIB],
+ [AC_REQUIRE([_BOOST_FIND_COMPILER_TAG])dnl
+ AC_REQUIRE([BOOST_REQUIRE])dnl
++AC_REQUIRE([BOOST_STATIC])dnl
+ AC_REQUIRE([_BOOST_GUESS_WHETHER_TO_USE_MT])dnl
+ AC_LANG_PUSH([C++])dnl
+ AS_VAR_PUSHDEF([Boost_lib], [boost_cv_lib_$1])dnl
+@@ -216,10 +243,18 @@ AC_CACHE_CHECK([for the Boost $1 library], [Boost_lib],
+ mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X$2" : 'Xmt-*\(.*\)'`;; #(
+ *) boost_mt=; boost_rtopt=$2;;
+ esac
+- # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
++ if test $enable_static_boost = yes; then
++ boost_rtopt="s$boost_rtopt"
++ fi
++ # Find the proper debug variant depending on what we've been asked to find.
+ case $boost_rtopt in #(
+- *[[a-z0-9A-Z]]*) boost_rtopt="-$boost_rtopt";;
++ *d*) boost_rt_d=$boost_rtopt;; #(
++ *[[sgpn]]*) # Insert the `d' at the right place (in between `sg' and `pn')
++ boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
++ *) boost_rt_d='-d';;
+ esac
++ # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
++ test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
+ $boost_guess_use_mt && boost_mt=-mt
+ # Look for the abs path the static archive.
+ # $libext is computed by Libtool but let's make sure it's non empty.
+@@ -227,8 +262,8 @@ AC_CACHE_CHECK([for the Boost $1 library], [Boost_lib],
+ AC_MSG_ERROR([the libext variable is empty, did you invoke Libtool?])
+ boost_save_ac_objext=$ac_objext
+ # Generate the test file.
+- AC_LANG_CONFTEST([AC_LANG_PROGRAM([#include <$3>
+- $5], [$4])])
++ AC_LANG_CONFTEST([AC_LANG_PROGRAM([#include <$3>
++$5], [$4])])
+ dnl Optimization hacks: compiling C++ is slow, especially with Boost. What
+ dnl we're trying to do here is guess the right combination of link flags
+ dnl (LIBS / LDFLAGS) to use a given library. This can take several
+@@ -258,9 +293,8 @@ for boost_mt_ in $boost_mt -mt ''; do
+ for boost_rtopt_ in $boost_rtopt '' -d; do
+ for boost_lib in \
+ boost_$1$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
+- boost_$1$boost_tag_$boost_mt_$boost_ver_ \
+ boost_$1$boost_tag_$boost_rtopt_$boost_ver_ \
+- boost_$1$boost_tag_$boost_mt_ \
++ boost_$1$boost_tag_$boost_mt_$boost_ver_ \
+ boost_$1$boost_tag_$boost_ver_
+ do
+ # Avoid testing twice the same lib
+@@ -332,6 +366,14 @@ AC_LANG_POP([C++])dnl
+ # version of each library (among other things).
+
+
++# BOOST_ASIO()
++# ------------
++# Look for Boost.Asio (new in Boost 1.35).
++AC_DEFUN([BOOST_ASIO],
++[AC_REQUIRE([BOOST_SYSTEM])dnl
++BOOST_FIND_HEADER([boost/asio.hpp])])
++
++
+ # BOOST_BIND()
+ # ------------
+ # Look for Boost.Bind
+@@ -361,12 +403,26 @@ AC_DEFUN([BOOST_DATE_TIME],
+
+ # BOOST_FILESYSTEM([PREFERRED-RT-OPT])
+ # ------------------------------------
+-# Look for Boost.Filesystem. For the documentation of PREFERRED-RT-OPT, see the
+-# documentation of BOOST_FIND_LIB above.
+-# Do not check for boost/filesystem.hpp because this file was introduced in 1.34.
++# Look for Boost.Filesystem. For the documentation of PREFERRED-RT-OPT, see
++# the documentation of BOOST_FIND_LIB above.
++# Do not check for boost/filesystem.hpp because this file was introduced in
++# 1.34.
+ AC_DEFUN([BOOST_FILESYSTEM],
+-[BOOST_FIND_LIB([filesystem], [$1],
++[# Do we have to check for Boost.System? This link-time dependency was
++# added as of 1.35.0. If we have a version <1.35, we must not attempt to
++# find Boost.System as it didn't exist by then.
++if test $boost_major_version -ge 135; then
++BOOST_SYSTEM([$1])
++fi # end of the Boost.System check.
++boost_filesystem_save_LIBS=$LIBS
++boost_filesystem_save_LDFLAGS=$LDFLAGS
++m4_pattern_allow([^BOOST_SYSTEM_(LIBS|LDFLAGS)$])dnl
++LIBS="$LIBS $BOOST_SYSTEM_LIBS"
++LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS"
++BOOST_FIND_LIB([filesystem], [$1],
+ [boost/filesystem/path.hpp], [boost::filesystem::path p;])
++LIBS=$boost_filesystem_save_LIBS
++LDFLAGS=$boost_filesystem_save_LDFLAGS
+ ])# BOOST_FILESYSTEM
+
+
+@@ -423,6 +479,27 @@ AC_DEFUN([BOOST_HASH],
+ [BOOST_FIND_HEADER([boost/functional/hash.hpp])])
+
+
++# BOOST_LAMBDA()
++# --------------
++# Look for Boost.Lambda
++AC_DEFUN([BOOST_LAMBDA],
++[BOOST_FIND_HEADER([boost/lambda/lambda.hpp])])
++
++
++# BOOST_OPTIONAL()
++# ----------------
++# Look for Boost.Optional
++AC_DEFUN([BOOST_OPTIONAL],
++[BOOST_FIND_HEADER([boost/optional.hpp])])
++
++
++# BOOST_PREPROCESSOR()
++# --------------------
++# Look for Boost.Preprocessor
++AC_DEFUN([BOOST_PREPROCESSOR],
++[BOOST_FIND_HEADER([boost/preprocessor/repeat.hpp])])
++
++
+ # BOOST_PROGRAM_OPTIONS([PREFERRED-RT-OPT])
+ # -----------------------------------------
+ # Look for Boost.Program_options. For the documentation of PREFERRED-RT-OPT, see
+@@ -452,6 +529,18 @@ AC_DEFUN([BOOST_REGEX],
+ ])# BOOST_REGEX
+
+
++# BOOST_SERIALIZATION([PREFERRED-RT-OPT])
++# ---------------------------------------
++# Look for Boost.Serialization. For the documentation of PREFERRED-RT-OPT, see
++# the documentation of BOOST_FIND_LIB above.
++AC_DEFUN([BOOST_SERIALIZATION],
++[BOOST_FIND_LIB([serialization], [$1],
++ [boost/archive/text_oarchive.hpp],
++ [std::ostream* o = 0; // Cheap way to get an ostream...
++ boost::archive::text_oarchive t(*o);])
++])# BOOST_SIGNALS
++
++
+ # BOOST_SIGNALS([PREFERRED-RT-OPT])
+ # ---------------------------------
+ # Look for Boost.Signals. For the documentation of PREFERRED-RT-OPT, see the
+@@ -472,6 +561,13 @@ BOOST_FIND_HEADER([boost/shared_ptr.hpp])
+ ])
+
+
++# BOOST_STATICASSERT()
++# --------------------
++# Look for Boost.StaticAssert
++AC_DEFUN([BOOST_STATICASSERT],
++[BOOST_FIND_HEADER([boost/static_assert.hpp])])
++
++
+ # BOOST_STRING_ALGO()
+ # -------------------
+ # Look for Boost.StringAlgo
+@@ -480,6 +576,18 @@ AC_DEFUN([BOOST_STRING_ALGO],
+ ])
+
+
++# BOOST_SYSTEM([PREFERRED-RT-OPT])
++# --------------------------------
++# Look for Boost.System. For the documentation of PREFERRED-RT-OPT, see the
++# documentation of BOOST_FIND_LIB above. This library was introduced in Boost
++# 1.35.0.
++AC_DEFUN([BOOST_SYSTEM],
++[BOOST_FIND_LIB([system], [$1],
++ [boost/system/error_code.hpp],
++ [boost::system::error_code e; e.clear();])
++])# BOOST_SYSTEM
++
++
+ # BOOST_TEST([PREFERRED-RT-OPT])
+ # ------------------------------
+ # Look for Boost.Test. For the documentation of PREFERRED-RT-OPT, see the
+@@ -487,8 +595,10 @@ AC_DEFUN([BOOST_STRING_ALGO],
+ AC_DEFUN([BOOST_TEST],
+ [m4_pattern_allow([^BOOST_CHECK$])dnl
+ BOOST_FIND_LIB([unit_test_framework], [$1],
+- [boost/test/unit_test.hpp], [BOOST_CHECK(2==2);],
+- [using boost::unit_test::test_suite; test_suite* init_unit_test_suite( int argc, char ** argv ) { return NULL;}])
++ [boost/test/unit_test.hpp], [BOOST_CHECK(2 == 2);],
++ [using boost::unit_test::test_suite;
++ test_suite* init_unit_test_suite(int argc, char ** argv)
++ { return NULL; }])
+ ])# BOOST_TEST
+
+
+@@ -543,6 +653,13 @@ AC_DEFUN([BOOST_TUPLE],
+ [BOOST_FIND_HEADER([boost/tuple/tuple.hpp])])
+
+
++# BOOST_TYPETRAITS()
++# --------------------
++# Look for Boost.TypeTraits
++AC_DEFUN([BOOST_TYPETRAITS],
++[BOOST_FIND_HEADER([boost/type_traits.hpp])])
++
++
+ # BOOST_UTILITY()
+ # ---------------
+ # Look for Boost.Utility (noncopyable, result_of, base-from-member idiom,
+@@ -561,12 +678,33 @@ BOOST_FIND_HEADER([boost/variant.hpp])])
+
+ # BOOST_WAVE([PREFERRED-RT-OPT])
+ # ------------------------------
++# NOTE: If you intend to use Wave/Spirit with thread support, make sure you
++# call BOOST_THREADS first.
+ # Look for Boost.Wave. For the documentation of PREFERRED-RT-OPT, see the
+ # documentation of BOOST_FIND_LIB above.
+ AC_DEFUN([BOOST_WAVE],
+-[BOOST_FIND_LIB([wave], [$1],
++[AC_REQUIRE([BOOST_FILESYSTEM])dnl
++AC_REQUIRE([BOOST_DATE_TIME])dnl
++boost_wave_save_LIBS=$LIBS
++boost_wave_save_LDFLAGS=$LDFLAGS
++m4_pattern_allow([^BOOST_((FILE)?SYSTEM|DATE_TIME|THREAD)_(LIBS|LDFLAGS)$])dnl
++LIBS="$LIBS $BOOST_SYSTEM_LIBS $BOOST_FILESYSTEM_LIBS $BOOST_DATE_TIME_LIBS\
++$BOOST_THREAD_LIBS"
++LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS $BOOST_FILESYSTEM_LDFLAGS\
++$BOOST_DATE_TIME_LDFLAGS $BOOST_THREAD_LDFLAGS"
++BOOST_FIND_LIB([wave], [$1],
+ [boost/wave.hpp],
+- [boost::wave::token_id id; get_token_name(id);])])
++ [boost::wave::token_id id; get_token_name(id);])
++LIBS=$boost_wave_save_LIBS
++LDFLAGS=$boost_wave_save_LDFLAGS
++])# BOOST_WAVE
++
++
++# BOOST_XPRESSIVE()
++# -----------------
++# Look for Boost.Xpressive (new since 1.36.0).
++AC_DEFUN([BOOST_XPRESSIVE],
++[BOOST_FIND_HEADER([boost/xpressive/xpressive.hpp])])
+
+
+ # ----------------- #
+@@ -669,8 +807,9 @@ AC_CACHE_CHECK([for the toolset name used by Boost for $CXX], [boost_cv_lib_tag]
+ # como, edg, kcc, bck, mp, sw, tru, xlc
+ # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
+ # the same defines as GCC's).
+- # TODO: Move the test on GCC 4.3 up once it's released.
++ # TODO: Move the test on GCC 4.4 up once it's released.
+ for i in \
++ _BOOST_gcc_test(4, 3) \
+ _BOOST_gcc_test(4, 2) \
+ _BOOST_gcc_test(4, 1) \
+ _BOOST_gcc_test(4, 0) \
+@@ -688,7 +827,7 @@ AC_CACHE_CHECK([for the toolset name used by Boost for $CXX], [boost_cv_lib_tag]
+ "defined __ICC && (defined __unix || defined __unix__) @ il" \
+ "defined __ICL @ iw" \
+ "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
+- _BOOST_gcc_test(4, 3) \
++ _BOOST_gcc_test(4, 4) \
+ _BOOST_gcc_test(2, 95) \
+ "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
+ "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
+@@ -706,11 +845,21 @@ AC_CACHE_CHECK([for the toolset name used by Boost for $CXX], [boost_cv_lib_tag]
+ ]])], [boost_cv_lib_tag=$boost_tag; break], [])
+ done
+ AC_LANG_POP([C++])dnl
+-])
+- if test x"$boost_cv_lib_tag" = xunknown; then
+- AC_MSG_WARN([[could not figure out which toolset name to use for $CXX]])
+- boost_cv_lib_tag=
+- fi
++ case $boost_cv_lib_tag in #(
++ # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
++ # to "gcc41" for instance.
++ *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
++ gcc*)
++ # We can specify multiple tags in this variable because it's used by
++ # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
++ boost_cv_lib_tag="$boost_cv_lib_tag -gcc"
++ ;; #(
++ unknown)
++ AC_MSG_WARN([[could not figure out which toolset name to use for $CXX]])
++ boost_cv_lib_tag=
++ ;;
++ esac
++])dnl end of AC_CACHE_CHECK
+ ])# _BOOST_FIND_COMPILER_TAG
+
+
+@@ -765,3 +914,7 @@ dnl as it would interfere with the next link command.
+ rm -f core conftest.err conftest_ipa8_conftest.oo \
+ conftest$ac_exeext m4_ifval([$1], [conftest.$ac_ext])[]dnl
+ ])# _BOOST_AC_LINK_IFELSE
++
++# Local Variables:
++# mode: autoconf
++# End:
+--
+1.6.2.5
+
diff --git a/app-misc/gnote/files/gnote-0.3.1-fix-ldflags-as-needed.patch b/app-misc/gnote/files/gnote-0.3.1-fix-ldflags-as-needed.patch
new file mode 100644
index 00000000..d4ae226b
--- /dev/null
+++ b/app-misc/gnote/files/gnote-0.3.1-fix-ldflags-as-needed.patch
@@ -0,0 +1,28 @@
+From 369d1772621be67db37175144e45353c96c077d6 Mon Sep 17 00:00:00 2001
+From: Priit Laes <plaes@plaes.org>
+Date: Wed, 6 May 2009 10:05:06 +0300
+Subject: [PATCH 2/2] Fix build with LDFLAGS="-Wl,--as-needed"
+
+---
+ src/Makefile.am | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 28d02e9..4096e48 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -13,9 +13,9 @@ AM_CPPFLAGS=@LIBGTKMM_CFLAGS@ @LIBGLIBMM_CFLAGS@ \
+
+ AM_LDFLAGS=-Wl,--export-dynamic
+
+-GNOTE_LIBS = @LIBGLIBMM_LIBS@ @LIBGTKMM_LIBS@ @LIBXMLPP_LIBS@ \
++GNOTE_LIBS = libgnote.a @LIBGLIBMM_LIBS@ @LIBGTKMM_LIBS@ @LIBXMLPP_LIBS@ \
+ @GCONF_LIBS@ @BOOST_FILESYSTEM_LIBS@ @BOOST_REGEX_LIBS@ \
+- @GTKSPELL_LIBS@ @GTK_LIBS@ libgnote.a \
++ @GTKSPELL_LIBS@ @GTK_LIBS@ \
+ -luuid -L$(top_builddir)/libtomboy -ltomboy
+
+ noinst_LIBRARIES = libgnote.a
+--
+1.6.2.5
+
diff --git a/app-misc/gnote/gnote-0.2.0.ebuild b/app-misc/gnote/gnote-0.3.1.ebuild
index 39f5f81e..bf97547d 100644
--- a/app-misc/gnote/gnote-0.2.0.ebuild
+++ b/app-misc/gnote/gnote-0.3.1.ebuild
@@ -2,7 +2,9 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-inherit gnome2
+EAPI="2"
+
+inherit autotools eutils gnome2
DESCRIPTION="Desktop note-taking application"
HOMEPAGE="http://www.gnome.org/"
@@ -24,6 +26,7 @@ RDEPEND=">=x11-libs/gtk+-2.14
sys-libs/e2fsprogs-libs
>=gnome-base/gnome-panel-2"
# Build with dbus is currently broken
+# >=dev-cpp/libpanelappletmm-2.22
# dbus? ( >=dev-libs/dbus-glib-0.70 )"
DEPEND="${DEPEND}
dev-util/pkgconfig
@@ -32,9 +35,26 @@ DEPEND="${DEPEND}
DOCS="AUTHORS ChangeLog NEWS README TODO"
-# FIXME: boost macros sucks, hence can't configure with as-needed
+src_prepare() {
+ gnome2_src_prepare
+
+ # Update boost macro
+ epatch ${FILESDIR}/${P}-boost-update-v10.patch
+
+ # Fix failure ot build with -Wl,--as-needed
+ epatch ${FILESDIR}/${P}-fix-ldflags-as-needed.patch
+
+ # Fix automagic dependency on libpanelappletmm
+ epatch "${FILESDIR}/${P}-automagic.patch"
+
+ intltoolize --force --copy --automake || die "intltoolize failed"
+ eautoreconf
+}
+
pkg_setup() {
G2CONF="${G2CONF}
--disable-dbus
+ --disable-applet
+ --disable-static
$(use_enable debug)"
}