/[gentoo-x86]/app-text/apvlv/apvlv-0.1.2-r1.ebuild
Gentoo

Contents of /app-text/apvlv/apvlv-0.1.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Thu Jul 26 05:41:52 2012 UTC (2 years, 1 month ago) by jdhore
Branch: MAIN
Changes since 1.3: +2 -2 lines
x86 stable wrt bug 418639

(Portage version: 2.2.0_alpha120/cvs/Linux i686, RepoMan options: --force)

1 mgorny 1.2 # Copyright 1999-2012 Gentoo Foundation
2 ssuominen 1.1 # Distributed under the terms of the GNU General Public License v2
3 jdhore 1.4 # $Header: /var/cvsroot/gentoo-x86/app-text/apvlv/apvlv-0.1.2-r1.ebuild,v 1.3 2012/05/04 03:33:11 jdhore Exp $
4 ssuominen 1.1
5     EAPI=4
6    
7     inherit eutils cmake-utils
8    
9     MY_P="${P}-Source"
10     DESCRIPTION="Alf's PDF Viewer Like Vim"
11     HOMEPAGE="http://naihe2010.github.com/apvlv/"
12 mgorny 1.2 SRC_URI="mirror://github/naihe2010/${PN}/${MY_P}.tar.gz"
13 ssuominen 1.1
14     LICENSE="GPL-2"
15     SLOT="0"
16 jdhore 1.4 KEYWORDS="~amd64 x86"
17 ssuominen 1.1 IUSE="debug djvu"
18    
19     RDEPEND=">=x11-libs/gtk+-2.10.4:2
20     >=app-text/poppler-0.18[cairo]
21     djvu? ( app-text/djvu )"
22     DEPEND="${RDEPEND}
23 jdhore 1.3 virtual/pkgconfig"
24 ssuominen 1.1
25     S=${WORKDIR}/${MY_P}
26    
27     src_prepare() {
28     # bug #349979
29     EPATCH_OPTS="-l" epatch \
30     "${FILESDIR}"/${PN}-0.1.0-poppler-0.16.patch \
31     "${FILESDIR}"/${PN}-0.1.2-poppler-0.18.patch
32    
33     # Remove prefixes so it works with the cmake-utils eclass
34     sed -i -e "s:APVLV_::" CMakeLists.txt src/CMakeLists.txt || die
35    
36     # Don't install tex file
37     sed -i -e "s:Startup.tex::" CMakeLists.txt || die
38     }
39    
40     src_configure() {
41     mycmakeargs=(
42     -DSYSCONFDIR=/etc/${PN}
43     -DDOCDIR=/usr/share/${PN}
44     -DMANDIR=/usr/share/man
45     -DWITH_UMD=OFF
46     $(cmake-utils_use_enable debug)
47     $(cmake-utils_use_with djvu)
48     )
49     cmake-utils_src_configure
50     }
51    
52     src_install() {
53     cmake-utils_src_install
54     dodoc AUTHORS NEWS README THANKS TODO
55     newicon icons/pdf.png ${PN}.png
56     make_desktop_entry ${PN} "Alf's PDF Viewer Like Vim" ${PN} "Office;Viewer"
57     }

  ViewVC Help
Powered by ViewVC 1.1.20