summaryrefslogblamecommitdiff
path: root/dev-db/apache-solr/apache-solr-5.5.5.ebuild
blob: a6c7a88248e205bd3bd388568caa13333f7b5c36 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                    
                                                                  
 
      





                          
                                                                                              
                                         
                                                                                  





                      
                     























                                                  
# 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
}