From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A52761385E0 for ; Mon, 7 Sep 2015 17:33:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D87314234; Mon, 7 Sep 2015 17:33:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BCCF614234 for ; Mon, 7 Sep 2015 17:33:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ABC0B340864 for ; Mon, 7 Sep 2015 17:33:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 153BC187 for ; Mon, 7 Sep 2015 17:33:35 +0000 (UTC) From: "Alexandre Rostovtsev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexandre Rostovtsev" Message-ID: <1441647203.3e828ee766a6ebaa5c71ed1764f7998d59c24054.tetromino@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-nntp/pan/, net-nntp/pan/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-nntp/pan/files/pan-0.139-get_pan_home.patch net-nntp/pan/pan-0.139-r1.ebuild X-VCS-Directories: net-nntp/pan/files/ net-nntp/pan/ X-VCS-Committer: tetromino X-VCS-Committer-Name: Alexandre Rostovtsev X-VCS-Revision: 3e828ee766a6ebaa5c71ed1764f7998d59c24054 X-VCS-Branch: master Date: Mon, 7 Sep 2015 17:33:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9ab66fc0-03ea-47b2-af08-4ae47c90fb97 X-Archives-Hash: 8ec1b07f3eb2e90517f6d21e8430e913 commit: 3e828ee766a6ebaa5c71ed1764f7998d59c24054 Author: Alexandre Rostovtsev gentoo org> AuthorDate: Mon Sep 7 17:29:52 2015 +0000 Commit: Alexandre Rostovtsev gentoo org> CommitDate: Mon Sep 7 17:33:23 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e828ee7 net-nntp/pan: fix newsrc-* files created in wrong place with g++-5 Gentoo-Bug: 559666 Reported-by: Holger Hoffstätte Upstream-Bug-url: https://bugzilla.gnome.org/show_bug.cgi?id=754698 Package-Manager: portage-2.2.20.1 net-nntp/pan/files/pan-0.139-get_pan_home.patch | 41 ++++++++++++++++++ net-nntp/pan/pan-0.139-r1.ebuild | 55 +++++++++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/net-nntp/pan/files/pan-0.139-get_pan_home.patch b/net-nntp/pan/files/pan-0.139-get_pan_home.patch new file mode 100644 index 0000000..6a2d5fc --- /dev/null +++ b/net-nntp/pan/files/pan-0.139-get_pan_home.patch @@ -0,0 +1,41 @@ +From cef1d28d4a27fe383a74f4e5d0286aca3a28ff99 Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev +Date: Mon, 7 Sep 2015 13:21:22 -0400 +Subject: [PATCH] file::get_pan_home() : fix for g++-5 non-CoW std::string + semantics + +https://bugzilla.gnome.org/show_bug.cgi?id=754698 +--- + pan/general/file-util.cc | 2 +- + pan/general/file-util.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/pan/general/file-util.cc b/pan/general/file-util.cc +index 4ea2e77..473e426 100644 +--- a/pan/general/file-util.cc ++++ b/pan/general/file-util.cc +@@ -77,7 +77,7 @@ file :: print_file_info (std::ostream& os, const char* file) + **** + ***/ + +-std::string ++const std::string & + file :: get_pan_home () + { + static std::string pan_home; +diff --git a/pan/general/file-util.h b/pan/general/file-util.h +index 7c211a8..4b6d04f 100644 +--- a/pan/general/file-util.h ++++ b/pan/general/file-util.h +@@ -59,7 +59,7 @@ namespace pan + * Returns the home pan directory, which falls back to $HOME/.pan2 + * if the PAN_HOME environmental variable isn't set. + */ +- std::string get_pan_home (); ++ const std::string & get_pan_home (); + + /** + * Returns an absolute filename of a file +-- +2.5.1 + diff --git a/net-nntp/pan/pan-0.139-r1.ebuild b/net-nntp/pan/pan-0.139-r1.ebuild new file mode 100644 index 0000000..382c8c2 --- /dev/null +++ b/net-nntp/pan/pan-0.139-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils + +DESCRIPTION="A newsreader for GNOME" +HOMEPAGE="http://pan.rebelbase.com/" +SRC_URI="http://pan.rebelbase.com/download/releases/${PV}/source/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="dbus gnome-keyring libnotify spell ssl" + +RDEPEND=">=dev-libs/glib-2.26:2 + >=x11-libs/gtk+-2.16:2 + dev-libs/gmime:2.6 + gnome-keyring? ( >=gnome-base/libgnome-keyring-3.2 ) + libnotify? ( >=x11-libs/libnotify-0.4.1:0= ) + spell? ( + >=app-text/enchant-1.6 + >=app-text/gtkspell-2.0.7:2 ) + ssl? ( >=net-libs/gnutls-3:0= )" + +DEPEND="${RDEPEND} + app-text/gnome-doc-utils + >=dev-util/intltool-0.35.5 + sys-devel/gettext + virtual/pkgconfig" + +DOCS="AUTHORS ChangeLog NEWS README" + +src_prepare() { + # in next release + epatch "${FILESDIR}/${P}-pan.desktop.patch" + + # g++-5 fix, https://bugzilla.gnome.org/show_bug.cgi?id=754698 + epatch "${FILESDIR}"/${PN}-0.139-get_pan_home.patch + + # upstream release was in 2012 - users may want to apply patches + epatch_user +} + +src_configure() { + econf \ + --without-gtk3 \ + $(use_with dbus) \ + $(use_enable gnome-keyring gkr) \ + $(use_with spell gtkspell) \ + $(use_enable libnotify) \ + $(use_with ssl gnutls) +}