diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /www-apps/lxr | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'www-apps/lxr')
-rw-r--r-- | www-apps/lxr/Manifest | 1 | ||||
-rw-r--r-- | www-apps/lxr/files/lxr-0.9.8-initdb-mysql.patch | 13 | ||||
-rw-r--r-- | www-apps/lxr/files/postinstall-en.txt | 44 | ||||
-rw-r--r-- | www-apps/lxr/files/reconfig | 21 | ||||
-rw-r--r-- | www-apps/lxr/lxr-0.9.8-r1.ebuild | 86 | ||||
-rw-r--r-- | www-apps/lxr/metadata.xml | 8 |
6 files changed, 173 insertions, 0 deletions
diff --git a/www-apps/lxr/Manifest b/www-apps/lxr/Manifest new file mode 100644 index 000000000000..84b80a4c6ca1 --- /dev/null +++ b/www-apps/lxr/Manifest @@ -0,0 +1 @@ +DIST lxr-0.9.8.tgz 104246 SHA256 2caff9447cc2ef1f82d96ce5a2fc4a0358f2d12de52d73a91f29ae5119db4bf5 SHA512 2ee9965448edc63a35a3c9d51b2e22c142e5e0aed8e487a590ad3e8a9f840f94fbe38736fe139fb02941ab4e5c891821460b0f32b56a52bf295988c6ef432318 WHIRLPOOL e25bc692b08666402e8ef09b9f464811b7d49bbe7ca2597d35e3d9f3dbe2b4bb285ae52e748b86b11327f92a491863ede9030ba914f6f8e3a2251ea3f1b8859c diff --git a/www-apps/lxr/files/lxr-0.9.8-initdb-mysql.patch b/www-apps/lxr/files/lxr-0.9.8-initdb-mysql.patch new file mode 100644 index 000000000000..f28604683781 --- /dev/null +++ b/www-apps/lxr/files/lxr-0.9.8-initdb-mysql.patch @@ -0,0 +1,13 @@ +--- initdb-mysql 2004-07-20 11:31:24.000000000 -0400 ++++ initdb-mysql.patched 2006-01-26 15:41:43.000000000 -0500 +@@ -34,8 +34,8 @@ create table lxr_indexes ( + + create table lxr_releases + (fileid int not null references lxr_files, +- releaseid char(255) binary not null, +- primary key (fileid,releaseid) ++ `releaseid` char(255) binary not null, ++ primary key (fileid,`releaseid`) + ); + + create table lxr_usage diff --git a/www-apps/lxr/files/postinstall-en.txt b/www-apps/lxr/files/postinstall-en.txt new file mode 100644 index 000000000000..07412c4da554 --- /dev/null +++ b/www-apps/lxr/files/postinstall-en.txt @@ -0,0 +1,44 @@ +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}/postgresql/${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_INSTALLDIR}. 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..e9e2f47b3f69 --- /dev/null +++ b/www-apps/lxr/files/reconfig @@ -0,0 +1,21 @@ +#!/bin/bash + +die() { + echo "#####" + echo "$@" + echo "#####" + exit 1 +} + +if [[ $1 == "install" ]] ; then + cd "${MY_INSTALLDIR}" || die + files="lxr.conf $(ls ._cfg*lxr.conf 2>/dev/null)" + sed -i \ + -e "s|/lxr|${VHOST_APPDIR}|" \ + -e "s|192.168.1.3/lxr|${VHOST_HOSTNAME}${VHOST_APPDIR}|" \ + ${files} || die +elif [[ $1 = "clean" ]] ; then + echo $1 +fi + +exit 0 diff --git a/www-apps/lxr/lxr-0.9.8-r1.ebuild b/www-apps/lxr/lxr-0.9.8-r1.ebuild new file mode 100644 index 000000000000..d78092a86fdb --- /dev/null +++ b/www-apps/lxr/lxr-0.9.8-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +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 mysql postgres" +WEBAPP_MANUAL_SLOT="yes" +SLOT="0" + +RDEPEND="dev-util/ctags + 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_prepare() { + + epatch "${FILESDIR}/${PN}-0.9.8-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 || die "sed failed" + sed -i \ + -e 's|Apache::Registry|ModPerl::PerlRun|' \ + .htaccess-apache1 || die "sed failed" + 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 || die "sed failed" +} + +# prevent eclasses from overriding this +src_compile() { :; } + +src_install() { + perl_set_version + webapp_src_preinst + + insinto "${VENDOR_LIB}" + doins -r lib/LXR + 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 + insinto "${MY_HTDOCSDIR}" + doins .htaccess* templates/* + + webapp_configfile "${MY_HTDOCSDIR}"/lxr.conf "${MY_HTDOCSDIR}"/.htaccess-apache1 + 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 +} diff --git a/www-apps/lxr/metadata.xml b/www-apps/lxr/metadata.xml new file mode 100644 index 000000000000..d50c1bef73f7 --- /dev/null +++ b/www-apps/lxr/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>web-apps</herd> + <upstream> + <remote-id type="sourceforge">lxr</remote-id> + </upstream> +</pkgmetadata> |