summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--biology/bcf-score/Makefile1
-rw-r--r--biology/bcf-score/files/patch-plugins_munge.c11
-rw-r--r--biology/bcf-score/files/patch-plugins_score.c11
3 files changed, 23 insertions, 0 deletions
diff --git a/biology/bcf-score/Makefile b/biology/bcf-score/Makefile
index 96207e1f8f84..f183641f4a4f 100644
--- a/biology/bcf-score/Makefile
+++ b/biology/bcf-score/Makefile
@@ -1,5 +1,6 @@
PORTNAME= bcf-score
DISTVERSION= 1.16
+PORTREVISION= 1
CATEGORIES= biology
MASTER_SITES= https://software.broadinstitute.org/software/score/
DISTFILES+= score_${DISTVERSION}-20221221.tar.gz
diff --git a/biology/bcf-score/files/patch-plugins_munge.c b/biology/bcf-score/files/patch-plugins_munge.c
new file mode 100644
index 000000000000..8906f57a0a73
--- /dev/null
+++ b/biology/bcf-score/files/patch-plugins_munge.c
@@ -0,0 +1,11 @@
+--- plugins/munge.c.orig 2023-07-16 07:57:54 UTC
++++ plugins/munge.c
+@@ -120,7 +120,7 @@ int tsv_read_string(tsv_t *tsv, bcf1_t *rec, void *usr
+ return 0;
+ }
+
+-static const int (*tsv_setters[])(tsv_t *tsv, bcf1_t *rec, void *usr) = {tsv_setter_id_flexible, // SNP
++static int (*tsv_setters[])(tsv_t *tsv, bcf1_t *rec, void *usr) = {tsv_setter_id_flexible, // SNP
+ tsv_setter_pos_flexible, // BP
+ tsv_setter_chrom_flexible, // CHR
+ tsv_read_allele, // A1
diff --git a/biology/bcf-score/files/patch-plugins_score.c b/biology/bcf-score/files/patch-plugins_score.c
new file mode 100644
index 000000000000..c90a66f313b6
--- /dev/null
+++ b/biology/bcf-score/files/patch-plugins_score.c
@@ -0,0 +1,11 @@
+--- plugins/score.c.orig 2023-07-16 08:04:54 UTC
++++ plugins/score.c
+@@ -140,7 +140,7 @@ static int tsv_read_allele(tsv_t *tsv, bcf1_t *rec, vo
+ return 0;
+ }
+
+-static const int (*tsv_setters[])(tsv_t *tsv, bcf1_t *rec, void *usr) = {tsv_setter_id_flexible, // SNP
++static int (*tsv_setters[])(tsv_t *tsv, bcf1_t *rec, void *usr) = {tsv_setter_id_flexible, // SNP
+ tsv_setter_pos_flexible, // BP
+ tsv_setter_chrom_flexible, // CHR
+ tsv_read_allele, // A1