forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
auto-multiple-choice-1.3.0.ebuild
69 lines (60 loc) · 1.74 KB
/
auto-multiple-choice-1.3.0.ebuild
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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit toolchain-funcs perl-functions latex-package
DESCRIPTION="Create and manage multiple choice questionnaries, including automated marking"
HOMEPAGE="http://home.gna.org/auto-qcm/"
SRC_URI="http://download.gna.org/auto-qcm/${PN}_${PV}_sources.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
CDEPEND="
app-text/texlive[doc,dvi2tty,dvipdfm,extra,graphics,png,pstricks,science,truetype,xml,X,luatex,xetex,humanities,omega,publishers,l10n_fr]
app-text/poppler:=
dev-perl/XML-LibXML
media-libs/netpbm
media-libs/opencv
"
DEPEND="${CDEPEND}
app-text/dblatex
app-text/docbook-xml-simple-dtd:*
app-text/docbook-xsl-stylesheets
"
RDEPEND="${CDEPEND}
dev-lang/perl:=
dev-perl/Glib-Object-Introspection
dev-perl/gtk2-perl
dev-perl/Gtk2-Notify
media-gfx/imagemagick
dev-perl/XML-Writer
dev-perl/Archive-Zip
dev-perl/DBI
dev-perl/Text-CSV
dev-perl/DBD-SQLite
dev-perl/Net-CUPS
dev-perl/Email-Address
dev-perl/Email-MIME
dev-perl/Email-Sender
"
PATCHES=(
"${FILESDIR}/${PN}-1.3.0-desktop.patch"
"${FILESDIR}/${PN}-1.3.0-conf.patch"
)
src_compile() {
perl_set_version
export VENDOR_LIB PVR
export TEXINPUTS="/usr/share/dblatex/latex/style:/usr/share/dblatex/latex/misc:/usr/share/dblatex/latex/graphics:"
export MAKEOPTS="-j1"
# when doing a parallel build, the package is acting decidedly odd
# e.g., the build seems to succeed while actually stuff fails
# and subsequent error messages do not have any relation to the real problem
# So let's keep this also for easier debugging
emake \
GCC_NETPBM="-I/usr/include/netpbm/ -lnetpbm" \
GCC="$(tc-getCC)" \
GCC_PP="$(tc-getCXX)"
}
src_install() {
default
}