1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="An application built on Xapian, consisting of indexers and a CGI search frontend"
7 SRC_URI="http://www.oligarchy.co.uk/xapian/${PV}/xapian-omega-${PV}.tar.xz"
8 HOMEPAGE="https://xapian.org/"
9 S="${WORKDIR}/xapian-omega-${PV}"
13 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
16 DEPEND="dev-libs/xapian:0/30
23 emake DESTDIR="${D}" install
25 # Protect /etc/omega.conf
26 echo "CONFIG_PROTECT=\"/etc/omega.conf\"" > "${T}"/20xapian-omega
27 doenvd "${T}"/20xapian-omega
28 dodoc AUTHORS ChangeLog INSTALL NEWS README TODO
30 # Directory containing Xapian databases:
31 keepdir /var/lib/omega/data
33 # Directory containing OmegaScript templates:
34 keepdir /var/lib/omega/templates
35 mv "${S}"/templates/* "${D}"/var/lib/omega/templates || die
37 # Directory to write Omega logs to:
38 keepdir /var/log/omega
40 # Directory containing any cdb files for the $lookup OmegaScript command:
41 keepdir /var/lib/omega/cdb