/[gentoo-x86]/app-text/xournal/xournal-9999.ebuild
Gentoo

Contents of /app-text/xournal/xournal-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jul 9 02:34:32 2012 UTC (2 years, 2 months ago) by mr_bones_
Branch: MAIN
Changes since 1.2: +2 -2 lines
whitespace

(Portage version: 2.1.10.65/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/xournal/xournal-9999.ebuild,v 1.2 2012/07/05 22:53:15 dilfridge Exp $
4
5 EAPI=4
6
7 GCONF_DEBUG=no
8
9 inherit gnome2 autotools
10
11 DESCRIPTION="Xournal is an application for notetaking, sketching, and keeping a journal using a stylus."
12 HOMEPAGE="http://xournal.sourceforge.net/"
13
14 LICENSE="GPL-2"
15
16 SLOT="0"
17 IUSE="+pdf vanilla"
18
19 if [[ "${PV}" != "9999" ]]; then
20 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz !vanilla? ( http://dev.gentoo.org/~dilfridge/distfiles/${PN}-${PVR}-gentoo.patch.xz )"
21 KEYWORDS="~amd64 ~x86"
22 else
23 inherit git-2
24 SRC_URI=""
25 KEYWORDS=""
26 if use vanilla; then
27 EGIT_REPO_URI="git://xournal.git.sourceforge.net/gitroot/xournal/xournal"
28 else
29 EGIT_REPO_URI="git://gitorious.org/gentoo-stuff/xournal-gentoo.git"
30 EGIT_BRANCH="gentoo"
31 fi
32 fi
33
34 COMMONDEPEND="
35 app-text/poppler[cairo]
36 dev-libs/atk
37 dev-libs/glib
38 gnome-base/libgnomecanvas
39 media-libs/freetype
40 media-libs/fontconfig
41 sys-libs/zlib
42 x11-libs/cairo
43 x11-libs/gdk-pixbuf
44 x11-libs/gtk+:2
45 x11-libs/pango
46 "
47 RDEPEND="${COMMONDEPEND}
48 pdf? ( app-text/poppler[utils] app-text/ghostscript-gpl )
49 "
50 DEPEND="${COMMONDEPEND}
51 virtual/pkgconfig
52 "
53
54 src_prepare() {
55 if ! use vanilla && [[ "${PV}" != "9999" ]]; then
56 epatch "${WORKDIR}"/${PN}-${PVR}-gentoo.patch
57 fi
58 if ! use vanilla; then
59 sed -e "s:n http:n Gentoo release ${PVR}\\\\n http:" -i "${S}"/src/xo-interface.c
60 fi
61 eautoreconf
62 }
63
64 src_install() {
65 emake DESTDIR="${D}" install
66 emake DESTDIR="${D}" desktop-install
67
68 dodoc ChangeLog AUTHORS README
69 dohtml -r html-doc/*
70 }

  ViewVC Help
Powered by ViewVC 1.1.20