diff options
author | Renat Lumpau <rl03@gentoo.org> | 2006-01-10 20:38:07 +0000 |
---|---|---|
committer | Renat Lumpau <rl03@gentoo.org> | 2006-01-10 20:38:07 +0000 |
commit | cb874c543bb94c555e9b0722043663e8fc744f5f (patch) | |
tree | 4a128e4a5ef475640e4647abb5dea9f8e4073910 /www-apps/lxr | |
parent | Added cvs and freetext USE flags for www-apps/lxr (diff) | |
download | gentoo-2-cb874c543bb94c555e9b0722043663e8fc744f5f.tar.gz gentoo-2-cb874c543bb94c555e9b0722043663e8fc744f5f.tar.bz2 gentoo-2-cb874c543bb94c555e9b0722043663e8fc744f5f.zip |
Version bump wrt bug #108924.
(Portage version: 2.0.53)
Diffstat (limited to 'www-apps/lxr')
-rw-r--r-- | www-apps/lxr/ChangeLog | 10 | ||||
-rw-r--r-- | www-apps/lxr/Manifest | 16 | ||||
-rw-r--r-- | www-apps/lxr/files/digest-lxr-0.9.4 | 1 | ||||
-rw-r--r-- | www-apps/lxr/files/postinstall-en.txt | 43 | ||||
-rw-r--r-- | www-apps/lxr/files/reconfig | 16 | ||||
-rw-r--r-- | www-apps/lxr/lxr-0.9.4.ebuild | 57 |
6 files changed, 130 insertions, 13 deletions
diff --git a/www-apps/lxr/ChangeLog b/www-apps/lxr/ChangeLog index fb310d320eb7..105a5955c6ed 100644 --- a/www-apps/lxr/ChangeLog +++ b/www-apps/lxr/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for www-apps/lxr -# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/lxr/ChangeLog,v 1.5 2005/05/24 14:48:49 mcummings Exp $ +# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/lxr/ChangeLog,v 1.6 2006/01/10 20:38:07 rl03 Exp $ + +*lxr-0.9.4 (10 Jan 2006) + + 10 Jan 2006; Renat Lumpau <rl03@gentoo.org> +files/postinstall-en.txt, + +files/reconfig, +lxr-0.9.4.ebuild: + Version bump wrt bug #108924. 24 May 2005; Michael Cummings <mcummings@gentoo.org> lxr-0.3.1.ebuild: dev-perl/DB_File => perl-core/DB_File diff --git a/www-apps/lxr/Manifest b/www-apps/lxr/Manifest index 37f1ce310022..d1afb3c45396 100644 --- a/www-apps/lxr/Manifest +++ b/www-apps/lxr/Manifest @@ -1,14 +1,8 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - MD5 ca02c50ca9d00154748a09796f449046 ChangeLog 1418 +MD5 8ce5e2b6e0ab9fcc6a3a116347a24204 files/digest-lxr-0.3.1 60 +MD5 079cf235c7e3710d7cfe9c99c049da15 files/digest-lxr-0.9.4 57 +MD5 1f89525a759975c52669c28450b5f23a files/postinstall-en.txt 1352 +MD5 e29006dab30804fb516da79548e917b3 files/reconfig 272 MD5 dd932f0988c68a07db8e35fce86af72a lxr-0.3.1.ebuild 1741 +MD5 51aa12e207a06609667e37037571b9b7 lxr-0.9.4.ebuild 1959 MD5 4defd726d2b03decc5b7ff21b0aac1a3 metadata.xml 225 -MD5 8ce5e2b6e0ab9fcc6a3a116347a24204 files/digest-lxr-0.3.1 60 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.0 (GNU/Linux) - -iD8DBQFCkz7mtG5z4I8BtQoRAu1+AKCKw0etJtaks4rS+2Deyhi6VvNMFACfRoIH -hgDYa9hOwCjy7U4b0VWmsgY= -=JieC ------END PGP SIGNATURE----- diff --git a/www-apps/lxr/files/digest-lxr-0.9.4 b/www-apps/lxr/files/digest-lxr-0.9.4 new file mode 100644 index 000000000000..9aacef82f7a8 --- /dev/null +++ b/www-apps/lxr/files/digest-lxr-0.9.4 @@ -0,0 +1 @@ +MD5 15846a8be01a792cfd2f6adfb90b3738 lxr-0.9.4.tgz 79867 diff --git a/www-apps/lxr/files/postinstall-en.txt b/www-apps/lxr/files/postinstall-en.txt new file mode 100644 index 000000000000..1139efd64a2f --- /dev/null +++ b/www-apps/lxr/files/postinstall-en.txt @@ -0,0 +1,43 @@ +0. Create a db for lxr: + MySQL: run mysql and read in the initdb file using: + \. ${MY_SQLSCRIPTSDIR}/mysql/${PVR}_create.sql + + PostgreSQL: + createuser lxr + createdb -U lxr lxr + psql -U lxr lxr + \i ${MY_SQLSCRIPTSDIR}/postgressql/${PVR}_create.sql + +1. Edit ${MY_INSTALLDIR}/lxr.conf and set: + - db settings + - 'v' + - 'sourceroot' + - 'graphicfile' + - 'filetype' + - 'incprefix' + +2. If you want to use CVS, also set: + 'range' => sub { return + ($files->allreleases($LXR::Common::pathname), + $files->allrevisions($LXR::Common::pathname)) + }, # deferred function call. + + You should also set the default version retrieved to a version that really + does exist otherwise you will receive errors when generating your index. + + A good value for the default version is head. + 'default' => 'head' + Set 'sourceroot' and 'sourcerootname'. + +3. If you want to use swish-e: + Create a directory for the swish index files to go in, and put the + path of this directory in the 'swishdir' variable. + +4. An .htaccess file has been installed into ${MY_HTDOCSDIR}. Please note that +you must take special care not to make lxr.conf visible to the world. If you +are not using mod_perl, use .htaccess_cgi instead. + +5. Create the index: + ${MY_INSTALLDIR}/genxref --url http://${VHOST_HOSTNAME}/${VHOST_APPDIR} + +6. Browse to http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/source diff --git a/www-apps/lxr/files/reconfig b/www-apps/lxr/files/reconfig new file mode 100644 index 000000000000..bf90b9f92657 --- /dev/null +++ b/www-apps/lxr/files/reconfig @@ -0,0 +1,16 @@ +#!/bin/bash + +die() { + echo "#####" + echo $1 + echo "#####" + exit 1 +} + +if [ $1 = "install" ]; then + sed -e "s|/lxr|/${VHOST_APPDIR}| + s|http://192.168.1.3/lxr|${VHOST_HOSTNAME}/${VHOST_APPDIR}|" -i ${MY_INSTALLDIR}/lxr.conf || die + +elif [ $1 = "clean" ]; then + echo $1 +fi diff --git a/www-apps/lxr/lxr-0.9.4.ebuild b/www-apps/lxr/lxr-0.9.4.ebuild new file mode 100644 index 000000000000..ca6aa48c905a --- /dev/null +++ b/www-apps/lxr/lxr-0.9.4.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/lxr/lxr-0.9.4.ebuild,v 1.1 2006/01/10 20:38:07 rl03 Exp $ + +inherit webapp + +WEBAPP_MANUAL_SLOT="yes" +SLOT="0" + +DESCRIPTION="A general purpose source code indexer and cross-referencer that provides web-based browsing of source code with links to the definition and usage of any identifier." +HOMEPAGE="http://sourceforge.net/projects/lxr" +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" + +LICENSE="GPL-2" +KEYWORDS="~x86 ~ppc" + +IUSE="cvs freetext mysql postgres" + +RDEPEND="dev-util/ctags + net-www/apache + freetext? ( >=www-apps/swish-e-2.1 ) + dev-lang/perl + dev-perl/DBI + dev-perl/File-MMagic + cvs? ( app-text/rcs ) + postgres? ( dev-db/postgresql dev-perl/DBD-Pg ) + mysql? ( >=dev-db/mysql-4 dev-perl/DBD-mysql ) +" + +src_install() { + webapp_src_preinst + # install perl module. stolen from dev-perl/PDL + eval `perl '-V:version'` + PERLVERSION=${version} + eval `perl '-V:archname'` + ARCHVERSION=${archname} + dodir /usr/lib/perl5/vendor_perl/${PERLVERSION}/${ARCHVERSION} /usr/bin + mv Local.pm ${D}/usr/lib/perl5/vendor_perl/${PERLVERSION}/${ARCHVERSION} + cp -r lib/LXR ${D}/usr/lib/perl5/vendor_perl/${PERLVERSION}/${ARCHVERSION} + sed "s|/usr/local/bin/swish-e|/usr/bin/swish-e| + s|/usr/bin/ctags|/usr/bin/exuberant-ctags| + s|'glimpse|#'glimpse|g + s|/path/to/lib/|/usr/lib/perl5/vendor_perl/${PERLVERSION}/${ARCHVERSION}/|g" -i templates/lxr.conf + + dodoc BUGS CREDITS.txt HACKING INSTALL notes .htaccess* swish-e.conf + + local files="diff find fixhashbang ident search source genxref + .htaccess* templates/* genjavaclasses" + cp ${files} ${D}/${MY_HTDOCSDIR} + + webapp_configfile ${MY_HTDOCSDIR}/lxr.conf + 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 +} |