/[gentoo-x86]/app-text/zathura/zathura-0.2.1.ebuild
Gentoo

Contents of /app-text/zathura/zathura-0.2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Fri Jan 11 16:37:35 2013 UTC (18 months, 2 weeks ago) by ssuominen
Branch: MAIN
Changes since 1.8: +2 -2 lines
Keyword ~arm wrt #368757 (tested with cortex-a8, hardfloat)

(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/zathura/zathura-0.2.1.ebuild,v 1.8 2013/01/11 16:31:04 ssuominen Exp $
4
5 EAPI=5
6 inherit eutils fdo-mime multilib toolchain-funcs virtualx
7
8 DESCRIPTION="A highly customizable and functional document viewer"
9 HOMEPAGE="http://pwmt.org/projects/zathura/"
10 SRC_URI="http://pwmt.org/projects/${PN}/download/${P}.tar.gz"
11
12 LICENSE="ZLIB"
13 SLOT="0"
14 KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
15 IUSE="+doc sqlite test"
16
17 RDEPEND=">=dev-libs/girara-0.1.4:2
18 >=dev-libs/glib-2
19 x11-libs/cairo
20 sqlite? ( dev-db/sqlite:3 )"
21 DEPEND="${RDEPEND}
22 sys-devel/gettext
23 virtual/pkgconfig
24 doc? ( dev-python/docutils )
25 test? ( dev-libs/check )"
26
27 pkg_setup() {
28 myzathuraconf=(
29 ZATHURA_GTK_VERSION=2
30 WITH_SQLITE=$(usex sqlite 1 0)
31 PREFIX="${EPREFIX}"/usr
32 LIBDIR='${PREFIX}'/$(get_libdir)
33 RSTTOMAN="$(use doc && type -P rst2man.py)"
34 CC="$(tc-getCC)"
35 SFLAGS=""
36 VERBOSE=1
37 DESTDIR="${D}"
38 )
39 }
40
41 src_prepare() {
42 # http://bugs.pwmt.org/msg816
43 # these are 0 byte files in dist tarball wrt #434140
44 rm *.{1,5}
45 }
46
47 src_compile() {
48 emake "${myzathuraconf[@]}"
49 }
50
51 src_test() {
52 Xemake test
53 }
54
55 src_install() {
56 emake "${myzathuraconf[@]}" install
57 dodoc AUTHORS
58 }
59
60 pkg_postinst() {
61 fdo-mime_desktop_database_update
62 }
63
64 pkg_postrm() {
65 fdo-mime_desktop_database_update
66 }

  ViewVC Help
Powered by ViewVC 1.1.20