Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/gbrowse/files/, sci-biology/gbrowse/
Date: Tue, 28 Jun 2011 17:19:27
Message-Id: a50c105c259094c0b358fb024a326dccc3751247.jlec@gentoo
1 commit: a50c105c259094c0b358fb024a326dccc3751247
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 26 08:02:44 2011 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 26 08:02:44 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=a50c105c
7
8 Version Bump
9
10 (Portage version: 2.2.0_alpha41/git/Linux x86_64, signed Manifest commit with key 70EB7916)
11
12 ---
13 sci-biology/gbrowse/ChangeLog | 9 +
14 .../gbrowse/files/GBrowseInstall.pm-2.26.patch | 72 --------
15 ....pm-2.33.patch => GBrowseInstall.pm-2.38.patch} | 0
16 ...-disable-gbrowse_metadb_config.pl.pm-2.26.patch | 21 ---
17 sci-biology/gbrowse/gbrowse-2.26.ebuild | 170 --------------------
18 .../{gbrowse-2.33.ebuild => gbrowse-2.38.ebuild} | 0
19 6 files changed, 9 insertions(+), 263 deletions(-)
20
21 diff --git a/sci-biology/gbrowse/ChangeLog b/sci-biology/gbrowse/ChangeLog
22 index b66d69a..e36ad47 100644
23 --- a/sci-biology/gbrowse/ChangeLog
24 +++ b/sci-biology/gbrowse/ChangeLog
25 @@ -2,6 +2,15 @@
26 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
27 # $Header: /var/cvsroot/gentoo-x86/sci-biology/generic-genome-browser/ChangeLog,v 1.10 2007/07/29 17:07:38 phreak Exp $
28
29 +*gbrowse-2.38 (26 Jun 2011)
30 +
31 + 26 Jun 2011; Justin Lecher <jlec@g.o> -gbrowse-2.26.ebuild,
32 + -files/GBrowseInstall.pm-2.26.patch,
33 + -files/GBrowseInstall.pm-disable-gbrowse_metadb_config.pl.pm-2.26.patch,
34 + -gbrowse-2.33.ebuild, -files/GBrowseInstall.pm-2.33.patch,
35 + +gbrowse-2.38.ebuild, +files/GBrowseInstall.pm-2.38.patch:
36 + Version Bump
37 +
38 25 Jun 2011; Justin Lecher <jlec@g.o> -gbrowse-1.70.ebuild,
39 -gbrowse-2.00.ebuild, gbrowse-2.26.ebuild, gbrowse-2.33.ebuild:
40 Cleaned ebuild, 'http://search.cpan.org/CPAN' found in thirdpartymirrors
41
42 diff --git a/sci-biology/gbrowse/files/GBrowseInstall.pm-2.26.patch b/sci-biology/gbrowse/files/GBrowseInstall.pm-2.26.patch
43 deleted file mode 100644
44 index 4c17f8d..0000000
45 --- a/sci-biology/gbrowse/files/GBrowseInstall.pm-2.26.patch
46 +++ /dev/null
47 @@ -1,72 +0,0 @@
48 ---- install_util/GBrowseInstall.pm.ori 2010-11-27 12:01:58.000000000 +0100
49 -+++ install_util/GBrowseInstall.pm 2010-11-27 12:02:15.000000000 +0100
50 -@@ -436,8 +436,8 @@
51 - $self->ownership_warning($databases,$user);
52 - }
53 -
54 -- chmod 0755,File::Spec->catfile($self->install_path->{'etc'},'init.d','gbrowse-slave');
55 -- $self->fix_selinux;
56 -+ # chmod 0755,File::Spec->catfile($self->install_path->{'etc'},'init.d','gbrowse-slave');
57 -+ # $self->fix_selinux;
58 -
59 - my $base = basename($self->install_path->{htdocs});
60 -
61 ---- install_util/GBrowseInstall.pm.ori 2011-02-14 13:39:46.000000000 +0100
62 -+++ install_util/GBrowseInstall.pm 2011-02-14 13:41:50.000000000 +0100
63 -@@ -438,25 +438,25 @@
64 - $gid =~ /^(\d+)$/;
65 - $gid = $1;
66 -
67 -- unless (chown $uid,$gid,$tmp) {
68 -- $self->ownership_warning($tmp,$user);
69 -- }
70 -+# unless (chown $uid,$gid,$tmp) {
71 -+# $self->ownership_warning($tmp,$user);
72 -+# }
73 -
74 - my $htdocs_i = File::Spec->catfile($self->install_path->{htdocs},'i');
75 - my $images = File::Spec->catfile($tmp,'images');
76 - my $htdocs = $self->install_path->{htdocs};
77 -- chown $uid,-1,$htdocs;
78 -- {
79 -- local $> = $uid;
80 -- symlink($images,$htdocs_i); # so symlinkifowner match works!
81 -- }
82 -- chown $>,-1,$self->install_path->{htdocs};
83 -+# chown $uid,-1,$htdocs;
84 -+# {
85 -+# local $> = $uid;
86 -+# symlink($images,$htdocs_i); # so symlinkifowner match works!
87 -+# }
88 -+# chown $>,-1,$self->install_path->{htdocs};
89 -
90 - my $databases = $self->install_path->{'databases'};
91 -
92 -- unless (chown $uid,$gid,glob(File::Spec->catfile($databases,'').'*')) {
93 -- $self->ownership_warning($databases,$user);
94 -- }
95 -+# unless (chown $uid,$gid,glob(File::Spec->catfile($databases,'').'*')) {
96 -+# $self->ownership_warning($databases,$user);
97 -+# }
98 -
99 - # chmod 0755,File::Spec->catfile($self->install_path->{'etc'},'init.d','gbrowse-slave');
100 - # $self->fix_selinux;
101 ---- install_util/GBrowseInstall.pm.ori 2011-02-14 13:50:41.000000000 +0100
102 -+++ install_util/GBrowseInstall.pm 2011-02-14 13:51:46.000000000 +0100
103 -@@ -470,11 +470,11 @@
104 - my @inc = map{"-I$_"} split ':',$self->added_to_INC;
105 - system $perl,@inc,$metadb_script;
106 -
107 -- if (Module::Build->y_n(
108 -- "It is recommended that you restart Apache. Shall I try this for you?",'y'
109 -- )) {
110 -- system "sudo /etc/init.d/apache2 restart";
111 -- }
112 -+# if (Module::Build->y_n(
113 -+# "It is recommended that you restart Apache. Shall I try this for you?",'y'
114 -+# )) {
115 -+# system "sudo /etc/init.d/apache2 restart";
116 -+# }
117 -
118 - print STDERR "\n***INSTALLATION COMPLETE***\n";
119 - print STDERR "Load http://localhost/$base for demo and documentation.\n";
120
121 diff --git a/sci-biology/gbrowse/files/GBrowseInstall.pm-2.33.patch b/sci-biology/gbrowse/files/GBrowseInstall.pm-2.38.patch
122 similarity index 100%
123 rename from sci-biology/gbrowse/files/GBrowseInstall.pm-2.33.patch
124 rename to sci-biology/gbrowse/files/GBrowseInstall.pm-2.38.patch
125
126 diff --git a/sci-biology/gbrowse/files/GBrowseInstall.pm-disable-gbrowse_metadb_config.pl.pm-2.26.patch b/sci-biology/gbrowse/files/GBrowseInstall.pm-disable-gbrowse_metadb_config.pl.pm-2.26.patch
127 deleted file mode 100644
128 index 0dde704..0000000
129 --- a/sci-biology/gbrowse/files/GBrowseInstall.pm-disable-gbrowse_metadb_config.pl.pm-2.26.patch
130 +++ /dev/null
131 @@ -1,21 +0,0 @@
132 ---- install_util/GBrowseInstall.pm.ori 2011-05-11 04:10:08.000000000 +0200
133 -+++ install_util/GBrowseInstall.pm 2011-05-11 04:10:26.000000000 +0200
134 -@@ -463,12 +463,12 @@
135 -
136 - my $base = basename($self->install_path->{htdocs});
137 -
138 -- # Configure the databases, if needed.
139 -- print STDERR "Updating user account database...\n";
140 -- my $metadb_script = File::Spec->catfile("bin", "gbrowse_metadb_config.pl");
141 -- my $perl = $self->perl;
142 -- my @inc = map{"-I$_"} split ':',$self->added_to_INC;
143 -- system $perl,@inc,$metadb_script;
144 -+# # Configure the databases, if needed.
145 -+# print STDERR "Updating user account database...\n";
146 -+# my $metadb_script = File::Spec->catfile("bin", "gbrowse_metadb_config.pl");
147 -+# my $perl = $self->perl;
148 -+# my @inc = map{"-I$_"} split ':',$self->added_to_INC;
149 -+# system $perl,@inc,$metadb_script;
150 -
151 - # if (Module::Build->y_n(
152 - # "It is recommended that you restart Apache. Shall I try this for you?",'y'
153
154 diff --git a/sci-biology/gbrowse/gbrowse-2.26.ebuild b/sci-biology/gbrowse/gbrowse-2.26.ebuild
155 deleted file mode 100644
156 index 363d18d..0000000
157 --- a/sci-biology/gbrowse/gbrowse-2.26.ebuild
158 +++ /dev/null
159 @@ -1,170 +0,0 @@
160 -# Copyright 1999-2011 Gentoo Foundation
161 -# Distributed under the terms of the GNU General Public License v2
162 -# $Header: $
163 -EAPI="2"
164 -
165 -inherit perl-module webapp
166 -
167 -MY_P="GBrowse-${PV}"
168 -
169 -DESCRIPTION="Display of genomic annotations on interactive web pages"
170 -HOMEPAGE="http://gmod.org/"
171 -SRC_URI="
172 - mirror://sourceforge/gmod/${MY_P}.tar.gz
173 - test? (
174 - http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/saccharomyces_cerevisiae.gff.bz2
175 - http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/Refseq_Genome_TBLASTX.tar.gz
176 - http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/README-gff-files
177 - http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/human.gff.tar.gz
178 - http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/yeast.fasta.gz
179 - http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/yeast.gff.gz
180 - http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/worm.fasta.gz
181 - http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/worm.gff.gz
182 - http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/fly.fasta.gz
183 - http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/Sample%20Data%20Files/fly.gff.gz )"
184 -
185 -LICENSE="Artistic"
186 -# webapp ebuilds do not set SLOT
187 -KEYWORDS="~x86 ~amd64"
188 -IUSE="-minimal svg test" # lwp moby scf
189 -
190 -S="${WORKDIR}/${MY_P}"
191 -
192 -# TODO: dev-perl/MOBY, dev-perl/Bio-SCF, dev-perl/Safe-World (not compatible w/perl-5.10)
193 -# TODO: make sure www-servers/apache +cgi
194 -DEPEND="
195 - >=dev-lang/perl-5.8.8
196 - dev-perl/Capture-Tiny
197 - >=sci-biology/bioperl-1.6
198 - >=dev-perl/GD-2.07
199 - dev-perl/IO-String
200 - virtual/perl-Digest-MD5
201 - >=dev-perl/CGI-Session-4.03
202 - dev-perl/Statistics-Descriptive
203 - >=dev-perl/Bio-Graphics-1.97
204 - dev-perl/JSON
205 - dev-perl/libwww-perl
206 - svg? ( dev-perl/GD-SVG )"
207 -
208 -# TODO: based on the following message in apache/error_log the list of deps should be longer
209 -# 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
210 -
211 -# * Bio::DB::BigFile is not installed
212 -# * Bio::DB::Sam is not installed
213 -# * DBD::Pg is not installed
214 -
215 -RDEPEND="${DEPEND}
216 - >=www-servers/apache-2.0.47
217 - www-apache/mod_fastcgi
218 - dev-perl/DBI
219 - || ( dev-perl/DBD-Pg dev-perl/DBD-mysql )
220 - !minimal? (
221 - dev-perl/File-NFSLock
222 - dev-perl/FCGI
223 - perl-core/Math-BigInt
224 - perl-core/Math-BigInt-FastCalc
225 - dev-perl/Math-BigInt-GMP
226 - dev-perl/Digest-SHA1
227 - dev-perl/Crypt-SSLeay
228 - dev-perl/Net-SMTP-SSL
229 - dev-perl/Net-OpenID-Consumer
230 - virtual/perl-DB_File
231 - dev-perl/DB_File-Lock
232 - dev-perl/GD-SVG
233 - dev-perl/Text-Shellwords
234 - dev-perl/XML-Twig
235 - dev-perl/XML-DOM
236 - dev-perl/XML-Writer
237 - dev-perl/XML-Parser
238 - dev-perl/Bio-Das
239 - dev-perl/Text-Shellwords
240 - )"
241 -
242 -src_prepare() {
243 - sed -i 's/return unless -t STDIN/return/' install_util/GBrowseInstall.pm || die
244 - sed -i 's/process_/bp_process_/g' INSTALL || die
245 - epatch "${FILESDIR}"/GBrowseInstall.pm-"${PV}".patch || die "Failed to patch"
246 - epatch "${FILESDIR}"/GBrowseInstall.pm-disable-gbrowse_metadb_config.pl"${PV}".pm.patch || die "Failed to patch"
247 -}
248 -
249 -src_configure() {
250 - # GBROWSE_ROOT is the root path in SRC_URI to be prepended
251 - # /usr/share/webapps/gbrowse/2.03/htdocs/etc/gbrowse/GBrowse.conf
252 -
253 - # if we use CONF="${D}${MY_HTDOCSDIR}"/etc/gbrowse the the install process
254 - # will not find currently installed config files and therefore place *.conf
255 - # files into "{$S}"/blib/conf/*.conf instead of creating "{$S}"/blib/conf/*.conf.new
256 - webapp_src_preinst
257 - perl Makefile.PL \
258 - HTDOCS="${MY_HTDOCSDIR}" \
259 - CGIBIN="${MY_HTDOCSDIR}"/cgi-bin \
260 - CONF="${MY_HTDOCSDIR}"/etc/gbrowse \
261 - PACKAGE_DIR="${D}" \
262 - INSTALLDIRS=vendor \
263 - GBROWSE_ROOT="gbrowse" \
264 - DESTDIR="${D}" \
265 - DATABASES="/var/www/gbrowse2/databases/" \
266 - TMP="/var/tmp/gbrowse2" \
267 - INSTALLETC="n" \
268 - INSTALLCONF="n" \
269 - WWWUSER="apache" \
270 - DO_XS=1 \
271 - NONROOT=1 \
272 - || die
273 -
274 - #sed -i 's#DBI:SQLite:#DBI:SQLite:'${D}'#' "${S}"/install_util/GBrowseInstall.pm || die
275 - #sed -i 's#DBI:SQLite:#DBI:SQLite:'${D}'#' "${S}"/conf/GBrowse.conf || die
276 - #sed -i 's#/var/www/gbrowse2/databases/#'${D}'/var/www/gbrowse2/databases/#' "${S}"/_build/build_params
277 - #sed -i 's#/var/www/gbrowse2/databases/#'${D}'/var/www/gbrowse2/databases/#' "${S}"/_build/config_data
278 - #sed -i 's#/var/www/gbrowse2/databases/#'${D}'/var/www/gbrowse2/databases/#' "${S}"/_build/runtime_params
279 -}
280 -
281 -src_install() {
282 - mydoc="Changes README TODO INSTALL"
283 - perl-module_src_install
284 -
285 - # TODO: write our own readme
286 - webapp_src_preinst
287 - webapp_postinst_txt en "${S}"/INSTALL || die
288 - webapp_src_install
289 -
290 - # should create a /etc/init.d/ startup script based on this
291 - # /var/tmp/portage/sci-biology/gbrowse-2.03/work/GBrowse-2.03/etc/init.d/gbrowse-slave
292 -
293 - # pre-create the directory so we can force its owner later on
294 - mkdir -p "${D}"/var/www/gbrowse2/databases || die
295 - chown -R apache.apache "${D}"/var/www/gbrowse2/databases || die
296 - mkdir -p "${D}"/var/www/localhost/htdocs/gbrowse || die
297 -
298 - ln -s "${D}"/var/tmp/gbrowse2/images "${D}"/var/www/localhost/htdocs/gbrowse/i || die
299 -
300 - einfo "Probably you want to install a cron job to remove the generated temporary images:"
301 - einfo "find /var/tmp/gbrowse2/images -type f -atime +20 -print -exec rm {}"
302 -
303 - einfo "Make sure you compiled apache with +cgi and copy ${FILESDIR}/gbrowse.conf.vhosts.d to /etc/apache2/vhosts.d/"
304 -
305 - sed -i "s#"${D}"##g" "${S}"/install_util/GBrowseInstall.pm || die
306 - sed -i "s#"${D}"##" "${S}"/blib/conf/GBrowse.conf*
307 - sed -i 's#DBI:SQLite:'${D}'/var/www/gbrowse2/databases/#DBI:SQLite:/var/www/gbrowse2/databases/#' "${S}"/install_util/GBrowseInstall.pm || die
308 -}
309 -
310 -pkg_postinst() {
311 - webapp_pkg_postinst || die "webapp_pkg_postinst failed"
312 -
313 - einfo "Please run gbrowse_metadb_config.pl to upate SQlite flatfiles or the live database"
314 - einfo "This was disabled by "${FILESDIR}"/GBrowseInstall.pm-disable-gbrowse_metadb_config.pl.pm.patch"
315 -}
316 -
317 -src_test() {
318 - mysql -uroot -p password -e 'create database yeast'
319 - mysql -uroot -p password -e 'grant all privileges on yeast.* to gbrowse@localhost'
320 - mysql -uroot -p password -e 'grant file on *.* to gbrowse@localhost'
321 - mysql -uroot -p password -e 'grant select on yeast.* to nobody@localhost'
322 -
323 - cd /usr/portage/distfiles || die
324 - gzip -d yeast.fasta.gz || die
325 - gzip -d yeast.gff.gz || die
326 - #gzip -d fly.fasta.gz
327 - #gzip -d fly.gff.gz
328 - bp_bulk_load_gff.pl -d yeast -fasta yeast.fasta yeast.gff || die
329 -}
330
331 diff --git a/sci-biology/gbrowse/gbrowse-2.33.ebuild b/sci-biology/gbrowse/gbrowse-2.38.ebuild
332 similarity index 100%
333 rename from sci-biology/gbrowse/gbrowse-2.33.ebuild
334 rename to sci-biology/gbrowse/gbrowse-2.38.ebuild