diff options
Diffstat (limited to 'app-text/fbreader')
-rw-r--r-- | app-text/fbreader/ChangeLog | 8 | ||||
-rw-r--r-- | app-text/fbreader/fbreader-0.99.2.ebuild | 66 |
2 files changed, 73 insertions, 1 deletions
diff --git a/app-text/fbreader/ChangeLog b/app-text/fbreader/ChangeLog index 15b88748ed46..7ea1d817e9fa 100644 --- a/app-text/fbreader/ChangeLog +++ b/app-text/fbreader/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-text/fbreader # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/fbreader/ChangeLog,v 1.25 2012/09/04 11:18:36 alexxy Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/fbreader/ChangeLog,v 1.26 2012/10/17 08:15:36 kensington Exp $ + +*fbreader-0.99.2 (17 Oct 2012) + + 17 Oct 2012; Michael Palimaka <kensington@gentoo.org> +fbreader-0.99.2.ebuild: + Version bump. This release drops support for GTK (bug #436490), fixes a build + failure (bug #417043) and respects CFLAGS (bug #438408). *fbreader-0.99.1 (04 Sep 2012) diff --git a/app-text/fbreader/fbreader-0.99.2.ebuild b/app-text/fbreader/fbreader-0.99.2.ebuild new file mode 100644 index 000000000000..56ec57f0ea31 --- /dev/null +++ b/app-text/fbreader/fbreader-0.99.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/fbreader/fbreader-0.99.2.ebuild,v 1.1 2012/10/17 08:15:36 kensington Exp $ + +EAPI=4 + +inherit eutils multilib + +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 ~ppc ~x86" +IUSE="debug" + +DEPEND="app-arch/bzip2 + dev-libs/expat + dev-libs/liblinebreak + dev-libs/fribidi + dev-db/sqlite + net-misc/curl + sys-libs/zlib + x11-libs/qt-core:4 + x11-libs/qt-gui:4 +" +RDEPEND="${DEPEND}" + +src_prepare() { + # Still use linebreak instead of new unibreak + sed -e "s:-lunibreak:-llinebreak:" \ + -i makefiles/config.mk zlibrary/text/Makefile || die "fixing libunibreak failed" + + # Let portage decide about the compiler + sed -e "/^CC = /d" \ + -i makefiles/arch/desktop.mk || die "removing CC line failed" + + # 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 +} + +src_install() { + default + dosym /usr/bin/FBReader /usr/bin/fbreader +} |