blob: a6c7a88248e205bd3bd388568caa13333f7b5c36 (
plain) (
blame)
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
WEBAPP_NO_AUTO_INSTALL=yes
WEBAPP_MANUAL_SLOT=yes
inherit java-war webapp
MY_PN="${PN/apache-}"
DESCRIPTION="Popular, blazing fast open source search platform from the Apache Lucene project"
HOMEPAGE="https://lucene.apache.org/solr"
SRC_URI="https://archive.apache.org/dist/lucene/${MY_PN}/${PV}/${MY_PN}-${PV}.tgz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples doc"
RDEPEND="virtual/jre"
S="${WORKDIR}/${MY_PN}-${PV}"
pkg_setup() {
webapp_pkg_setup
}
src_install() {
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
insinto "/usr/share/${PN}"
use examples && doins -r example
use doc && doins -r docs
dodoc CHANGES.txt NOTICE.txt README.txt
webapp_src_preinst
insinto "${MY_HOSTROOTDIR}/${PN}"
doins -r server
webapp_src_install
}
|