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 3E9A513888F for ; Thu, 22 Oct 2015 10:13:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4A28AE07E6; Thu, 22 Oct 2015 10:13:18 +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 B669DE07E6 for ; Thu, 22 Oct 2015 10:13:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 96941340845 for ; Thu, 22 Oct 2015 10:13:16 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A01F415C9 for ; Thu, 22 Oct 2015 10:13:12 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1445508790.e10be8fca2dbab93315cd90eb28245194ebf7c44.jlec@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/bibus/, app-text/bibus/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/bibus/Manifest app-text/bibus/bibus-1.5.2-r1.ebuild app-text/bibus/bibus-1.5.2-r2.ebuild app-text/bibus/files/bibus-1.5.2-bibus.cfg.patch X-VCS-Directories: app-text/bibus/files/ app-text/bibus/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: e10be8fca2dbab93315cd90eb28245194ebf7c44 X-VCS-Branch: master Date: Thu, 22 Oct 2015 10:13:12 +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: ed9fa793-47cb-47d9-9d36-f157c9989033 X-Archives-Hash: ddf5ddc9772549d7810324db8c0f6c2b commit: e10be8fca2dbab93315cd90eb28245194ebf7c44 Author: Justin Lecher gentoo org> AuthorDate: Thu Oct 22 10:08:49 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Thu Oct 22 10:13:10 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e10be8fc app-text/bibus: Fix for gentoo specific paths and fix for lo-4 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=485396 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=562214 Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher gentoo.org> app-text/bibus/Manifest | 1 + ...bibus-1.5.2-r1.ebuild => bibus-1.5.2-r2.ebuild} | 10 +++++-- app-text/bibus/files/bibus-1.5.2-bibus.cfg.patch | 31 ++++++++++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) diff --git a/app-text/bibus/Manifest b/app-text/bibus/Manifest index 04ed182..ad942e9 100644 --- a/app-text/bibus/Manifest +++ b/app-text/bibus/Manifest @@ -1 +1,2 @@ +DIST bibus-1.5.2-lo-4.patch.xz 13196 SHA256 b7147230929c304ab357c6a725c5cabbd577607e6200df968cdf2c057603c8a1 SHA512 68b90574e9dd0bb3e2cc89c539ff35febdf4ac37dfb65c06709d21b62fdda0108c93f05d37ab96bf52c4f99bbe20caa361d562c297b05dc7ea37404eea659fd1 WHIRLPOOL d807d81277fac722c50d98575939142a6f1f5a1e9eb88dec0acf0053349f54ecce7d7dcf070742b143bbf166704994b401eeb1e1ecd3e32c351d9bc41c09d1d8 DIST bibus_1.5.2.orig.tar.gz 5411889 SHA256 c6c66d6bdce403b7791bf58cc16eeaae9f0e9d1c3f0ba8411f9f3e694d740f02 SHA512 33d091dacc707859a11010fcba57691a3e2726ae7579d601720b4398f7be29b580be978da8cd058fab491ec5b52dd3ce33c964a8d5077f8e80d8f0f387ffa2c4 WHIRLPOOL 964f13902a8a20d9e838784cf1f0a032bb2327cd28f3b2470c35a7394ae7f7536a7884d798a8308049a02f6976183ffb1c56cc4d8b20dce13f98033668a90d38 diff --git a/app-text/bibus/bibus-1.5.2-r1.ebuild b/app-text/bibus/bibus-1.5.2-r2.ebuild similarity index 88% rename from app-text/bibus/bibus-1.5.2-r1.ebuild rename to app-text/bibus/bibus-1.5.2-r2.ebuild index 17f6d3b..f4de2be 100644 --- a/app-text/bibus/bibus-1.5.2-r1.ebuild +++ b/app-text/bibus/bibus-1.5.2-r2.ebuild @@ -11,7 +11,10 @@ inherit eutils fdo-mime multilib python-r1 versionator DESCRIPTION="Bibliographic and reference management software, integrates with L/OO.o and MS Word" HOMEPAGE="http://bibus-biblio.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}-biblio/${PN}_${PV}.orig.tar.gz" +SRC_URI=" + mirror://sourceforge/${PN}-biblio/${PN}_${PV}.orig.tar.gz + https://dev.gentoo.org/~jlec/distfiles/${P}-lo-4.patch.xz + " LICENSE="GPL-2" SLOT="0" @@ -45,7 +48,10 @@ pkg_setup() { } src_prepare() { - epatch "${FILESDIR}"/${P}-install.patch + epatch \ + "${FILESDIR}"/${P}-install.patch \ + "${FILESDIR}"/${P}-bibus.cfg.patch \ + "${WORKDIR}"/${P}-lo-4.patch } src_compile() { :; } diff --git a/app-text/bibus/files/bibus-1.5.2-bibus.cfg.patch b/app-text/bibus/files/bibus-1.5.2-bibus.cfg.patch new file mode 100644 index 0000000..bfba0c0 --- /dev/null +++ b/app-text/bibus/files/bibus-1.5.2-bibus.cfg.patch @@ -0,0 +1,31 @@ + bibusStart.py | 8 +++++--- + 1 file changed, 5 insertions(+), 3 deletions(-) + +diff --git a/bibusStart.py b/bibusStart.py +index edfc19f..99c5381 100644 +--- a/bibusStart.py ++++ b/bibusStart.py +@@ -17,12 +17,14 @@ + # along with Bibus; if not, write to the Free Software + # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + # +-import ConfigParser,os,sys,urllib,urlparse ++import ConfigParser,os,sys,urllib,urlparse,site + cp=ConfigParser.ConfigParser() + fileName = sys.argv[0] + while os.path.islink(fileName): fileName = os.readlink(fileName) + sourcedir = os.path.abspath( os.path.dirname(fileName) ) +-cp.read( os.path.join(sourcedir,'bibus.cfg') ) ++bibus_sitedir = os.path.join(site.getsitepackages()[0], 'bibus') ++bibus_cfg = os.path.join(bibus_sitedir, 'bibus.cfg') ++cp.read(bibus_cfg) + # We read first, then if it is not null we convert to absolute path + # otherwise, empty path will be converted to the current directory path + python = cp.get('PATH','python') +@@ -69,5 +71,5 @@ else: + except KeyError: + os.environ[LIBPATH] = oopath + # starting Bibus +-os.execl( python , os.path.basename(python) , QUOTE+ os.path.join(sourcedir,'bibus.py') +QUOTE ) ++os.execl( python , os.path.basename(python) , QUOTE+ os.path.join(bibus_sitedir,'bibus.py') +QUOTE ) +