diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2011-10-19 13:52:55 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2011-10-19 13:52:55 +0000 |
commit | 1fa21c45188831f12a4559dc8d606989840848cc (patch) | |
tree | 40186ecfb4136383b3b273e0bd5f196fb09eee70 /app-text/apvlv/apvlv-0.1.2-r1.ebuild | |
parent | bump (diff) | |
download | gentoo-2-1fa21c45188831f12a4559dc8d606989840848cc.tar.gz gentoo-2-1fa21c45188831f12a4559dc8d606989840848cc.tar.bz2 gentoo-2-1fa21c45188831f12a4559dc8d606989840848cc.zip |
Fix building with app-text/poppler >= 0.18 wrt #385057 by Diego Elio Pettenò
(Portage version: 2.2.0_alpha69/cvs/Linux x86_64)
Diffstat (limited to 'app-text/apvlv/apvlv-0.1.2-r1.ebuild')
-rw-r--r-- | app-text/apvlv/apvlv-0.1.2-r1.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/app-text/apvlv/apvlv-0.1.2-r1.ebuild b/app-text/apvlv/apvlv-0.1.2-r1.ebuild new file mode 100644 index 000000000000..6508e7c1ecf9 --- /dev/null +++ b/app-text/apvlv/apvlv-0.1.2-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/apvlv/apvlv-0.1.2-r1.ebuild,v 1.1 2011/10/19 13:52:55 ssuominen Exp $ + +EAPI=4 + +inherit eutils cmake-utils + +MY_P="${P}-Source" +DESCRIPTION="Alf's PDF Viewer Like Vim" +HOMEPAGE="http://naihe2010.github.com/apvlv/" +SRC_URI="https://github.com/downloads/naihe2010/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug djvu" + +RDEPEND=">=x11-libs/gtk+-2.10.4:2 + >=app-text/poppler-0.18[cairo] + djvu? ( app-text/djvu )" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + # bug #349979 + EPATCH_OPTS="-l" epatch \ + "${FILESDIR}"/${PN}-0.1.0-poppler-0.16.patch \ + "${FILESDIR}"/${PN}-0.1.2-poppler-0.18.patch + + # Remove prefixes so it works with the cmake-utils eclass + sed -i -e "s:APVLV_::" CMakeLists.txt src/CMakeLists.txt || die + + # Don't install tex file + sed -i -e "s:Startup.tex::" CMakeLists.txt || die +} + +src_configure() { + mycmakeargs=( + -DSYSCONFDIR=/etc/${PN} + -DDOCDIR=/usr/share/${PN} + -DMANDIR=/usr/share/man + -DWITH_UMD=OFF + $(cmake-utils_use_enable debug) + $(cmake-utils_use_with djvu) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc AUTHORS NEWS README THANKS TODO + newicon icons/pdf.png ${PN}.png + make_desktop_entry ${PN} "Alf's PDF Viewer Like Vim" ${PN} "Office;Viewer" +} |