summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDror Levin <spatz@gentoo.org>2010-03-06 19:37:00 +0000
committerDror Levin <spatz@gentoo.org>2010-03-06 19:37:00 +0000
commit7d64e3ca5ab6f410144a008306fef3005dd055e8 (patch)
tree7335186ac43b177c0ad8414a4077197b46760b9b /app-text/fbreader
parentVersion bump (bug 307935), remove old. (diff)
downloadgentoo-2-7d64e3ca5ab6f410144a008306fef3005dd055e8.tar.gz
gentoo-2-7d64e3ca5ab6f410144a008306fef3005dd055e8.tar.bz2
gentoo-2-7d64e3ca5ab6f410144a008306fef3005dd055e8.zip
Version bump, bug 307877.
(Portage version: 2.2_rc65/cvs/Linux x86_64)
Diffstat (limited to 'app-text/fbreader')
-rw-r--r--app-text/fbreader/ChangeLog7
-rw-r--r--app-text/fbreader/fbreader-0.12.7.ebuild64
2 files changed, 70 insertions, 1 deletions
diff --git a/app-text/fbreader/ChangeLog b/app-text/fbreader/ChangeLog
index 0230a4507849..3b20f6691d79 100644
--- a/app-text/fbreader/ChangeLog
+++ b/app-text/fbreader/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-text/fbreader
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/fbreader/ChangeLog,v 1.14 2010/02/27 23:29:19 alexxy Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/fbreader/ChangeLog,v 1.15 2010/03/06 19:37:00 spatz Exp $
+
+*fbreader-0.12.7 (06 Mar 2010)
+
+ 06 Mar 2010; Dror Levin <spatz@gentoo.org> +fbreader-0.12.7.ebuild:
+ Version bump, bug 307877.
*fbreader-0.12.5.1 (27 Feb 2010)
diff --git a/app-text/fbreader/fbreader-0.12.7.ebuild b/app-text/fbreader/fbreader-0.12.7.ebuild
new file mode 100644
index 000000000000..effc4c97a2ee
--- /dev/null
+++ b/app-text/fbreader/fbreader-0.12.7.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/fbreader/fbreader-0.12.7.ebuild,v 1.1 2010/03/06 19:37:00 spatz Exp $
+
+EAPI=2
+
+inherit confutils
+
+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 )
+ "
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ confutils_require_one qt4 gtk
+}
+
+src_prepare() {
+ #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 "s:^ LDFLAGS += -s::" makefiles/config.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
+ elif 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 || die "install failed"
+ dosym /usr/bin/FBReader /usr/bin/fbreader
+}