blob: 2372fce5e7da4b9419f1473ef475fb14894fa18b (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils autotools
DESCRIPTION="The GNU Image-Finding Tool"
HOMEPAGE="http://www.gnu.org/software/gift/"
SRC_URI="http://alpha.gnu.org/gnu/gift/${P}.tar.gz"
LICENSE="LGPL-2.1"
IUSE="doc"
KEYWORDS="~amd64 ~x86"
DEPEND="media-gfx/imagemagick
dev-perl/XML-DOM
dev-perl/XML-XQL
dev-perl/Text-Iconv"
RDEPEND="${DEPEND}"
SLOT="0"
GIFT_USER="gift"
GIFT_HOME="/home/${GIFT_USER}/"
GIFT_INIT="gnu-gift"
src_unpack() {
unpack ${A}
cd ${S}
use doc || epatch ${FILESDIR}/${PN}-0.1.14-noDoc.patch
epatch ${FILESDIR}/${PN}-0.1.14-ps_params.patch
# epatch ${FILESDIR}/${PN}-0.1.14-patch-tid.patch
epatch ${FILESDIR}/${PN}-0.1.14-extra_qualif.patch
}
src_compile() {
eautoreconf
# econf --enable-multithreading \
# --enable-bayesian \
# --datadir=/usr/share/${PN} \
# --includedir=/usr/include/${PN} || die "econf failed"
econf --enable-multi-threading \
--enable-bayesian || die "econf failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR=${D} install || die
dodoc README NEWS AUTHORS
newconfd ${FILESDIR}/${PN}.confd ${GIFT_INIT}
newinitd ${FILESDIR}/${PN}.initd ${GIFT_INIT}
enewuser ${GIFT_USER} -1 /bin/bash ${GIFT_HOME} users
}
|