* [gentoo-commits] proj/sci:master commit in: profiles/, sci-biology/gbrowse/files/, sci-biology/gbrowse/
@ 2017-03-26 8:37 Justin Lecher
0 siblings, 0 replies; only message in thread
From: Justin Lecher @ 2017-03-26 8:37 UTC (permalink / raw
To: gentoo-commits
commit: 0371f3c41ab51fb064510b7beddcb02904a5181a
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 26 08:35:47 2017 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Mar 26 08:35:47 2017 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=0371f3c4
Drop masked package - sci-biology/gbrowse
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
profiles/package.mask | 2 -
.../gbrowse/files/GBrowseInstall.pm-2.39.patch | 32 ----
.../gbrowse/files/GBrowseInstall.pm-2.45.patch | 32 ----
sci-biology/gbrowse/files/destdir.patch | 92 ----------
.../files/disable-gbrowse_metadb_config.pl.patch | 19 --
sci-biology/gbrowse/files/fix-PNG-export.patch | 11 --
sci-biology/gbrowse/files/gbrowse-slave.default | 12 --
sci-biology/gbrowse/files/gbrowse-slave.init.d | 94 ----------
sci-biology/gbrowse/files/gbrowse.conf.vhosts.d | 26 ---
.../gbrowse/files/gbrowse_metadb_config.pl.patch | 55 ------
sci-biology/gbrowse/files/symlink.patch | 11 --
sci-biology/gbrowse/gbrowse-2.39.ebuild | 169 -----------------
sci-biology/gbrowse/gbrowse-2.45.ebuild | 200 --------------------
sci-biology/gbrowse/gbrowse-2.48.ebuild | 201 ---------------------
sci-biology/gbrowse/metadata.xml | 16 --
15 files changed, 972 deletions(-)
diff --git a/profiles/package.mask b/profiles/package.mask
index 306c5be55..20ff196b6 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -55,11 +55,9 @@ sci-mathematics/scilab
# bigdft moved from sci-libs to sci-physics
# sci-physics/abinit now uses sci-libs/bigdft-abi instead
# sci-libs/bigdft should be deleted in 30 days
-sci-libs/bigdft
# Justin Lecher <jlec@gentoo.org> (03 March 2013)
# Missing deps
-sci-biology/gbrowse
sci-mathematics/surfer
dev-python/pymvpa
sci-biology/artemis-bin
diff --git a/sci-biology/gbrowse/files/GBrowseInstall.pm-2.39.patch b/sci-biology/gbrowse/files/GBrowseInstall.pm-2.39.patch
deleted file mode 100644
index e91fe1634..000000000
--- a/sci-biology/gbrowse/files/GBrowseInstall.pm-2.39.patch
+++ /dev/null
@@ -1,32 +0,0 @@
---- install_util/GBrowseInstall.pm.ori 2010-11-27 12:01:58.000000000 +0100
-+++ install_util/GBrowseInstall.pm 2010-11-27 12:02:15.000000000 +0100
-@@ -436,8 +436,8 @@
- $self->ownership_warning($databases,$user);
- }
-
-- chmod 0755,File::Spec->catfile($self->install_path->{'etc'},'init.d','gbrowse-slave');
-- $self->fix_selinux;
-+ # chmod 0755,File::Spec->catfile($self->install_path->{'etc'},'init.d','gbrowse-slave');
-+ # $self->fix_selinux;
-
- my $base = basename($self->install_path->{htdocs});
-
---- install_util/GBrowseInstall.pm.ori 2011-02-14 13:50:41.000000000 +0100
-+++ install_util/GBrowseInstall.pm 2011-02-14 13:51:46.000000000 +0100
-@@ -470,11 +470,11 @@
- my @inc = map{"-I$_"} split ':',$self->added_to_INC;
- system $perl,@inc,$metadb_script;
-
-- if (Module::Build->y_n(
-- "It is recommended that you restart Apache. Shall I try this for you?",'y'
-- )) {
-- system "sudo /etc/init.d/apache2 restart";
-- }
-+# if (Module::Build->y_n(
-+# "It is recommended that you restart Apache. Shall I try this for you?",'y'
-+# )) {
-+# system "sudo /etc/init.d/apache2 restart";
-+# }
-
- print STDERR "\n***INSTALLATION COMPLETE***\n";
- print STDERR "Load http://localhost/$base for demo and documentation.\n";
diff --git a/sci-biology/gbrowse/files/GBrowseInstall.pm-2.45.patch b/sci-biology/gbrowse/files/GBrowseInstall.pm-2.45.patch
deleted file mode 100644
index e91fe1634..000000000
--- a/sci-biology/gbrowse/files/GBrowseInstall.pm-2.45.patch
+++ /dev/null
@@ -1,32 +0,0 @@
---- install_util/GBrowseInstall.pm.ori 2010-11-27 12:01:58.000000000 +0100
-+++ install_util/GBrowseInstall.pm 2010-11-27 12:02:15.000000000 +0100
-@@ -436,8 +436,8 @@
- $self->ownership_warning($databases,$user);
- }
-
-- chmod 0755,File::Spec->catfile($self->install_path->{'etc'},'init.d','gbrowse-slave');
-- $self->fix_selinux;
-+ # chmod 0755,File::Spec->catfile($self->install_path->{'etc'},'init.d','gbrowse-slave');
-+ # $self->fix_selinux;
-
- my $base = basename($self->install_path->{htdocs});
-
---- install_util/GBrowseInstall.pm.ori 2011-02-14 13:50:41.000000000 +0100
-+++ install_util/GBrowseInstall.pm 2011-02-14 13:51:46.000000000 +0100
-@@ -470,11 +470,11 @@
- my @inc = map{"-I$_"} split ':',$self->added_to_INC;
- system $perl,@inc,$metadb_script;
-
-- if (Module::Build->y_n(
-- "It is recommended that you restart Apache. Shall I try this for you?",'y'
-- )) {
-- system "sudo /etc/init.d/apache2 restart";
-- }
-+# if (Module::Build->y_n(
-+# "It is recommended that you restart Apache. Shall I try this for you?",'y'
-+# )) {
-+# system "sudo /etc/init.d/apache2 restart";
-+# }
-
- print STDERR "\n***INSTALLATION COMPLETE***\n";
- print STDERR "Load http://localhost/$base for demo and documentation.\n";
diff --git a/sci-biology/gbrowse/files/destdir.patch b/sci-biology/gbrowse/files/destdir.patch
deleted file mode 100644
index 655158c04..000000000
--- a/sci-biology/gbrowse/files/destdir.patch
+++ /dev/null
@@ -1,92 +0,0 @@
---- install_util/GBrowseInstall.pm.ori 2011-07-30 16:06:18.000000000 +0200
-+++ install_util/GBrowseInstall.pm 2011-07-30 16:06:28.000000000 +0200
-@@ -419,6 +419,7 @@
- sub ACTION_install {
- my $self = shift;
- my $prefix = $self->install_base || $self->prefix || '';
-+ my $destdir = $self->destdir || '';
- GBrowseGuessDirectories->prefix($prefix);
-
- $self->depends_on('config_data');
-@@ -445,7 +446,7 @@
-
- # fix some directories so that www user can write into them
- my $tmp = $self->config_data('tmp') || GBrowseGuessDirectories->tmp;
-- mkpath($tmp);
-+ mkpath($destdir.$tmp);
- my ($uid,$gid) = (getpwnam($user))[2,3];
-
- # taint check issues
-@@ -454,29 +455,29 @@
- $gid =~ /^(\d+)$/;
- $gid = $1;
-
-- unless (chown $uid,$gid,$tmp) {
-+ unless (chown $uid,$gid,$destdir.$tmp) {
- $self->ownership_warning($tmp,$user);
- }
-
- my $htdocs_i = File::Spec->catfile($self->install_path->{htdocs},'i');
- my $images = File::Spec->catfile($tmp,'images');
- my $htdocs = $self->install_path->{htdocs};
-- chown $uid,-1,$htdocs;
-+ chown $uid,-1,$destdir.$htdocs;
- {
- local $> = $uid;
- symlink($images,$htdocs_i); # so symlinkifowner match works!
- }
-- chown $>,-1,$self->install_path->{htdocs};
-+ chown $>,-1,$destdir.$self->install_path->{htdocs};
-
- my $persistent = $self->install_path->{'persistent'};
- my $sessions = File::Spec->catfile($persistent,'sessions');
- my $userdata = File::Spec->catfile($persistent,'userdata');
-- mkpath([$sessions,$userdata],0711);
-+ mkpath([$destdir.$sessions,$destdir.$userdata],0711);
-
- my $databases = $self->install_path->{'databases'};
-
-- unless (chown $uid,$gid,glob(File::Spec->catfile($databases,'').'*')) {
-- $self->ownership_warning($databases,$user);
-+ unless (chown $uid,$gid,glob($destdir.File::Spec->catfile($databases,'').'*')) {
-+ $self->ownership_warning($destdir.$databases,$user);
- }
-
- # chmod 0755,File::Spec->catfile($self->install_path->{'etc'},'init.d','gbrowse-slave');
-@@ -490,7 +491,7 @@
- my $perl = $self->perl;
- my @inc = map{"-I$_"} split ':',$self->added_to_INC;
- system $perl,@inc,$metadb_script;
-- system 'sudo','chown','-R',"$uid.$gid",$sessions,$userdata;
-+ system 'sudo','chown','-R',"$uid.$gid",$destdir.$sessions,$destdir.$userdata;
-
- # if (Module::Build->y_n(
- # "It is recommended that you restart Apache. Shall I try this for you?",'y'
-@@ -600,6 +601,7 @@
- my $self = shift;
-
- my $prefix = $self->install_base || $self->prefix || '';
-+ my $destdir = $self->destdir || '';
- GBrowseGuessDirectories->prefix($prefix);
- my $install_path = GBrowseGuessDirectories->etc;
-
-@@ -647,7 +649,7 @@
- if ($self->config_data('installconf') =~ /^[yY]/ && !-e "${includes}/$file") {
- warn "Creating include file for Apache config: $target\n";
- my $dir = dirname($target);
-- mkpath([$dir]);
-+ mkpath([$destdir.$dir]);
- if (my $f = IO::File->new("blib${includes}/$file",'>')) {
- $f->print($self->apache_conf);
- $f->close;
-@@ -935,8 +937,9 @@
- sub ownership_warning {
- my $self = shift;
- my ($path,$owner) = @_;
-+ my $destdir = $self->destdir || '';
- warn "*** WARNING: Using sudo to change ownership of $path to '$owner'. You may be prompted for your login password ***\n";
-- system "sudo chown -R $owner $path";
-+ system "sudo chown -R $owner $destdir.$path";
- }
-
- sub cgiurl {
diff --git a/sci-biology/gbrowse/files/disable-gbrowse_metadb_config.pl.patch b/sci-biology/gbrowse/files/disable-gbrowse_metadb_config.pl.patch
deleted file mode 100644
index 1e96bb8c6..000000000
--- a/sci-biology/gbrowse/files/disable-gbrowse_metadb_config.pl.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- install_util/GBrowseInstall.pm.ori 2011-07-30 20:42:02.000000000 +0200
-+++ install_util/GBrowseInstall.pm 2011-07-30 20:42:19.000000000 +0200
-@@ -486,11 +486,11 @@
- my $base = basename($self->install_path->{htdocs});
-
- # Configure the databases, if needed.
-- print STDERR "Updating user account database...\n";
-- my $metadb_script = File::Spec->catfile("bin", "gbrowse_metadb_config.pl");
-- my $perl = $self->perl;
-- my @inc = map{"-I$_"} split ':',$self->added_to_INC;
-- system $perl,@inc,$metadb_script;
-+# print STDERR "Updating user account database...\n";
-+# my $metadb_script = File::Spec->catfile("bin", "gbrowse_metadb_config.pl");
-+# my $perl = $self->perl;
-+# my @inc = map{"-I$_"} split ':',$self->added_to_INC;
-+# system $perl,@inc,$metadb_script;
- system 'sudo','chown','-R',"$uid.$gid",$destdir.$sessions,$destdir.$userdata;
-
- # if (Module::Build->y_n(
diff --git a/sci-biology/gbrowse/files/fix-PNG-export.patch b/sci-biology/gbrowse/files/fix-PNG-export.patch
deleted file mode 100644
index 469f75202..000000000
--- a/sci-biology/gbrowse/files/fix-PNG-export.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- lib/Bio/Graphics/Browser2/AuthorizedFeatureFile.pm.ori 2011-07-30 17:14:28.000000000 +0200
-+++ lib/Bio/Graphics/Browser2/AuthorizedFeatureFile.pm 2011-07-30 17:13:13.000000000 +0200
-@@ -30,7 +30,7 @@
- sub setting {
- my $self = shift;
- my ($label,$option,@rest) = @_ >= 2 ? @_ : ('general',@_);
-- $label = 'general' if lc $label eq 'general'; # buglet
-+ $label = 'general' if lc($label) eq 'general'; # buglet
- $self->SUPER::setting($label,$option,@rest);
- }
-
diff --git a/sci-biology/gbrowse/files/gbrowse-slave.default b/sci-biology/gbrowse/files/gbrowse-slave.default
deleted file mode 100644
index 46457c2dc..000000000
--- a/sci-biology/gbrowse/files/gbrowse-slave.default
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-export PERL5LIB=$PERL5LIB
-
-DAEMON=$INSTALLSCRIPT/gbrowse_slave
-USER=$WWWUSER
-PRELOAD=$CONF/slave_preload.conf
-RUNDIR=/var/run/gbrowse
-LOGDIR=/var/log/gbrowse
-PORT="8101 8102 8103"
-VERBOSITY=3
-NICE=0
diff --git a/sci-biology/gbrowse/files/gbrowse-slave.init.d b/sci-biology/gbrowse/files/gbrowse-slave.init.d
deleted file mode 100644
index c298faf3c..000000000
--- a/sci-biology/gbrowse/files/gbrowse-slave.init.d
+++ /dev/null
@@ -1,94 +0,0 @@
-#!/bin/sh
-### BEGIN INIT INFO
-# Provides: gbrowse_slave
-# Required-Start: $local_fs
-# Required-Stop: $local_fs
-# Default-Start: 28
-# Default-Stop: S
-# Short-Description: Start/Stop the gbrowse_slave rendering server.
-### END INIT INFO
-
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-DAEMON=$INSTALLSCRIPT/gbrowse_slave
-NAME="gbrowse-slave"
-DESC="GBrowse slave track rendering server"
-
-test -x $DAEMON || exit 0
-set -e
-
-USER=$WWWUSER
-PRELOAD=""
-RUNDIR=/var/run/gbrowse
-LOGDIR=/var/log/gbrowse
-PORT='8101'
-VERBOSITY=1
-NICE=0
-
-if [ -f /etc/default/gbrowse-slave ]; then
- . /etc/default/gbrowse-slave
-fi
-
-mkdir -p $RUNDIR
-chown -R $USER $RUNDIR
-mkdir -p $LOGDIR
-chown -R $USER $LOGDIR
-
-case "$1" in
- start)
- echo -n "Starting $DESC: $NAME "
- for port in $PORT; do
- if test -e $RUNDIR/$NAME.$port.pid ; then
- echo "$NAME already running, use restart instead."
- else
- PRELOAD_DB=""
- if [ "$PRELOAD" != "" ]; then
- PRELOAD_DB="--preload $PRELOAD"
- fi
- ARGS="--port $port --verbose $VERBOSITY --log $LOGDIR/gbrowse_slave --pid $RUNDIR/$NAME.$port.pid $PRELOAD_DB"
- su $USER -s /bin/sh -c "nice -n $NICE $DAEMON $ARGS"
- echo -n "$port "
- fi
- done
- echo "."
- ;;
- stop)
- echo -n "Stopping $DESC: $NAME "
- killed=0
- for port in $PORT; do
- if test -e $RUNDIR/$NAME.$port.pid ; then
- kill -TERM `cat $RUNDIR/$NAME.$port.pid`
- killed=1
- fi
- echo -n "$port "
- done
- if [ "$killed" -ne 1 ]; then
- base=`basename $DAEMON`
- killall -q -r $base || true
- fi
- echo "."
- ;;
- status)
- for port in $PORT; do
- if test -e $RUNDIR/$NAME.$port.pid ; then
- kill -0 `cat $RUNDIR/$NAME.$port.pid`
- if [ "$?" -eq 0 ]; then
- echo "$NAME is running on port $port."
- fi
- else
- echo "$NAME is not running on port $port."
- fi
- done
- ;;
- restart|force-reload)
- $0 stop
- sleep 3
- $0 start
- ;;
- *)
- N=/etc/init.d/$NAME
- echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
- exit 1
- ;;
-esac
-
-exit 0
diff --git a/sci-biology/gbrowse/files/gbrowse.conf.vhosts.d b/sci-biology/gbrowse/files/gbrowse.conf.vhosts.d
deleted file mode 100644
index a3966ea19..000000000
--- a/sci-biology/gbrowse/files/gbrowse.conf.vhosts.d
+++ /dev/null
@@ -1,26 +0,0 @@
-ScriptAlias /gbrowse/cgi-bin/gbrowse "/var/www/localhost/htdocs/gbrowse/cgi-bin/gbrowse"
-ScriptAlias /gbrowse/cgi-bin/ "/var/www/localhost/htdocs/gbrowse/cgi-bin/"
-
-<Directory "/var/www/localhost/htdocs/gbrowse/cgi-bin/">
- Options ExecCGI
- AllowOverride None
- <IfModule mod_access.c>
- Order allow,deny
- Allow from all
- </IfModule>
-</Directory>
-
-Alias /gbrowse/i "/var/www/localhost/htdocs/gbrowse/images"
-Alias /gbrowse "/var/www/localhost/htdocs/gbrowse"
-Alias /gbrowse2 "/var/www/localhost/htdocs/gbrowse"
-
-<Directory "/var/www/localhost/htdocs/gbrowse">
- Options FollowSymlinks
- AllowOverride None
- <IfModule mod_access.c>
- Order allow,deny
- Allow from all
- </IfModule>
-</Directory>
-
-
diff --git a/sci-biology/gbrowse/files/gbrowse_metadb_config.pl.patch b/sci-biology/gbrowse/files/gbrowse_metadb_config.pl.patch
deleted file mode 100644
index 0f7d5d373..000000000
--- a/sci-biology/gbrowse/files/gbrowse_metadb_config.pl.patch
+++ /dev/null
@@ -1,55 +0,0 @@
---- bin/gbrowse_metadb_config.pl.ori 2011-07-30 19:57:33.000000000 +0200
-+++ bin/gbrowse_metadb_config.pl 2011-07-30 20:04:51.000000000 +0200
-@@ -703,9 +703,9 @@
- local $database->{AutoCommit} = 0;
- local $database->{RaiseError} = 1;
- eval {
-- $database->do("delete from $table");
-- $database->do("insert into $table (schema_version) values ($version)");
-- $database->commit();
-+ $database->do("delete from $table") or warn "delete from $table failed with: $database->errstr";
-+ $database->do("insert into $table (schema_version) values ($version)") or warn "insert into $table (schema_version) values ($version) failed with: $database->errstr";
-+ $database->commit() or warn "commitfailed with: $database->errstr";
- };
- if ($@) {
- warn "update failed due to $@. Rolling back";
-@@ -768,11 +768,11 @@
- $insert_user->finish;
- # rename the current users table
- $database->do('drop table users')
-- or die "Couldn't drop old users table";
-+ or die "Couldn't drop old users table: $database->errstr";
- $database->do('alter table users_new rename to users')
-- or die "Couldn't rename new users table";
-+ or die "Couldn't rename new users table: $database->errstr";
- $database->do('create index index_session on session(username)')
-- or die "Couldn't index sessions table";
-+ or die "Couldn't index sessions table: $database->errstr";
-
- # now do the uploads table
- # this upgrades to latest version 0
-@@ -808,9 +808,9 @@
- $insert->finish();
-
- $database->do('drop table uploads')
-- or die "Couldn't drop old uploads table";
-+ or die "Couldn't drop old uploads table: $database->errstr";
- $database->do('alter table uploads_new rename to uploads')
-- or die "Couldn't rename new uploads table";
-+ or die "Couldn't rename new uploads table: $database->errstr";
-
- # now do the openid_users table
- # this creates the new one
-@@ -916,10 +916,10 @@
- $select->finish;
- $insert->finish;
- $database->do('drop table users')
-- or die "Couldn't drop old users table";
-+ or die "Couldn't drop old users table: $database->errstr";
-
- $database->do('alter table users_new rename to users')
-- or die "Couldn't rename new users table";
-+ or die "Couldn't rename new users table: $database->errstr";
- $database->commit();
- };
-
diff --git a/sci-biology/gbrowse/files/symlink.patch b/sci-biology/gbrowse/files/symlink.patch
deleted file mode 100644
index e6df771ee..000000000
--- a/sci-biology/gbrowse/files/symlink.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- install_util/GBrowseInstall.pm.ori 2011-07-30 19:41:55.000000000 +0200
-+++ install_util/GBrowseInstall.pm 2011-07-30 19:42:31.000000000 +0200
-@@ -465,7 +465,7 @@
- chown $uid,-1,$destdir.$htdocs;
- {
- local $> = $uid;
-- symlink($images,$htdocs_i); # so symlinkifowner match works!
-+ symlink($images,$destdir.$htdocs_i) or warn "symlink($images,$destdir.$htdocs_i) failed: $!\n"; # so symlinkifowner match works!
- }
- chown $>,-1,$destdir.$self->install_path->{htdocs};
-
diff --git a/sci-biology/gbrowse/gbrowse-2.39.ebuild b/sci-biology/gbrowse/gbrowse-2.39.ebuild
deleted file mode 100644
index ed43aae98..000000000
--- a/sci-biology/gbrowse/gbrowse-2.39.ebuild
+++ /dev/null
@@ -1,169 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit eutils perl-module webapp
-
-MY_P="GBrowse-${PV}"
-
-DESCRIPTION="Display of genomic annotations on interactive web pages"
-HOMEPAGE="http://gmod.org/"
-# mirror://sourceforge/gmod/${MY_P}.tar.gz
-# mirror://cpan/authors/id/L/LD/LDS/GBrowse-2.33.tar.gz
-SRC_URI="
- mirror://cpan/authors/id/L/LD/LDS/${MY_P}.tar.gz
- test? (
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/saccharomyces_cerevisiae.gff.bz2
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/Refseq_Genome_TBLASTX.tar.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/README-gff-files
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/human.gff.tar.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/yeast.fasta.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/yeast.gff.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/worm.fasta.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/worm.gff.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/fly.fasta.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/fly.gff.gz )"
-
-LICENSE="Artistic"
-# webapp ebuilds do not set SLOT
-KEYWORDS="~x86 ~amd64"
-IUSE="cgi fastcgi minimal mysql pdf postgres svg test" # lwp moby scf
-
-S="${WORKDIR}/${MY_P}"
-
-# TODO: dev-perl/MOBY, dev-perl/Bio-SCF, dev-perl/Safe-World (not compatible w/perl-5.10)
-# how about mod_fcgi and dev-libs/fcgi and mod_scgi?
-DEPEND="
- >=virtual/perl-Module-Build-0.380.0
- >=dev-lang/perl-5.8.8:=
- dev-perl/Capture-Tiny
- >=sci-biology/bioperl-1.6.901
- >=dev-perl/GD-2.07
- dev-perl/IO-String
- virtual/perl-Digest-MD5
- >=dev-perl/CGI-Session-4.03
- dev-perl/Statistics-Descriptive
- >=dev-perl/Bio-Graphics-1.97
- >=dev-perl/JSON-2.510.0
- dev-perl/TermReadKey
- dev-perl/libwww-perl
- svg? ( dev-perl/GD-SVG )
- pdf? ( media-gfx/inkscape )
- mysql? ( dev-perl/DBD-mysql )
- postgres? ( dev-perl/DBD-Pg )
- sci-biology/ucsc-genome-browser" # that provides bigWig.h and jkweb.a, aka Jim Kent's src
-
-# TODO: based on the following message in apache/error_log the list of deps should be longer
-# GBROWSE NOTICE: To enable PDF generation, please enter the directory "/home/httpd" and run the commands: "sudo mkdir .inkscape .gnome2" and "sudo chown apache .inkscape .gnome2". To turn off this message add "generate pdf = 0" to the [GENERAL] section of your GBrowse.conf configuration file., referer: http://127.0.0.1/gbrowse/cgi-bin/gbrowse_details/yeast?ref=chrII;start=90739;end=92028;name=YBL069W;class=Sequence;feature_id=881;db_id=annotations%3Adatabase
-
-RDEPEND="${DEPEND}
- >=www-servers/apache-2.0.47
- fastcgi? ( dev-libs/fcgi )
- www-apache/mod_fastcgi
- dev-perl/DBI
- || ( dev-perl/DBD-Pg dev-perl/DBD-mysql )
- !minimal? (
- dev-perl/File-NFSLock
- dev-perl/FCGI
- virtual/perl-Math-BigInt
- virtual/perl-Math-BigInt-FastCalc
- dev-perl/Math-BigInt-GMP
- dev-perl/Digest-SHA1
- dev-perl/Crypt-SSLeay
- dev-perl/Net-SMTP-SSL
- dev-perl/Net-OpenID-Consumer
- virtual/perl-DB_File
- dev-perl/DB_File-Lock
- dev-perl/GD-SVG
- dev-perl/Text-Shellwords
- dev-perl/XML-Twig
- dev-perl/XML-DOM
- dev-perl/XML-Writer
- dev-perl/XML-Parser
- dev-perl/Bio-Das
- dev-perl/Text-Shellwords
- postgres? ( >=dev-perl/Bio-DB-Das-Chado-0.32 )
- >=dev-perl/Bio-SamTools-1.29
- >=dev-perl/Bio-BigFile-1.06
- )"
-
-src_prepare() {
- sed -i 's/return unless -t STDIN/return/' install_util/GBrowseInstall.pm || die
- sed -i 's/process_/bp_process_/g' INSTALL || die
- epatch \
- "${FILESDIR}"/GBrowseInstall.pm-"${PV}".patch \
- "${FILESDIR}"/destdir.patch \
- "${FILESDIR}"/fix-PNG-export.patch \
- "${FILESDIR}"/symlink.patch \
- "${FILESDIR}"/gbrowse_metadb_config.pl.patch \
- "${FILESDIR}"/disable-gbrowse_metadb_config.pl.patch
-}
-
-src_configure() {
- # GBROWSE_ROOT is the root path in SRC_URI to be prepended
- # /usr/share/webapps/gbrowse/2.03/htdocs/etc/gbrowse/GBrowse.conf
- webapp_src_preinst
- perl Makefile.PL \
- HTDOCS="${MY_HTDOCSDIR}" \
- CGIBIN="${MY_HTDOCSDIR}"/cgi-bin \
- CONF="${MY_HTDOCSDIR}"/etc/gbrowse \
- PACKAGE_DIR="${D}" \
- INSTALLDIRS=vendor \
- GBROWSE_ROOT="gbrowse" \
- DESTDIR="${D}" \
- DATABASES="/var/www/gbrowse2/databases/" \
- TMP="/var/tmp/gbrowse2" \
- INSTALLETC="n" \
- INSTALLCONF="n" \
- WWWUSER="apache" \
- DO_XS=1 \
- NONROOT=1 \
- || die
-}
-
-src_install() {
- mydoc="Changes README TODO INSTALL"
- perl-module_src_install
-
- # TODO: write our own readme
- webapp_postinst_txt en "${S}"/INSTALL
- webapp_src_install || die "Failed running webapp_src_install"
-
- # should create a /etc/init.d/ startup script based on this
- # /var/tmp/portage/sci-biology/gbrowse-2.03/work/GBrowse-2.03/etc/init.d/gbrowse-slave
-
- chown -R apache.apache "${D}"/var/www/gbrowse2/databases || die
-
- mkdir -p "${D}"/var/www/localhost/htdocs/gbrowse || die
- ln -s "${D}"/var/tmp/gbrowse2/images "${D}"/var/www/localhost/htdocs/gbrowse/i || die
-
- einfo "Probably you want to install a cron job to remove the generated temporary images:"
- einfo "find /var/tmp/gbrowse2/images -type f -atime +20 -print -exec rm {}"
-
- einfo "Make sure you compiled apache with +cgi and copy ${FILESDIR}/gbrowse.conf.vhosts.d to /etc/apache2/vhosts.d/"
-
- sed -i "s#"${D}"##g" "${S}"/install_util/GBrowseInstall.pm || die
- sed -i "s#"${D}"##" "${S}"/blib/conf/GBrowse.conf* || die
- sed -i 's#DBI:SQLite:'${D}'/var/www/gbrowse2/databases/#DBI:SQLite:/var/www/gbrowse2/databases/#' "${S}"/install_util/GBrowseInstall.pm || die
-}
-
-pkg_postinst() {
- webapp_pkg_postinst || die "webapp_pkg_postinst failed"
-
- einfo "Please run gbrowse_metadb_config.pl to update SQLite flatfiles of the live database."
-}
-
-src_test() {
- mysql -uroot -p password -e 'create database yeast'
- mysql -uroot -p password -e 'grant all privileges on yeast.* to gbrowse@localhost'
- mysql -uroot -p password -e 'grant file on *.* to gbrowse@localhost'
- mysql -uroot -p password -e 'grant select on yeast.* to nobody@localhost'
-
- cd /usr/portage/distfiles || die
- gzip -d yeast.fasta.gz || die
- gzip -d yeast.gff.gz || die
- #gzip -d fly.fasta.gz
- #gzip -d fly.gff.gz
- bp_bulk_load_gff.pl -d yeast -fasta yeast.fasta yeast.gff || die
-}
diff --git a/sci-biology/gbrowse/gbrowse-2.45.ebuild b/sci-biology/gbrowse/gbrowse-2.45.ebuild
deleted file mode 100644
index dec4791d7..000000000
--- a/sci-biology/gbrowse/gbrowse-2.45.ebuild
+++ /dev/null
@@ -1,200 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit eutils perl-module webapp
-
-MY_P="GBrowse-${PV}"
-
-DESCRIPTION="Display of genomic annotations on interactive web pages"
-HOMEPAGE="http://gmod.org/"
-# mirror://sourceforge/gmod/${MY_P}.tar.gz
-# mirror://cpan/authors/id/L/LD/LDS/GBrowse-2.33.tar.gz
-SRC_URI="
- mirror://cpan/authors/id/L/LD/LDS/${MY_P}.tar.gz
- test? (
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/saccharomyces_cerevisiae.gff.bz2
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/Refseq_Genome_TBLASTX.tar.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/README-gff-files
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/human.gff.tar.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/yeast.fasta.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/yeast.gff.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/worm.fasta.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/worm.gff.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/fly.fasta.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/fly.gff.gz )"
-
-LICENSE="Artistic"
-# webapp ebuilds do not set SLOT
-KEYWORDS="~x86 ~amd64"
-IUSE="cgi fastcgi minimal mysql pdf postgres svg test" # lwp moby scf
-
-S="${WORKDIR}/${MY_P}"
-
-# TODO: dev-perl/MOBY, dev-perl/Bio-SCF, dev-perl/Safe-World (not compatible w/perl-5.10)
-# how about mod_fcgi and dev-libs/fcgi and mod_scgi?
-DEPEND="!!sci-biology/GBrowse
- >=virtual/perl-Module-Build-0.380.0
- >=dev-lang/perl-5.8.8:=
- dev-perl/Capture-Tiny
- >=sci-biology/bioperl-1.6.901
- >=dev-perl/GD-2.07
- dev-perl/IO-String
- virtual/perl-Digest-MD5
- >=dev-perl/CGI-Session-4.03
- dev-perl/Statistics-Descriptive
- >=dev-perl/Bio-Graphics-2.26
- >=dev-perl/JSON-2.510.0
- dev-perl/TermReadKey
- dev-perl/libwww-perl
- svg? ( dev-perl/GD-SVG )
- pdf? ( media-gfx/inkscape )
- mysql? ( dev-perl/DBD-mysql )
- postgres? ( dev-perl/DBD-Pg )
- sci-biology/ucsc-genome-browser" # that provides bigWig.h and jkweb.a, aka Jim Kent's src
-
-# TODO: based on the following message in apache/error_log the list of deps should be longer
-# GBROWSE NOTICE: To enable PDF generation, please enter the directory "/home/httpd" and run the commands: "sudo mkdir .inkscape .gnome2" and "sudo chown apache .inkscape .gnome2". To turn off this message add "generate pdf = 0" to the [GENERAL] section of your GBrowse.conf configuration file., referer: http://127.0.0.1/gbrowse/cgi-bin/gbrowse_details/yeast?ref=chrII;start=90739;end=92028;name=YBL069W;class=Sequence;feature_id=881;db_id=annotations%3Adatabase
-
-RDEPEND="${DEPEND}
- >=www-servers/apache-2.0.47
- fastcgi? ( dev-libs/fcgi )
- www-apache/mod_fastcgi
- dev-perl/DBI
- || ( dev-perl/DBD-Pg dev-perl/DBD-mysql )
- !minimal? (
- dev-perl/File-NFSLock
- dev-perl/FCGI
- virtual/perl-Math-BigInt
- virtual/perl-Math-BigInt-FastCalc
- dev-perl/Math-BigInt-GMP
- dev-perl/Digest-SHA1
- dev-perl/Crypt-SSLeay
- dev-perl/Net-SMTP-SSL
- dev-perl/Net-OpenID-Consumer
- virtual/perl-DB_File
- dev-perl/DB_File-Lock
- dev-perl/GD-SVG
- dev-perl/Text-Shellwords
- dev-perl/XML-Twig
- dev-perl/XML-DOM
- dev-perl/XML-Writer
- dev-perl/XML-Parser
- dev-perl/Bio-Das
- dev-perl/Text-Shellwords
- postgres? ( >=dev-perl/Bio-DB-Das-Chado-0.32 )
- >=dev-perl/Bio-SamTools-1.29
- >=dev-perl/Bio-BigFile-1.06
- )"
-
-src_prepare() {
- sed -i 's/return unless -t STDIN/return/' install_util/GBrowseInstall.pm || die "Failed to kill the interactive behavior of install_util/GBrowseInstall.pm"
- sed -i 's/process_/bp_process_/g' INSTALL || die "Failed to prepend bp_ prefix to INSTALL file"
- epatch \
- "${FILESDIR}"/GBrowseInstall.pm-"${PV}".patch \
- "${FILESDIR}"/destdir.patch \
- "${FILESDIR}"/fix-PNG-export.patch \
- "${FILESDIR}"/symlink.patch \
- "${FILESDIR}"/gbrowse_metadb_config.pl.patch \
- "${FILESDIR}"/disable-gbrowse_metadb_config.pl.patch
- for f in conf/synteny/wild_rice_synteny.conf conf/synteny/rice_synteny.conf conf/GBrowse.conf \
- htdocs/tutorial/tutorial.html htdocs/index.html lib/Bio/Graphics/Browser2/Action.pm \
- Changes; do
- sed -i 's#/var/lib/gbrowse2#/var/db/gbrowse2#' $f || die "Failed to rewrite /var/lib/gbrowse2 to /var/db/gbrowse2 in $f"
- done
- for f in htdocs/index.html; do
- sed -i 's#/usr/lib/cgi-bin/gb2#/usr/share/webapps/gbrowse/"${PV}"/htdocs/cgi-bin#' $f || die "Failed to rewrite /usr/lib/cgi-bin/gb2 to /usr/share/webapps/gbrowse/"${PV}"/htdocs/cgi-bin in $f"
- done
-}
-
-src_configure() {
- # GBROWSE_ROOT is the root path in SRC_URI to be prepended
- # /usr/share/webapps/gbrowse/2.03/htdocs/etc/gbrowse/GBrowse.conf
- webapp_src_preinst
- perl Makefile.PL \
- HTDOCS="${MY_HTDOCSDIR}" \
- CGIBIN="${MY_HTDOCSDIR}"/cgi-bin \
- CONF="${MY_HTDOCSDIR}"/etc/gbrowse \
- PACKAGE_DIR="${D}" \
- INSTALLDIRS=vendor \
- GBROWSE_ROOT="gbrowse" \
- DESTDIR="${D}" \
- DATABASES="/var/db/gbrowse2/databases" \
- PERSISTENT="/var/db/gbrowse2" \
- TMP="/var/tmp/gbrowse2" \
- INSTALLETC="n" \
- INSTALLCONF="n" \
- WWWUSER="apache" \
- DO_XS=1 \
- NONROOT=1 \
- || die
-}
-
-src_install() {
- mydoc="Changes README TODO INSTALL"
- perl-module_src_install
-
- # TODO: write our own readme
- webapp_postinst_txt en "${S}"/INSTALL
- webapp_src_install || die "Failed running webapp_src_install"
-
- # should create a /etc/init.d/ startup script based on this
- # /var/tmp/portage/sci-biology/gbrowse-2.03/work/GBrowse-2.03/etc/init.d/gbrowse-slave
-
- mkdir -p "${D}"/var/tmp/gbrowse2/images
- chown -R apache.apache "${D}"/var/tmp/gbrowse2
-
- # mkdir -p "${D}"/var/www/localhost/htdocs/gbrowse || die
- # ln -s "${D}"/var/tmp/gbrowse2/images "${D}"/usr/share/webapps/gbrowse/"${PV}"/htdocs/i || die
-
- # whole "${D}"/var/db/gbrowse2 has to be owned by apache.apache otherwise:
- # 1. you hit an error that /var/db/gbrowse2/sessions/cgisess.db.lck
- # [no, it is not enough chown -R apache.apache /var/db/gbrowse2/sessions, the parent dir has to be apapche.apache as well]
- # 2. even if you set /var/db/gbrowse2 to apache.apache still it is not enough, you will get
- # [Tue Jan 17 14:59:40 2012] [error] [client 127.0.0.1] Use of uninitialized value $label in lc at /usr/lib/perl5/vendor_perl/5.12.4/i686-linux-thread-multi/Bio/Graphics/Browser2/AuthorizedFeatureFile.pm line 34., referer: http://127.0.0.1/gbrowse/cgi-bin/gbrowse/yeast/
-
- mkdir -p "${D}"/var/db/gbrowse2
- mkdir -p "${D}"/var/db/gbrowse2/databases
- mkdir -p "${D}"/var/db/gbrowse2/sessions "${D}"/var/db/gbrowse2/userdata
- chown -R apache.apache "${D}"/var/db/gbrowse2 # it has to be owned by apache.apache otherwise /var/db/gbrowse2/sessions/cgisess.db.lck cannot be created although /var/db/gbrowse2/sessions is owner by apache.apache
-
- einfo "Dropping trailing 'databases' from db_variable in conf/GBrowse.conf"
- sed -i 's#/var/db/gbrowse2/databases#/var/db/gbrowse2#' conf/GBrowse.conf || die "Failed to dropping trailing 'databases' from db_variable in conf/GBrowse.conf"
-
- einfo "Probably you want to install a cron job to remove the generated temporary images:"
- einfo "find /var/tmp/gbrowse2/images -type f -atime +20 -print -exec rm {}"
-
- einfo "Make sure you compiled apache with +cgi and do"
- einfo "cp -i ${FILESDIR}/gbrowse.conf.vhosts.d /etc/apache2/vhosts.d/gbrowse.conf"
-
- sed -i "s#"${D}"##g" "${S}"/install_util/GBrowseInstall.pm || die
- sed -i "s#"${D}"##" "${S}"/blib/conf/GBrowse.conf*
- sed -i 's#DBI:SQLite:'${D}'/var/lib/gbrowse2/databases/#DBI:SQLite:/var/db/gbrowse2/databases/#' "${S}"/install_util/GBrowseInstall.pm || die
-}
-
-pkg_postinst() {
- webapp_pkg_postinst || die "webapp_pkg_postinst failed"
-
- einfo "Please run gbrowse_metadb_config.pl to update SQLite flatfiles of the live database."
- einfo "d='/usr/share/webapps/gbrowse/${PV}/htdocs/etc/gbrowse'; for f in \$d/*.conf.new; do \ "
- einfo " mv -i \$f \$d/\`basename \$f .new\`; done"
-
- einfo "Fix also the other copy of the file:"
- einfo "d='/var/www/localhost/htdocs/gbrowse/etc/gbrowse'; for f in \$d/*.conf.new; do \ "
- einfo " mv -i \$f \$d/\`basename \$f .new\`; done"
-}
-
-src_test() {
- mysql -uroot -p password -e 'create database yeast'
- mysql -uroot -p password -e 'grant all privileges on yeast.* to gbrowse@localhost'
- mysql -uroot -p password -e 'grant file on *.* to gbrowse@localhost'
- mysql -uroot -p password -e 'grant select on yeast.* to nobody@localhost'
-
- cd /usr/portage/distfiles || die
- gzip -d yeast.fasta.gz || die
- gzip -d yeast.gff.gz || die
- #gzip -d fly.fasta.gz
- #gzip -d fly.gff.gz
- bp_bulk_load_gff.pl -d yeast -fasta yeast.fasta yeast.gff || die
-}
diff --git a/sci-biology/gbrowse/gbrowse-2.48.ebuild b/sci-biology/gbrowse/gbrowse-2.48.ebuild
deleted file mode 100644
index aecc9bc31..000000000
--- a/sci-biology/gbrowse/gbrowse-2.48.ebuild
+++ /dev/null
@@ -1,201 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit eutils perl-module webapp
-
-MY_P="GBrowse-${PV}"
-
-DESCRIPTION="Display of genomic annotations on interactive web pages"
-HOMEPAGE="http://gmod.org/"
-# mirror://sourceforge/gmod/${MY_P}.tar.gz
-# mirror://cpan/authors/id/L/LD/LDS/GBrowse-2.33.tar.gz
-SRC_URI="
- mirror://cpan/authors/id/L/LD/LDS/${MY_P}.tar.gz
- test? (
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/saccharomyces_cerevisiae.gff.bz2
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/Refseq_Genome_TBLASTX.tar.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/README-gff-files
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/human.gff.tar.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/yeast.fasta.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/yeast.gff.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/worm.fasta.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/worm.gff.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/fly.fasta.gz
- http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/fly.gff.gz )"
-
-LICENSE="Artistic"
-# webapp ebuilds do not set SLOT
-KEYWORDS="~x86 ~amd64"
-IUSE="cgi fastcgi minimal mysql pdf postgres svg test" # lwp moby scf
-
-S="${WORKDIR}/${MY_P}"
-
-# TODO: dev-perl/MOBY, dev-perl/Bio-SCF, dev-perl/Safe-World (not compatible w/perl-5.10)
-# how about mod_fcgi and dev-libs/fcgi and mod_scgi?
-DEPEND="!!sci-biology/GBrowse
- >=virtual/perl-Module-Build-0.380.0
- >=dev-lang/perl-5.8.8:=
- dev-perl/Capture-Tiny
- >=sci-biology/bioperl-1.6.901
- >=dev-perl/GD-2.07
- dev-perl/IO-String
- virtual/perl-Digest-MD5
- >=dev-perl/CGI-Session-4.03
- dev-perl/Statistics-Descriptive
- >=dev-perl/Bio-Graphics-2.26
- >=dev-perl/JSON-2.510.0
- dev-perl/TermReadKey
- dev-perl/libwww-perl
- svg? ( dev-perl/GD-SVG )
- pdf? ( media-gfx/inkscape )
- mysql? ( dev-perl/DBD-mysql )
- postgres? ( dev-perl/DBD-Pg )
- sci-biology/ucsc-genome-browser" # that provides bigWig.h and jkweb.a, aka Jim Kent's src
-
-# TODO: based on the following message in apache/error_log the list of deps should be longer
-# GBROWSE NOTICE: To enable PDF generation, please enter the directory "/home/httpd" and run the commands: "sudo mkdir .inkscape .gnome2" and "sudo chown apache .inkscape .gnome2". To turn off this message add "generate pdf = 0" to the [GENERAL] section of your GBrowse.conf configuration file., referer: http://127.0.0.1/gbrowse/cgi-bin/gbrowse_details/yeast?ref=chrII;start=90739;end=92028;name=YBL069W;class=Sequence;feature_id=881;db_id=annotations%3Adatabase
-
-RDEPEND="${DEPEND}
- >=www-servers/apache-2.0.47
- fastcgi? ( dev-libs/fcgi )
- www-apache/mod_fastcgi
- dev-perl/DBI
- || ( dev-perl/DBD-Pg dev-perl/DBD-mysql )
- !minimal? (
- dev-perl/File-NFSLock
- dev-perl/FCGI
- virtual/perl-Math-BigInt
- virtual/perl-Math-BigInt-FastCalc
- dev-perl/Math-BigInt-GMP
- dev-perl/Digest-SHA1
- dev-perl/Crypt-SSLeay
- dev-perl/Net-SMTP-SSL
- dev-perl/Net-OpenID-Consumer
- virtual/perl-DB_File
- dev-perl/DB_File-Lock
- dev-perl/GD-SVG
- dev-perl/Text-Shellwords
- dev-perl/XML-Twig
- dev-perl/XML-DOM
- dev-perl/XML-Writer
- dev-perl/XML-Parser
- dev-perl/Bio-Das
- dev-perl/Text-Shellwords
- postgres? ( >=dev-perl/Bio-DB-Das-Chado-0.32 )
- >=dev-perl/Bio-SamTools-1.29
- >=dev-perl/Bio-BigFile-1.06
- <=sci-biology/primer3-2
- )"
-
-src_prepare() {
- sed -i 's/return unless -t STDIN/return/' install_util/GBrowseInstall.pm || die "Failed to kill the interactive behavior of install_util/GBrowseInstall.pm"
- sed -i 's/process_/bp_process_/g' INSTALL || die "Failed to prepend bp_ prefix to INSTALL file"
- epatch \
- "${FILESDIR}"/GBrowseInstall.pm-"${PV}".patch \
- "${FILESDIR}"/destdir.patch \
- "${FILESDIR}"/fix-PNG-export.patch \
- "${FILESDIR}"/symlink.patch \
- "${FILESDIR}"/gbrowse_metadb_config.pl.patch \
- "${FILESDIR}"/disable-gbrowse_metadb_config.pl.patch
- for f in conf/synteny/wild_rice_synteny.conf conf/synteny/rice_synteny.conf conf/GBrowse.conf \
- htdocs/tutorial/tutorial.html htdocs/index.html lib/Bio/Graphics/Browser2/Action.pm \
- Changes; do
- sed -i 's#/var/lib/gbrowse2#/var/db/gbrowse2#' $f || die "Failed to rewrite /var/lib/gbrowse2 to /var/db/gbrowse2 in $f"
- done
- for f in htdocs/index.html; do
- sed -i 's#/usr/lib/cgi-bin/gb2#/usr/share/webapps/gbrowse/"${PV}"/htdocs/cgi-bin#' $f || die "Failed to rewrite /usr/lib/cgi-bin/gb2 to /usr/share/webapps/gbrowse/"${PV}"/htdocs/cgi-bin in $f"
- done
-}
-
-src_configure() {
- # GBROWSE_ROOT is the root path in SRC_URI to be prepended
- # /usr/share/webapps/gbrowse/2.03/htdocs/etc/gbrowse/GBrowse.conf
- webapp_src_preinst
- perl Makefile.PL \
- HTDOCS="${MY_HTDOCSDIR}" \
- CGIBIN="${MY_HTDOCSDIR}"/cgi-bin \
- CONF="${MY_HTDOCSDIR}"/etc/gbrowse \
- PACKAGE_DIR="${D}" \
- INSTALLDIRS=vendor \
- GBROWSE_ROOT="gbrowse" \
- DESTDIR="${D}" \
- DATABASES="/var/db/gbrowse2/databases" \
- PERSISTENT="/var/db/gbrowse2" \
- TMP="/var/tmp/gbrowse2" \
- INSTALLETC="n" \
- INSTALLCONF="n" \
- WWWUSER="apache" \
- DO_XS=1 \
- NONROOT=1 \
- || die
-}
-
-src_install() {
- mydoc="Changes README TODO INSTALL"
- perl-module_src_install
-
- # TODO: write our own readme
- webapp_postinst_txt en "${S}"/INSTALL
- webapp_src_install || die "Failed running webapp_src_install"
-
- # should create a /etc/init.d/ startup script based on this
- # /var/tmp/portage/sci-biology/gbrowse-2.03/work/GBrowse-2.03/etc/init.d/gbrowse-slave
-
- mkdir -p "${D}"/var/tmp/gbrowse2/images
- chown -R apache.apache "${D}"/var/tmp/gbrowse2
-
- # mkdir -p "${D}"/var/www/localhost/htdocs/gbrowse || die
- # ln -s "${D}"/var/tmp/gbrowse2/images "${D}"/usr/share/webapps/gbrowse/"${PV}"/htdocs/i || die
-
- # whole "${D}"/var/db/gbrowse2 has to be owned by apache.apache otherwise:
- # 1. you hit an error that /var/db/gbrowse2/sessions/cgisess.db.lck
- # [no, it is not enough chown -R apache.apache /var/db/gbrowse2/sessions, the parent dir has to be apapche.apache as well]
- # 2. even if you set /var/db/gbrowse2 to apache.apache still it is not enough, you will get
- # [Tue Jan 17 14:59:40 2012] [error] [client 127.0.0.1] Use of uninitialized value $label in lc at /usr/lib/perl5/vendor_perl/5.12.4/i686-linux-thread-multi/Bio/Graphics/Browser2/AuthorizedFeatureFile.pm line 34., referer: http://127.0.0.1/gbrowse/cgi-bin/gbrowse/yeast/
-
- mkdir -p "${D}"/var/db/gbrowse2
- mkdir -p "${D}"/var/db/gbrowse2/databases
- mkdir -p "${D}"/var/db/gbrowse2/sessions "${D}"/var/db/gbrowse2/userdata
- chown -R apache.apache "${D}"/var/db/gbrowse2 # it has to be owned by apache.apache otherwise /var/db/gbrowse2/sessions/cgisess.db.lck cannot be created although /var/db/gbrowse2/sessions is owner by apache.apache
-
- einfo "Dropping trailing 'databases' from db_variable in conf/GBrowse.conf"
- sed -i 's#/var/db/gbrowse2/databases#/var/db/gbrowse2#' conf/GBrowse.conf || die "Failed to dropping trailing 'databases' from db_variable in conf/GBrowse.conf"
-
- einfo "Probably you want to install a cron job to remove the generated temporary images:"
- einfo "find /var/tmp/gbrowse2/images -type f -atime +20 -print -exec rm {}"
-
- einfo "Make sure you compiled apache with +cgi and do"
- einfo "cp -i ${FILESDIR}/gbrowse.conf.vhosts.d /etc/apache2/vhosts.d/gbrowse.conf"
-
- sed -i "s#"${D}"##g" "${S}"/install_util/GBrowseInstall.pm || die
- sed -i "s#"${D}"##" "${S}"/blib/conf/GBrowse.conf*
- sed -i 's#DBI:SQLite:'${D}'/var/lib/gbrowse2/databases/#DBI:SQLite:/var/db/gbrowse2/databases/#' "${S}"/install_util/GBrowseInstall.pm || die
-}
-
-pkg_postinst() {
- webapp_pkg_postinst || die "webapp_pkg_postinst failed"
-
- einfo "Please run gbrowse_metadb_config.pl to update SQLite flatfiles of the live database."
- einfo "d='/usr/share/webapps/gbrowse/${PV}/htdocs/etc/gbrowse'; for f in \$d/*.conf.new; do \ "
- einfo " mv -i \$f \$d/\`basename \$f .new\`; done"
-
- einfo "Fix also the other copy of the file:"
- einfo "d='/var/www/localhost/htdocs/gbrowse/etc/gbrowse'; for f in \$d/*.conf.new; do \ "
- einfo " mv -i \$f \$d/\`basename \$f .new\`; done"
-}
-
-src_test() {
- mysql -uroot -p password -e 'create database yeast'
- mysql -uroot -p password -e 'grant all privileges on yeast.* to gbrowse@localhost'
- mysql -uroot -p password -e 'grant file on *.* to gbrowse@localhost'
- mysql -uroot -p password -e 'grant select on yeast.* to nobody@localhost'
-
- cd /usr/portage/distfiles || die
- gzip -d yeast.fasta.gz || die
- gzip -d yeast.gff.gz || die
- #gzip -d fly.fasta.gz
- #gzip -d fly.gff.gz
- bp_bulk_load_gff.pl -d yeast -fasta yeast.fasta yeast.gff || die
-}
diff --git a/sci-biology/gbrowse/metadata.xml b/sci-biology/gbrowse/metadata.xml
deleted file mode 100644
index d0116db4a..000000000
--- a/sci-biology/gbrowse/metadata.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>sci-biology@gentoo.org</email>
- <name>Gentoo Biology Project</name>
- </maintainer>
- <longdescription lang="en">
- GBrowse is a generic genome browser written in perl, could run as CGI,
- under mod_perl. Something called Apache::Registry should make it faster.
- It uses mysql or postgres as the storage engine.
- </longdescription>
- <upstream>
- <remote-id type="sourceforge">gmod</remote-id>
- </upstream>
-</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-26 8:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-26 8:37 [gentoo-commits] proj/sci:master commit in: profiles/, sci-biology/gbrowse/files/, sci-biology/gbrowse/ Justin Lecher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox