blob: 4cc3da106b824c1ae814d4bcae7a497683f89a55 (
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/hyperestraier/hyperestraier-1.4.10-r1.ebuild,v 1.7 2012/06/03 23:24:09 zmedico Exp $
inherit java-pkg-opt-2 multilib
IUSE="debug java mecab ruby"
DESCRIPTION="a full-text search system for communities"
HOMEPAGE="http://fallabs.com/hyperestraier/"
SRC_URI="http://fallabs.com/hyperestraier/${P}.tar.gz"
LICENSE="LGPL-2.1"
KEYWORDS="amd64 ppc sparc x86"
SLOT="0"
RDEPEND=">=dev-db/qdbm-1.8.75
sys-libs/zlib
java? ( >=virtual/jre-1.4 )
mecab? ( app-text/mecab )
ruby? ( dev-lang/ruby )"
DEPEND="${RDEPEND}
java? ( >=virtual/jdk-1.4 )"
src_unpack() {
unpack ${A}
cd "${S}"
# fix for insecure runpath warning.
sed -i "/^LDENV/d" Makefile.in
sed -i "/^JAVACFLAGS/s:$: ${JAVACFLAGS}:" java*/Makefile.in
}
src_compile() {
econf \
`use_enable debug` \
`use_enable mecab` \
|| die
emake || die
local u d
for u in java ruby; do
if ! use ${u}; then
continue
fi
for d in ${u}native ${u}pure; do
cd ${d}
econf || die
emake || die
cd -
done
done
}
src_test() {
emake -j1 check || die
local u d
for u in java ruby; do
if ! use ${u}; then
continue
fi
for d in ${u}native; do
cd ${d}
emake -j1 check || die
cd -
done
done
}
src_install() {
emake DESTDIR="${D}" MYDOCS= install || die
dodoc ChangeLog README* THANKS
dohtml doc/*
local u d
for u in java ruby; do
if ! use ${u}; then
continue
fi
for d in ${u}native ${u}pure; do
cd ${d}
emake DESTDIR="${D}" install || die
cd -
dohtml -r doc/${d}api
done
done
if use java; then
java-pkg_dojar "${D}"/usr/$(get_libdir)/*.jar
rm -f "${D}"/usr/$(get_libdir)/*.jar
fi
rm -f "${D}"/usr/bin/*test
}
|