You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
43 lines
1.2 KiB
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI="8"
|
|
|
|
DESCRIPTION="An application built on Xapian, consisting of indexers and a CGI search frontend"
|
|
SRC_URI="http://www.oligarchy.co.uk/xapian/${PV}/xapian-omega-${PV}.tar.xz"
|
|
HOMEPAGE="https://xapian.org/"
|
|
S="${WORKDIR}/xapian-omega-${PV}"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
|
IUSE=""
|
|
|
|
DEPEND="~dev-libs/xapian-${PV}:0/30
|
|
dev-lang/perl
|
|
dev-libs/libpcre
|
|
sys-libs/zlib"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" PREFIX="${EPREFIX}" install
|
|
|
|
# Protect /etc/omega.conf
|
|
echo "CONFIG_PROTECT=\"/etc/omega.conf\"" > "${T}"/20xapian-omega
|
|
doenvd "${T}"/20xapian-omega
|
|
dodoc AUTHORS ChangeLog INSTALL NEWS README TODO
|
|
|
|
# Directory containing Xapian databases:
|
|
keepdir /var/lib/omega/data
|
|
|
|
# Directory containing OmegaScript templates:
|
|
keepdir /var/lib/omega/templates
|
|
mv "${S}"/templates/* "${ED}"/var/lib/omega/templates || die
|
|
|
|
# Directory to write Omega logs to:
|
|
keepdir /var/log/omega
|
|
|
|
# Directory containing any cdb files for the $lookup OmegaScript command:
|
|
keepdir /var/lib/omega/cdb
|
|
}
|