From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CD5DB139083 for ; Thu, 14 Dec 2017 16:37:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 28426E0FE2; Thu, 14 Dec 2017 16:37:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E711DE0FE2 for ; Thu, 14 Dec 2017 16:37:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0593033BF0F for ; Thu, 14 Dec 2017 16:37:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BCC0AAE75 for ; Thu, 14 Dec 2017 16:37:29 +0000 (UTC) From: "Andrey Grozin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrey Grozin" Message-ID: <1513269440.e3cd1d9452a5698bbfaf7066cd8f6f8effca41d0.grozin@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/fbreader/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/fbreader/fbreader-0.99.4-r4.ebuild X-VCS-Directories: app-text/fbreader/ X-VCS-Committer: grozin X-VCS-Committer-Name: Andrey Grozin X-VCS-Revision: e3cd1d9452a5698bbfaf7066cd8f6f8effca41d0 X-VCS-Branch: master Date: Thu, 14 Dec 2017 16:37:29 +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: 2d657c2d-0bcf-421f-9e1a-30965f41a8cd X-Archives-Hash: fca0c9b4c8c61365bbed2b129cf07dd8 commit: e3cd1d9452a5698bbfaf7066cd8f6f8effca41d0 Author: Andrey Grozin gentoo org> AuthorDate: Thu Dec 14 16:37:20 2017 +0000 Commit: Andrey Grozin gentoo org> CommitDate: Thu Dec 14 16:37:20 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3cd1d94 app-text/fbreader: use libunibreak instead of liblinebreak Package-Manager: Portage-2.3.18, Repoman-2.3.6 app-text/fbreader/fbreader-0.99.4-r4.ebuild | 91 +++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/app-text/fbreader/fbreader-0.99.4-r4.ebuild b/app-text/fbreader/fbreader-0.99.4-r4.ebuild new file mode 100644 index 00000000000..a828ea2670c --- /dev/null +++ b/app-text/fbreader/fbreader-0.99.4-r4.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils multilib flag-o-matic + +DESCRIPTION="E-Book Reader. Supports many e-book formats" +HOMEPAGE="http://www.fbreader.org/" +SRC_URI="http://www.fbreader.org/files/desktop/${PN}-sources-${PV}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="debug" + +RDEPEND=" + app-arch/bzip2 + dev-libs/expat + dev-libs/libunibreak + dev-libs/fribidi + dev-db/sqlite + net-misc/curl + sys-libs/zlib + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + dev-qt/qtnetwork:5[ssl] +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +src_prepare() { + # Let portage decide about the compiler + sed -e "/^CC = /d" \ + -i makefiles/arch/desktop.mk || die "removing CC line failed" + + # let portage strip the binary + sed -e '/@strip/d' \ + -i fbreader/desktop/Makefile || die + + # Respect *FLAGS + sed -e "s/^CFLAGS = -pipe/CFLAGS +=/" \ + -i makefiles/arch/desktop.mk || die "CFLAGS sed failed" + sed -e "/^ CFLAGS +=/ d" \ + -i makefiles/config.mk || die "CFLAGS sed failed" + sed -e "/^ LDFLAGS += -s$/ d" \ + -i makefiles/config.mk || die "sed failed" + sed -e "/^LDFLAGS =$/ d" \ + -i makefiles/arch/desktop.mk || die "sed failed" + + echo "TARGET_ARCH = desktop" > makefiles/target.mk + echo "LIBDIR = /usr/$(get_libdir)" >> makefiles/target.mk + + echo "UI_TYPE = qt4" >> makefiles/target.mk + sed -e 's:MOC = moc-qt4:MOC = /usr/bin/moc:' \ + -i makefiles/arch/desktop.mk || die "updating desktop.mk failed" + + if use debug; then + echo "TARGET_STATUS = debug" >> makefiles/target.mk + else + echo "TARGET_STATUS = release" >> makefiles/target.mk + fi + + # bug #452636 + eapply "${FILESDIR}"/${P}.patch + # bug #515698 + eapply "${FILESDIR}"/${P}-qreal-cast.patch + # bug #516794 + eapply "${FILESDIR}"/${P}-mimetypes.patch + # bug #437262 + eapply "${FILESDIR}"/${P}-ld-bfd.patch + # bug #592588 + eapply -p0 "${FILESDIR}"/${P}-gcc6.patch + + eapply "${FILESDIR}"/${P}-qt5.patch + append-cflags -std=c++11 + + eapply_user +} + +src_compile() { + # bug #484516 + emake -j1 +} + +src_install() { + default + dosym FBReader /usr/bin/fbreader +}