diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2009-04-04 10:06:38 +0000 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2009-04-04 10:06:38 +0000 |
commit | 79f1149a042c3b0123ebf55eb3e8e1d3ab5dd989 (patch) | |
tree | 8685b25f3445eba6f432109e427752e150b06004 /app-text/fbreader/fbreader-0.10.7.ebuild | |
parent | Version bump. (diff) | |
download | gentoo-2-79f1149a042c3b0123ebf55eb3e8e1d3ab5dd989.tar.gz gentoo-2-79f1149a042c3b0123ebf55eb3e8e1d3ab5dd989.tar.bz2 gentoo-2-79f1149a042c3b0123ebf55eb3e8e1d3ab5dd989.zip |
Version bump per bug #264781
(Portage version: 2.2_rc28/cvs/Linux x86_64)
Diffstat (limited to 'app-text/fbreader/fbreader-0.10.7.ebuild')
-rw-r--r-- | app-text/fbreader/fbreader-0.10.7.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/app-text/fbreader/fbreader-0.10.7.ebuild b/app-text/fbreader/fbreader-0.10.7.ebuild new file mode 100644 index 000000000000..4ccce2cad3cb --- /dev/null +++ b/app-text/fbreader/fbreader-0.10.7.ebuild @@ -0,0 +1,69 @@ +# 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.7.ebuild,v 1.1 2009/04/04 10:06:38 alexxy 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 ~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() { + confutils_require_one qt3 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" + + 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 + elif 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 + 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 +} |