Permalink
Browse files

+ fbreader-0.99.2: updated and fixed ebuild from ::gentoo

removed 'gtk' USE flag as it doesn't compile and upstream ceased to
support it
  • Loading branch information...
l29ah committed Oct 9, 2012
1 parent b21e31b commit 25820b810b86ae4cf02ea0ffd32bd417714e0da9
Showing with 80 additions and 0 deletions.
  1. +1 −0 app-text/fbreader/Manifest
  2. +67 −0 app-text/fbreader/fbreader-0.99.2.ebuild
  3. +12 −0 app-text/fbreader/metadata.xml
@@ -0,0 +1 @@
+DIST fbreader-sources-0.99.2.tgz 2423279 SHA256 e753010dc041396ddfd385a4a7fb7e01b219644015fe5776253aeeca0e13a650 SHA512 73d86e08162e29e86a9f0fa687c11bcf5b089340799c06b3924b413d048ca817ba5ab97102479df5d1c5ed29e66479b99c0cde3fd49b51ef9f6032b25b523d80 WHIRLPOOL b782e8ff924580071bac8d2a77e21284805f469dd40ed30ce589fef1e38b46d0d245af8a98b45cec4f6a84055c132139b49acc7a63b3a6be42b6251005179169
@@ -0,0 +1,67 @@
+# 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.1.ebuild,v 1.1 2012/09/04 11:18:36 alexxy 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="dev-libs/expat
+ dev-libs/liblinebreak
+ net-misc/curl
+ dev-libs/fribidi
+ app-arch/bzip2
+ dev-db/sqlite
+ x11-libs/qt-gui:4
+ x11-libs/qt-core: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"
+
+ #Tidy up the .desktop file
+ sed -e "s:^Name=E-book reader:Name=FBReader:" \
+ -e "s:^Name\[ru\]=.*$:Name\[ru\]=FBReader:" \
+ -e "s:^Icon=FBReader.png:Icon=FBReader:" \
+ -i fbreader/desktop/desktop || die "tidying desktop 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
+
+ # qt4
+ echo "UI_TYPE = qt4" >> makefiles/target.mk
+ sed -e 's:CFLAGS =:CFLAGS = $(shell pkg-config --cflags glib-2.0):' \
+ -e 's:UILIBS = -lQtCore:UILIBS = $(shell pkg-config --libs QtCore) -lQtCore:' \
+ -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() {
+ emake DESTDIR="${D}" install || die "install failed"
+ dosym /usr/bin/FBReader /usr/bin/fbreader
+}
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>kde</herd>
+ <maintainer>
+ <email>alexxy@gentoo.org</email>
+ <name>Alexey Shvetsov</name>
+ </maintainer>
+ <longdescription lang="en">
+ FBReader is an e-book reader for various platforms.
+ </longdescription>
+</pkgmetadata>

0 comments on commit 25820b8

Please sign in to comment.