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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu May 2 16:18:50 2013 UTC (2 weeks, 6 days ago) by dilfridge
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -1 lines
Add second patch needed for automake-1.13, bug 467626

(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key 84AD142F)

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/xournal/xournal-0.4.7.ebuild,v 1.7 2013/05/01 21:58:23 dilfridge Exp $
4
5 EAPI=5
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 epatch "${FILESDIR}/${PN}-0.4.7-am113.patch"
62 epatch "${FILESDIR}/${PN}-0.4.7-am113-2.patch"
63 epatch "${FILESDIR}/${PN}-0.4.7-ar.patch"
64 eautoreconf
65 }
66
67 src_install() {
68 emake DESTDIR="${D}" install
69 emake DESTDIR="${D}" desktop-install
70
71 dodoc ChangeLog AUTHORS README
72 dohtml -r html-doc/*
73 }

  ViewVC Help
Powered by ViewVC 1.1.13