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.
87 lines
2.1 KiB
87 lines
2.1 KiB
13 years ago
|
# Copyright 1999-2010 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/www-apps/lxr/lxr-0.9.5.ebuild,v 1.7 2010/03/05 07:37:15 ulm Exp $
|
||
|
|
||
|
inherit perl-module webapp multilib eutils depend.apache
|
||
|
|
||
|
DESCRIPTION="general purpose source code indexer and cross-referener with a web-based frontend"
|
||
|
HOMEPAGE="http://sourceforge.net/projects/lxr"
|
||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
KEYWORDS="~amd64 ppc ~x86"
|
||
|
IUSE="cvs freetext mysql postgres"
|
||
|
WEBAPP_MANUAL_SLOT="yes"
|
||
|
SLOT="0"
|
||
|
|
||
|
RDEPEND="dev-util/ctags
|
||
|
freetext? ( >=www-apps/swish-e-2.1 )
|
||
|
dev-lang/perl
|
||
|
dev-perl/DBI
|
||
|
dev-perl/File-MMagic
|
||
|
cvs? ( dev-vcs/rcs )
|
||
|
postgres? ( dev-perl/DBD-Pg )
|
||
|
mysql? ( dev-perl/DBD-mysql )"
|
||
|
|
||
|
need_apache2
|
||
|
|
||
|
pkg_setup() {
|
||
|
webapp_pkg_setup
|
||
|
}
|
||
|
|
||
|
src_unpack() {
|
||
|
unpack ${A}
|
||
|
cd "${S}"
|
||
|
epatch "${FILESDIR}"/initdb-mysql.patch
|
||
|
|
||
|
sed -i \
|
||
|
-e 's|/usr/local/bin/swish-e|/usr/bin/swish-e|' \
|
||
|
-e 's|/usr/bin/ctags|/usr/bin/exuberant-ctags|' \
|
||
|
-e "s|'glimpse|#'glimpse|g" \
|
||
|
-e "s:/path/to/lib:${VENDOR_LIB}:" \
|
||
|
templates/lxr.conf
|
||
|
sed -i \
|
||
|
-e 's|Apache::Registry|ModPerl::PerlRun|' \
|
||
|
.htaccess
|
||
|
sed -i \
|
||
|
-e 's|require Local;|require LXR::Local;|' \
|
||
|
-e 's|use Local;|use LXR::Local;|' \
|
||
|
-e 's|package Local;|package LXR::Local;|' \
|
||
|
Local.pm lib/LXR/Common.pm diff find ident search source
|
||
|
}
|
||
|
|
||
|
# prevent eclasses from overriding this
|
||
|
src_compile() { :; }
|
||
|
|
||
|
src_install() {
|
||
|
perlinfo
|
||
|
webapp_src_preinst
|
||
|
|
||
|
insinto "${VENDOR_LIB}"
|
||
|
doins -r lib/LXR || die
|
||
|
insinto "${VENDOR_LIB}"/LXR
|
||
|
doins Local.pm
|
||
|
|
||
|
dodoc BUGS CREDITS.txt ChangeLog HACKING INSTALL notes .htaccess* swish-e.conf
|
||
|
|
||
|
exeinto "${MY_HTDOCSDIR}"
|
||
|
doexe diff find genxref ident search source || die
|
||
|
insinto "${MY_HTDOCSDIR}"
|
||
|
doins .htaccess* templates/* || die
|
||
|
|
||
|
webapp_configfile "${MY_HTDOCSDIR}"/lxr.conf "${MY_HTDOCSDIR}"/.htaccess
|
||
|
webapp_sqlscript mysql initdb-mysql
|
||
|
webapp_sqlscript postgresql initdb-postgres
|
||
|
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
|
||
|
webapp_hook_script "${FILESDIR}"/reconfig
|
||
|
webapp_src_install
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
webapp_pkg_postinst
|
||
|
}
|
||
|
|
||
|
pkg_prerm() {
|
||
|
webapp_pkg_prerm
|
||
|
}
|