summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2009-02-02 22:28:07 +0000
committerAlexey Shvetsov <alexxy@gentoo.org>2009-02-02 22:28:07 +0000
commit86c4bbebeee0eb439f60602cb8cb08a76dcf8b68 (patch)
treee74a94da0919e6fb8d0c68fe6654aca9f85a0df6 /app-text
parentInitial import of liblinebreak; this fixes bug #216311 (diff)
downloadhistorical-86c4bbebeee0eb439f60602cb8cb08a76dcf8b68.tar.gz
historical-86c4bbebeee0eb439f60602cb8cb08a76dcf8b68.tar.bz2
historical-86c4bbebeee0eb439f60602cb8cb08a76dcf8b68.zip
Initial import of fbreader; this fixes bug #117021
Package-Manager: portage-2.2_rc23/cvs/Linux x86_64
Diffstat (limited to 'app-text')
-rw-r--r--app-text/fbreader/ChangeLog10
-rw-r--r--app-text/fbreader/Manifest4
-rw-r--r--app-text/fbreader/fbreader-0.10.2.ebuild87
-rw-r--r--app-text/fbreader/metadata.xml11
4 files changed, 112 insertions, 0 deletions
diff --git a/app-text/fbreader/ChangeLog b/app-text/fbreader/ChangeLog
new file mode 100644
index 000000000000..c58c9a5a105a
--- /dev/null
+++ b/app-text/fbreader/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-text/fbreader
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/fbreader/ChangeLog,v 1.1 2009/02/02 22:28:07 alexxy Exp $
+
+*fbreader-0.10.2 (02 Feb 2009)
+
+ 02 Feb 2009; Alexey Shvetsov <alexxy@gentoo.org> +metadata.xml,
+ +fbreader-0.10.2.ebuild:
+ Initial import of fbreader; this fixes bug #117021
+
diff --git a/app-text/fbreader/Manifest b/app-text/fbreader/Manifest
new file mode 100644
index 000000000000..5afa82e526db
--- /dev/null
+++ b/app-text/fbreader/Manifest
@@ -0,0 +1,4 @@
+DIST fbreader-sources-0.10.2.tgz 1599460 RMD160 7fbfcd31d0b17466acee73e736873e49aa86f0eb SHA1 6755d5b28cd9abeeb1aeb6f5776e40a15acc1c6e SHA256 e62ccbdeb02c4c95228c9837783be65b6289825253d547d3eb0d7b562612f27e
+EBUILD fbreader-0.10.2.ebuild 2595 RMD160 42c405078765f8beead85d487e11cc91ef6b1f88 SHA1 e34950e8bcd38eb21d29c5749bd34db3f97fd006 SHA256 b6667d3fb88ee286d95a07f05531b67011557d83d4040868a126214abc7671cc
+MISC ChangeLog 386 RMD160 f691b357c13ecd12279c782b6a3e9ebc7688a341 SHA1 f4de7cbc63a8bae3204a05dca8ca6c88ec5cfc78 SHA256 cd66695ab265b1192930562db69089e291bdfa97dfc32caa0d21525b2cae5489
+MISC metadata.xml 342 RMD160 5a36cfd333564f9434faba7a3dabdb7314b9f1ed SHA1 32e5c2a11eeaebfa9b371c8c555241272023bff0 SHA256 40411a6ffbafb89f137fdae86b094864147abbb5a8790f5a940553132db93134
diff --git a/app-text/fbreader/fbreader-0.10.2.ebuild b/app-text/fbreader/fbreader-0.10.2.ebuild
new file mode 100644
index 000000000000..4df28419db10
--- /dev/null
+++ b/app-text/fbreader/fbreader-0.10.2.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/fbreader/fbreader-0.10.2.ebuild,v 1.1 2009/02/02 22:28:07 alexxy Exp $
+
+EAPI=2
+
+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 ~x86"
+
+IUSE="qt3 qt4 gtk debug"
+DEPEND="dev-libs/expat
+ >=dev-libs/liblinebreak-1.0
+ net-misc/curl
+ dev-libs/fribidi
+ app-arch/bzip2
+ qt4? ( || ( x11-libs/qt-gui:4 =x11-libs/qt-4.3* ) )
+ qt3? ( =x11-libs/qt-3* )
+ gtk? ( >=x11-libs/gtk+-2.4 )
+ "
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ local toolkitsnum toolkitstypes="qt3 qt4 gtk" toolkitstype
+ declare -i toolkitsnum=0
+ for toolkitstype in ${toolkitstypes}; do
+ useq ${toolkitstype} && let toolkitsnum++
+ done
+ if [ ${toolkitsnum} -gt 1 ]; then
+ eerror
+ eerror "You can't use more than one of toolkits."
+ eerror "Select exactly one toolkits type out of these: ${toolkitstypes}"
+ eerror
+ die "Multiple toolkits types selected."
+ elif [ ${toolkitsnum} -lt 1 ]; then
+ eerror
+ eerror "Select exactly one toolkits type out of these: ${toolkitstypes}"
+ eerror
+ die "No toolkits type selected."
+ fi
+}
+
+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"
+
+ echo "TARGET_ARCH = desktop" > 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 qt3 ; then
+ # qt3
+ echo "UI_TYPE = qt" >> makefiles/target.mk
+
+ sed -i "s:MOC = moc-qt3:MOC = ${QTDIR}/bin/moc:" makefiles/arch/desktop.mk || die "updating desktop.mk failed"
+ sed -i "s:QTINCLUDE = -I /usr/include/qt3:QTINCLUDE = -I ${QTDIR}/include:" makefiles/arch/desktop.mk || die "updating desktop.mk failed"
+ sed -i "s:UILIBS = -lqt-mt:UILIBS = -L${QTDIR}/lib -lqt-mt:" 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 || die "install failed"
+ dosym /usr/bin/FBReader /usr/bin/fbreader
+}
diff --git a/app-text/fbreader/metadata.xml b/app-text/fbreader/metadata.xml
new file mode 100644
index 000000000000..e57582cb91d6
--- /dev/null
+++ b/app-text/fbreader/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <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>