summaryrefslogtreecommitdiff
path: root/sci-biology/bioperl-db/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-biology/bioperl-db/files
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-biology/bioperl-db/files')
-rw-r--r--sci-biology/bioperl-db/files/bioperl-db-1.6.9-db.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/sci-biology/bioperl-db/files/bioperl-db-1.6.9-db.patch b/sci-biology/bioperl-db/files/bioperl-db-1.6.9-db.patch
new file mode 100644
index 000000000000..36698651c7d1
--- /dev/null
+++ b/sci-biology/bioperl-db/files/bioperl-db-1.6.9-db.patch
@@ -0,0 +1,45 @@
+From d689a1473977b0aa368590ba1f913521e4f466c7 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentfredric@gmail.com>
+Date: Tue, 18 Jul 2017 16:02:26 +1200
+Subject: [PATCH] Allow custom host/port configurations
+
+---
+ Build.PL | 4 ++--
+ t/DBTestHarness.pm | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/Build.PL b/Build.PL
+index ecc402e..a61190f 100755
+--- a/Build.PL
++++ b/Build.PL
+@@ -97,9 +97,9 @@ sub biosql_conf {
+ or die "Error: could not write to config file '$config_file'\n";
+
+ my %config = (driver => $drivers[0],
+- host => '127.0.0.1',
++ host => $ENV{GENTOO_DB_HOSTNAME} || '127.0.0.1',
+ user => 'root',
+- port => 3306,
++ port => $ENV{GENTOO_DB_PORT} || undef,
+ password => '',
+ dbname => 'bioseqdb',
+ database => 'biosql',
+diff --git a/t/DBTestHarness.pm b/t/DBTestHarness.pm
+index b660429..91e0c54 100755
+--- a/t/DBTestHarness.pm
++++ b/t/DBTestHarness.pm
+@@ -47,9 +47,9 @@ my $counter=0;
+ # Default settings as a hash
+ my $dflt = {
+ 'driver' => 'mysql',
+- 'host' => 'localhost',
++ 'host' => $ENV{GENTOO_DB_HOST} || 'localhost',
+ 'user' => 'root',
+- 'port' => undef,
++ 'port' => $ENV{GENTOO_DB_PORT} || undef,
+ 'password' => '',
+ 'schema_sql' => ['../biosql-schema/sql/biosqldb-mysql.sql'],
+ 'database' => 'biosql',
+--
+2.13.1
+