diff options
author | Andrey Grozin <grozin@gentoo.org> | 2018-01-11 22:48:47 +0700 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2018-01-11 22:48:47 +0700 |
commit | 4ea23d69ad0e2567f32002ec5f8351bdb65c0e9e (patch) | |
tree | 8a25a32d1859aa7e56eb1b0099c245944585f428 /app-text/fbreader/fbreader-0.99.4-r5.ebuild | |
parent | sys-kernel/aufs-sources: Bump to latest genpatches and linux release (diff) | |
download | gentoo-4ea23d69ad0e2567f32002ec5f8351bdb65c0e9e.tar.gz gentoo-4ea23d69ad0e2567f32002ec5f8351bdb65c0e9e.tar.bz2 gentoo-4ea23d69ad0e2567f32002ec5f8351bdb65c0e9e.zip |
app-text/fbreader: fix building on the 17.1 profile
Closes: https://bugs.gentoo.org/644084
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-text/fbreader/fbreader-0.99.4-r5.ebuild')
-rw-r--r-- | app-text/fbreader/fbreader-0.99.4-r5.ebuild | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/app-text/fbreader/fbreader-0.99.4-r5.ebuild b/app-text/fbreader/fbreader-0.99.4-r5.ebuild new file mode 100644 index 000000000000..41a203a894ea --- /dev/null +++ b/app-text/fbreader/fbreader-0.99.4-r5.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils multilib flag-o-matic qmake-utils + +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 +" + +# bugs #452636, #515698, #516794, #437262, #592588 +PATCHES=( "${FILESDIR}"/${P}-combined.patch ) + +src_prepare() { + default + + append-cflags -std=c++11 + + # 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 "LDFLAGS sed failed" + sed -e "/^LDFLAGS =$/d" \ + -i makefiles/arch/desktop.mk || die "LDFLAGS sed failed" + + # Qt5 moc + sed -e "s:MOC = moc-qt4:MOC = $(qt5_get_bindir)/moc:" \ + -i makefiles/arch/desktop.mk || die "updating desktop.mk failed" + + echo "TARGET_ARCH = desktop" > makefiles/target.mk + echo "LIBDIR = /usr/$(get_libdir)" >> makefiles/target.mk + + echo "UI_TYPE = qt4" >> makefiles/target.mk + + if use debug; then + echo "TARGET_STATUS = debug" >> makefiles/target.mk + else + echo "TARGET_STATUS = release" >> makefiles/target.mk + fi +} + +src_compile() { + # bug #484516 + emake -j1 +} + +src_install() { + default + dosym FBReader /usr/bin/fbreader +} |