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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Aug 3 12:37:04 2012 UTC (2 years, 2 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
stable on amd64 wrt bug #418639. Remove old ebuilds to make repoman happy

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/apvlv/apvlv-0.1.2.ebuild,v 1.4 2012/05/04 03:33:11 jdhore Exp $
4
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 SRC_URI="mirror://github/naihe2010/${PN}/${MY_P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="debug djvu"
18
19 RDEPEND=">=x11-libs/gtk+-2.10.4:2
20 >=app-text/poppler-0.12.3-r3[cairo]
21 <app-text/poppler-0.18
22 djvu? ( app-text/djvu )"
23 DEPEND="${RDEPEND}
24 virtual/pkgconfig"
25
26 S="${WORKDIR}/${MY_P}"
27
28 src_prepare() {
29 # bug #349979
30 EPATCH_OPTS="-l"
31 has_version ">=app-text/poppler-0.15.0" && epatch "${FILESDIR}"/${PN}-0.1.0-poppler-0.16.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