forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-text/xapian-omega: version bump to 1.4.0
Package-Manager: portage-2.2.28
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI="5" | ||
|
||
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="http://www.xapian.org/" | ||
S="${WORKDIR}/xapian-omega-${PV}" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" | ||
IUSE="" | ||
|
||
DEPEND="dev-libs/xapian:0/30 | ||
dev-lang/perl | ||
dev-libs/libpcre | ||
sys-libs/zlib" | ||
RDEPEND="${DEPEND}" | ||
|
||
src_install () { | ||
emake DESTDIR="${D}" 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 | ||
|
||
#move docs to /usr/share/doc/${PF}. | ||
mv "${D}/usr/share/doc/xapian-omega" "${D}/usr/share/doc/${PF}" || die | ||
|
||
# Directory containing Xapian databases: | ||
keepdir /var/lib/omega/data | ||
|
||
# Directory containing OmegaScript templates: | ||
keepdir /var/lib/omega/templates | ||
mv "${S}"/templates/* "${D}"/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 | ||
} |