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