summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2011-04-18 15:13:02 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2011-04-18 15:13:02 +0000
commitaa07515e860c92af2a7848211dfbcb1cbeefc491 (patch)
tree9d795c3ea47485571fb1e796a6cbd30a81e5baf0 /app-text/fbreader
parentunpack_makeself: catch errors from `file` (diff)
downloadgentoo-2-aa07515e860c92af2a7848211dfbcb1cbeefc491.tar.gz
gentoo-2-aa07515e860c92af2a7848211dfbcb1cbeefc491.tar.bz2
gentoo-2-aa07515e860c92af2a7848211dfbcb1cbeefc491.zip
Version bump.
(Portage version: 2.2.0_alpha30/cvs/Linux x86_64)
Diffstat (limited to 'app-text/fbreader')
-rw-r--r--app-text/fbreader/ChangeLog8
-rw-r--r--app-text/fbreader/fbreader-0.12.20.ebuild66
2 files changed, 73 insertions, 1 deletions
diff --git a/app-text/fbreader/ChangeLog b/app-text/fbreader/ChangeLog
index f2579994fca5..fee3d5456baa 100644
--- a/app-text/fbreader/ChangeLog
+++ b/app-text/fbreader/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-text/fbreader
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/fbreader/ChangeLog,v 1.19 2011/03/27 12:17:32 nirbheek Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/fbreader/ChangeLog,v 1.20 2011/04/18 15:13:02 scarabeus Exp $
+
+*fbreader-0.12.20 (18 Apr 2011)
+
+ 18 Apr 2011; Tomáš Chvátal <scarabeus@gentoo.org>
+ +fbreader-0.12.20.ebuild:
+ Version bump.
27 Mar 2011; Nirbheek Chauhan <nirbheek@gentoo.org>
fbreader-0.12.10.ebuild:
diff --git a/app-text/fbreader/fbreader-0.12.20.ebuild b/app-text/fbreader/fbreader-0.12.20.ebuild
new file mode 100644
index 000000000000..be61ee4f998c
--- /dev/null
+++ b/app-text/fbreader/fbreader-0.12.20.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/fbreader/fbreader-0.12.20.ebuild,v 1.1 2011/04/18 15:13:02 scarabeus Exp $
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="E-Book Reader. Supports many e-book formats."
+HOMEPAGE="http://www.fbreader.org/"
+SRC_URI="http://www.fbreader.org/${PN}-sources-${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+IUSE="debug gtk +qt4"
+DEPEND="dev-libs/expat
+ dev-libs/liblinebreak
+ net-misc/curl
+ dev-libs/fribidi
+ app-arch/bzip2
+ dev-db/sqlite
+ qt4? ( x11-libs/qt-gui:4 )
+ gtk? ( >=x11-libs/gtk+-2.4:2 )
+ "
+RDEPEND="${DEPEND}"
+
+REQUIRED_USE=" ^^ ( qt4 gtk )"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-gcc45.patch" # bug 317189
+
+ #Tidy up the .desktop file
+ sed -i "s:^Name=E-book reader:Name=FBReader:" fbreader/desktop/desktop || die "sed failed"
+ sed -i "s:^Name\[ru\]=.*$:Name\[ru\]=FBReader:" fbreader/desktop/desktop || die "sed failed"
+ sed -i "s:^Icon=FBReader.png:Icon=FBReader:" fbreader/desktop/desktop || die "sed failed"
+ sed -i "/^ LDFLAGS += -s$/ d" makefiles/config.mk || die "sed failed"
+ sed -i "/^LDFLAGS =$/ d" makefiles/arch/desktop.mk || die "sed failed"
+
+ echo "TARGET_ARCH = desktop" > makefiles/target.mk
+ echo "LIBDIR = /usr/$(get_libdir)" >> makefiles/target.mk
+
+ if use qt4; then
+ # qt4
+ echo "UI_TYPE = qt4" >> makefiles/target.mk
+
+ sed -i "s:MOC = moc-qt4:MOC = /usr/bin/moc:" makefiles/arch/desktop.mk || die "updating desktop.mk failed"
+ sed -i "s:UILIBS = -lQtGui:UILIBS = -L/usr/lib/qt4 -lQtGui:" makefiles/arch/desktop.mk
+ fi
+ if use gtk; then
+ # gtk
+ echo "UI_TYPE = gtk" >> makefiles/target.mk
+ fi
+
+ 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
+ dosym /usr/bin/FBReader /usr/bin/fbreader
+}