diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-biology/glimmer |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-biology/glimmer')
-rw-r--r-- | sci-biology/glimmer/Manifest | 13 | ||||
-rw-r--r-- | sci-biology/glimmer/files/glimmer-3.02-glibc210.patch | 24 | ||||
-rw-r--r-- | sci-biology/glimmer/files/glimmer-3.02-jobserver-fix.patch | 22 | ||||
-rw-r--r-- | sci-biology/glimmer/files/glimmer-3.02-ldflags.patch | 88 | ||||
-rw-r--r-- | sci-biology/glimmer/files/glimmer-3.02b-jobserver-fix.patch | 22 | ||||
-rw-r--r-- | sci-biology/glimmer/files/glimmer-3.02b-ldflags.patch | 88 | ||||
-rw-r--r-- | sci-biology/glimmer/files/glimmer-3.02b-rename_extract.patch | 196 | ||||
-rw-r--r-- | sci-biology/glimmer/glimmer-3.02-r3.ebuild | 60 | ||||
-rw-r--r-- | sci-biology/glimmer/glimmer-3.02b.ebuild | 67 | ||||
-rw-r--r-- | sci-biology/glimmer/metadata.xml | 8 |
10 files changed, 588 insertions, 0 deletions
diff --git a/sci-biology/glimmer/Manifest b/sci-biology/glimmer/Manifest new file mode 100644 index 000000000000..3d68f9533801 --- /dev/null +++ b/sci-biology/glimmer/Manifest @@ -0,0 +1,13 @@ +AUX glimmer-3.02-glibc210.patch 799 SHA256 6b0655e796a938990c29070950b36e861bdb6dd3ee1a0ae962590585976e7c5b SHA512 7a6b05a9b626dbefdabf4535026077b6259747cd2603847e6aa7fed991d456d87bc658ca923959fbdd2ceb4e43e096d46925946ffc135277794a1a6399433a1b WHIRLPOOL 797232ac343731e37800495a50bbdb4c254d04c52ec9ad5b3e57b2ad623bb93c4024fe150f7d8bc2dc4f0d0a83cd75d511d985a62bf4a02bcb04ec813528c606 +AUX glimmer-3.02-jobserver-fix.patch 433 SHA256 19f45973fa230874274d779b03aba73abbecf1344d4a0d795d70256a82036e15 SHA512 51bb9c5223a034b4d5d76df33528172d8f642d8fac0d51a1c4ad1be74c253a4859ed87ccad219bf5cdbcd1b5d4684061ebd91751c7b213767e1c950af13a430d WHIRLPOOL a93193e48512a0cd8c6996d77ee8f1fd91b18cf00e6c99ec6c59dc9953bcb5ee5a90180b317ffb99337666e451da91f77f14a805f43026c1819ec596bb1268c1 +AUX glimmer-3.02-ldflags.patch 2057 SHA256 95d391acdbf6d84440c2f3d96791e9f97776b7a248c9546738cc9df88711a28e SHA512 aeeac4ee64e358c932a91c4b660c83f8afbfb3ef1b292c9cf8598c56d8645f0d820f4bbc545319e91fe2e65efa5d3aec22f381f75e12aa1574bb7a3b854df6a8 WHIRLPOOL d68752a5c3f78195bfabd116d19ca22ba90af7b817bfa29b9e0cc5614391e32cc3dd8cdd72e3ab642f4b52c48305ed8c7ab32ed622826b720b6228617ed682fe +AUX glimmer-3.02b-jobserver-fix.patch 433 SHA256 19f45973fa230874274d779b03aba73abbecf1344d4a0d795d70256a82036e15 SHA512 51bb9c5223a034b4d5d76df33528172d8f642d8fac0d51a1c4ad1be74c253a4859ed87ccad219bf5cdbcd1b5d4684061ebd91751c7b213767e1c950af13a430d WHIRLPOOL a93193e48512a0cd8c6996d77ee8f1fd91b18cf00e6c99ec6c59dc9953bcb5ee5a90180b317ffb99337666e451da91f77f14a805f43026c1819ec596bb1268c1 +AUX glimmer-3.02b-ldflags.patch 2057 SHA256 95d391acdbf6d84440c2f3d96791e9f97776b7a248c9546738cc9df88711a28e SHA512 aeeac4ee64e358c932a91c4b660c83f8afbfb3ef1b292c9cf8598c56d8645f0d820f4bbc545319e91fe2e65efa5d3aec22f381f75e12aa1574bb7a3b854df6a8 WHIRLPOOL d68752a5c3f78195bfabd116d19ca22ba90af7b817bfa29b9e0cc5614391e32cc3dd8cdd72e3ab642f4b52c48305ed8c7ab32ed622826b720b6228617ed682fe +AUX glimmer-3.02b-rename_extract.patch 9286 SHA256 275f783f675729e5b39bea26e9a506dd2a1b675ef20f9a611ca50cb94b1ad272 SHA512 b5c08ba7ac973e723aeb8bc8808f69eded90b1e59c9d14804519d1d689e820193bf71860026642b3aed049881289c651f9cfd45bc05d53d73a2e9ab891f9b342 WHIRLPOOL b5cc7d1d3734fc373c2a96d82bbcbb2a531bdc8040a7543d0ffdfcc9f4889ba9c89854ba4f99f9b4c1be30eb7a477530ee707bfadcc4ef180b1d6fcda26e7334 +DIST glimmer302.tar.gz 5637075 SHA256 a1e422ee56f495f9f99e1741ba2043f026fc8182afcc47cb20cfd2d989537221 SHA512 c28e5902bffab00566560fa0bcf61909921932935f8298f098361aeb58eb67a40403c23709cf5075fb47dc87bcf54e25572840f110bb15cd21325a072050407c WHIRLPOOL c3eedb4a3a65043a69d632360608f04382117b8f7f3718eae328a1aa14f9f5d6d9ae6f05e0a83a09af5eb9e6b0c7b0ae26cb820813341aa5d7fa3f6002938ce8 +DIST glimmer302b.tar.gz 5637975 SHA256 ecf28e03d0a675aed7360ca34ca7f19993f5c3ea889273e657ced9fa7d1e2bf6 SHA512 00d44a02a8099ceac4b4d2a1cd5d69cc2b787942bb87f612cd63edacf7e502bc9a65cdf9b9270ad789981a84c940cc01e187882d21d2c9de4dcc12b492b041a6 WHIRLPOOL bbce6f57546e6cc77801ac7f5e783510feafc2e120a8727e848a95dd9e2d966538e56cb7be597c2a463d9b372c8586a389d639e1377708a27bd56f81b37fea1f +EBUILD glimmer-3.02-r3.ebuild 1354 SHA256 9f2d65a25c543e474a289594985fecf3c6269f3281aaf839092f81d22c20e0ce SHA512 c2930627e031436d36b87ac8ec80f672700faa91db3aba175e428e9190ae8129a66288c08f10e501e4c4de98fb6a9aebdb46c7300c0ad6b17768a6d1e53161ea WHIRLPOOL b70962f6b2012366f2d0f1cc3da1d52311e435221e1e0fc851b9e0af70dc60563785e9373935a956167bd3c5d83b151a13038611d30a0eb40d5c44603568f266 +EBUILD glimmer-3.02b.ebuild 1700 SHA256 bce6feeb5858c7678d8f31968c08e1ccb251d580d81e4d755bbb5cbd4d4af51e SHA512 f66d205a926c198c92a8798cd7cdf20bc9620225fc67a20d097b70e08db995c05c2ebf9e7d760d123e5e9dee8c11b862070547ed1a751508d7b07d86ae983062 WHIRLPOOL c6e8335d7c5d3847f17284d505d4fd3281b57f855c646c1ed6269344588b0cc09e3c1cf07b12082dedb2aa33391960a1a3970b75642c3841f2583ec48d7ed77d +MISC ChangeLog 2727 SHA256 5076134d433536116e5b368869f9a4a5edef27a97d45ad0389e166437045cdd9 SHA512 94f62785b5fb5059a090fdb9c3fc862df6011ed9efd3940d0068169ab9fb84bd882c992c3fe64a4044a9c76b90f6ece699a9078c39589fe3ae9444d7f976a7ff WHIRLPOOL 85fbf73be715d4fdaf2e6278e3e7c3517e2349bae771439298cb5614102a782d94bb20b2b272a31cbbc52d6b0e0282101d0cc0418a1534019c4d1c8766741efe +MISC ChangeLog-2015 2304 SHA256 d33edc8f014290bdadb5508d59dd3a3b9fe115aba78d667bee1312034dc168da SHA512 ed293293a8875e5c31a515e8ee1c1bb1c73774201325280382fbb618cb6c6b86095715c6c126e1aa5de6b6a8bd55709e3a473b5750b4bf8ee081047aa90e2572 WHIRLPOOL fae3fb2318dbdf875c4c507b18d7c0016aa3cfded21f16236804ddb012e14053fb52b4541dad3e744c4336dbec2951e70682897d6b10cc922a80cc82a566dbd9 +MISC metadata.xml 267 SHA256 b3535fccca0fc8511c1245214c1a7c105447b35f21093bda132991874ce82d48 SHA512 91ab266d9ab24401bc0fec759c5b6cfcf44a3c5669fc31c7301d79770839bb5dfa0e155d949392ef06176b4a0b2c32b91b1b54b0027f972db61f0a5e54644403 WHIRLPOOL d841a2f928c50434f2e8c65f583ea3aa2d04e5cebd664b1531ab5373260f735219131991000bbb2b21aa3add05dcdce29548b78eac8d8c0eced6dc5505b64e13 diff --git a/sci-biology/glimmer/files/glimmer-3.02-glibc210.patch b/sci-biology/glimmer/files/glimmer-3.02-glibc210.patch new file mode 100644 index 000000000000..f6051ec82054 --- /dev/null +++ b/sci-biology/glimmer/files/glimmer-3.02-glibc210.patch @@ -0,0 +1,24 @@ +diff -durr glimmer3.02-orig/src/Common/gene.cc glimmer3.02/src/Common/gene.cc +--- glimmer3.02-orig/src/Common/gene.cc 2009-12-28 13:34:21.577437056 +0000 ++++ glimmer3.02/src/Common/gene.cc 2009-12-28 13:36:06.914974685 +0000 +@@ -443,7 +443,7 @@ + // Return a subscript corresponding to character ch . + + { +- char * p; ++ const char * p; + + p = strchr (CONVERSION_STRING, tolower (ch)); + if (p == NULL) +diff -durr glimmer3.02-orig/src/ICM/icm.cc glimmer3.02/src/ICM/icm.cc +--- glimmer3.02-orig/src/ICM/icm.cc 2009-12-28 13:34:21.577437056 +0000 ++++ glimmer3.02/src/ICM/icm.cc 2009-12-28 13:36:44.649451803 +0000 +@@ -1981,7 +1981,7 @@ + // model) for character ch . + + { +- char * p; ++ const char * p; + + p = strchr (ALPHA_STRING, tolower (Filter (ch))); + if (p == NULL) diff --git a/sci-biology/glimmer/files/glimmer-3.02-jobserver-fix.patch b/sci-biology/glimmer/files/glimmer-3.02-jobserver-fix.patch new file mode 100644 index 000000000000..91498b116d12 --- /dev/null +++ b/sci-biology/glimmer/files/glimmer-3.02-jobserver-fix.patch @@ -0,0 +1,22 @@ +diff -ru glimmer3.02-orig/src/Makefile glimmer3.02/src/Makefile +--- glimmer3.02-orig/src/Makefile 2006-06-12 21:40:14.000000000 +0200 ++++ glimmer3.02/src/Makefile 2010-03-18 14:30:15.000000000 +0100 +@@ -2,12 +2,12 @@ + + + all: +- @ TGT=objs +- @ $(dosubdirs) +- @ TGT=libs +- @ $(dosubdirs) +- @ TGT=progs +- @ $(dosubdirs) ++ @+ TGT=objs ++ @+ $(dosubdirs) ++ @+ TGT=libs ++ @+ $(dosubdirs) ++ @+ TGT=progs ++ @+ $(dosubdirs) + + + install: all diff --git a/sci-biology/glimmer/files/glimmer-3.02-ldflags.patch b/sci-biology/glimmer/files/glimmer-3.02-ldflags.patch new file mode 100644 index 000000000000..0a04fbef1dcc --- /dev/null +++ b/sci-biology/glimmer/files/glimmer-3.02-ldflags.patch @@ -0,0 +1,88 @@ +diff --git a/src/c_make.gen b/src/c_make.gen +index 414dead..84c3030 100644 +--- a/src/c_make.gen ++++ b/src/c_make.gen +@@ -200,45 +200,12 @@ LOCAL_SYS_INC=$(SEP_PATH)/../SYS/inc + #### Do not redefine if (a) passed in on command line, or (b) + #### defined in an environment variable. + +-ifneq "$(origin CC)" "environment" +-CC = cc +-endif +- +-ifneq "$(origin CPPFLAGS)" "environment" +-CPPFLAGS= +-endif +- +-ifneq "$(origin CFLAGS)" "environment" +-CFLAGS = +-endif +- +-ifneq "$(origin CDEFS)" "environment" +-CDEFS = +-endif +- +-ifneq "$(origin CXX)" "environment" +-CXX = g++ +-endif +- +-ifneq "$(origin CXXFLAGS)" "environment" +-CXXFLAGS= +-endif +- +-ifneq "$(origin CXXDEFS)" "environment" +-CXXDEFS= -D__cplusplus +-endif +- +-ifneq "$(origin AR)" "environment" +-AR = ar +-endif +- +-ifneq "$(origin ARFLAGS)" "environment" +-ARFLAGS = rvs +-endif +- +-ifneq "$(origin LDFLAGS)" "environment" +-LDFLAGS = +-endif ++CC ?= cc ++CXX ?= g++ ++CXXFLAGS ?= ++CXXDEFS = -D__cplusplus ++AR ?= ar ++ARFLAGS ?= rvs + + #### Delete default suffix rules + .SUFFIXES: +@@ -359,13 +326,13 @@ $(PROGS): + cd $(LOCAL_OBJ); \ + if $(CC) -o $(LOCAL_BIN)/$(notdir $@) $(LDFLAGS) \ + $(LD_DIRS) $(filter-out lib%.a, $+) \ +- $(patsubst lib%.a, -l%, $(filter lib%.a, $+)) ; then \ ++ $(patsubst lib%.a, -l%, $(filter lib%.a, $+)) $(LIBS) ; then \ + true; else rm -f $(LOCAL_BIN)/$(notdir $@); fi; \ + else \ + cd $(LOCAL_OBJ); \ + if $(CXX) -o $(LOCAL_BIN)/$(notdir $@) $(LDFLAGS) \ + $(LD_DIRS) $(filter-out lib%.a, $+) \ +- $(patsubst lib%.a, -l%, $(filter lib%.a, $+)) ; then \ ++ $(patsubst lib%.a, -l%, $(filter lib%.a, $+)) $(LIBS) ; then \ + true; else rm -f $(LOCAL_BIN)/$(notdir $@); fi; \ + fi ; + +diff --git a/src/c_make.glm b/src/c_make.glm +index 0decc17..b82131c 100644 +--- a/src/c_make.glm ++++ b/src/c_make.glm +@@ -8,10 +8,7 @@ include $(LOCAL_WORK)/src/c_make.gen + + SUBDIRS = Common ICM Glimmer Util + +-CFLAGS = -g -Wall +-CXXFLAGS = -g -Wall +- +-LDFLAGS = -g -lm ++LIBS = -lm + + + #AS_BUILD_DIR =$(LOCAL_WORK) diff --git a/sci-biology/glimmer/files/glimmer-3.02b-jobserver-fix.patch b/sci-biology/glimmer/files/glimmer-3.02b-jobserver-fix.patch new file mode 100644 index 000000000000..91498b116d12 --- /dev/null +++ b/sci-biology/glimmer/files/glimmer-3.02b-jobserver-fix.patch @@ -0,0 +1,22 @@ +diff -ru glimmer3.02-orig/src/Makefile glimmer3.02/src/Makefile +--- glimmer3.02-orig/src/Makefile 2006-06-12 21:40:14.000000000 +0200 ++++ glimmer3.02/src/Makefile 2010-03-18 14:30:15.000000000 +0100 +@@ -2,12 +2,12 @@ + + + all: +- @ TGT=objs +- @ $(dosubdirs) +- @ TGT=libs +- @ $(dosubdirs) +- @ TGT=progs +- @ $(dosubdirs) ++ @+ TGT=objs ++ @+ $(dosubdirs) ++ @+ TGT=libs ++ @+ $(dosubdirs) ++ @+ TGT=progs ++ @+ $(dosubdirs) + + + install: all diff --git a/sci-biology/glimmer/files/glimmer-3.02b-ldflags.patch b/sci-biology/glimmer/files/glimmer-3.02b-ldflags.patch new file mode 100644 index 000000000000..0a04fbef1dcc --- /dev/null +++ b/sci-biology/glimmer/files/glimmer-3.02b-ldflags.patch @@ -0,0 +1,88 @@ +diff --git a/src/c_make.gen b/src/c_make.gen +index 414dead..84c3030 100644 +--- a/src/c_make.gen ++++ b/src/c_make.gen +@@ -200,45 +200,12 @@ LOCAL_SYS_INC=$(SEP_PATH)/../SYS/inc + #### Do not redefine if (a) passed in on command line, or (b) + #### defined in an environment variable. + +-ifneq "$(origin CC)" "environment" +-CC = cc +-endif +- +-ifneq "$(origin CPPFLAGS)" "environment" +-CPPFLAGS= +-endif +- +-ifneq "$(origin CFLAGS)" "environment" +-CFLAGS = +-endif +- +-ifneq "$(origin CDEFS)" "environment" +-CDEFS = +-endif +- +-ifneq "$(origin CXX)" "environment" +-CXX = g++ +-endif +- +-ifneq "$(origin CXXFLAGS)" "environment" +-CXXFLAGS= +-endif +- +-ifneq "$(origin CXXDEFS)" "environment" +-CXXDEFS= -D__cplusplus +-endif +- +-ifneq "$(origin AR)" "environment" +-AR = ar +-endif +- +-ifneq "$(origin ARFLAGS)" "environment" +-ARFLAGS = rvs +-endif +- +-ifneq "$(origin LDFLAGS)" "environment" +-LDFLAGS = +-endif ++CC ?= cc ++CXX ?= g++ ++CXXFLAGS ?= ++CXXDEFS = -D__cplusplus ++AR ?= ar ++ARFLAGS ?= rvs + + #### Delete default suffix rules + .SUFFIXES: +@@ -359,13 +326,13 @@ $(PROGS): + cd $(LOCAL_OBJ); \ + if $(CC) -o $(LOCAL_BIN)/$(notdir $@) $(LDFLAGS) \ + $(LD_DIRS) $(filter-out lib%.a, $+) \ +- $(patsubst lib%.a, -l%, $(filter lib%.a, $+)) ; then \ ++ $(patsubst lib%.a, -l%, $(filter lib%.a, $+)) $(LIBS) ; then \ + true; else rm -f $(LOCAL_BIN)/$(notdir $@); fi; \ + else \ + cd $(LOCAL_OBJ); \ + if $(CXX) -o $(LOCAL_BIN)/$(notdir $@) $(LDFLAGS) \ + $(LD_DIRS) $(filter-out lib%.a, $+) \ +- $(patsubst lib%.a, -l%, $(filter lib%.a, $+)) ; then \ ++ $(patsubst lib%.a, -l%, $(filter lib%.a, $+)) $(LIBS) ; then \ + true; else rm -f $(LOCAL_BIN)/$(notdir $@); fi; \ + fi ; + +diff --git a/src/c_make.glm b/src/c_make.glm +index 0decc17..b82131c 100644 +--- a/src/c_make.glm ++++ b/src/c_make.glm +@@ -8,10 +8,7 @@ include $(LOCAL_WORK)/src/c_make.gen + + SUBDIRS = Common ICM Glimmer Util + +-CFLAGS = -g -Wall +-CXXFLAGS = -g -Wall +- +-LDFLAGS = -g -lm ++LIBS = -lm + + + #AS_BUILD_DIR =$(LOCAL_WORK) diff --git a/sci-biology/glimmer/files/glimmer-3.02b-rename_extract.patch b/sci-biology/glimmer/files/glimmer-3.02b-rename_extract.patch new file mode 100644 index 000000000000..6eebc5610414 --- /dev/null +++ b/sci-biology/glimmer/files/glimmer-3.02b-rename_extract.patch @@ -0,0 +1,196 @@ +diff -r -u glimmer3.02.old/docs/notes.tex glimmer3.02/docs/notes.tex +--- glimmer3.02.old/docs/notes.tex 2006-06-12 21:40:14.000000000 +0200 ++++ glimmer3.02/docs/notes.tex 2015-05-25 22:41:39.450340098 +0200 +@@ -306,7 +306,7 @@ + The script would then run the commands: + \BSV\begin{verbatim} + long-orfs -n -t 1.15 genom.seq run1.longorfs +- extract -t genom.seq run1.longorfs > run1.train ++ glimmer_extract -t genom.seq run1.longorfs > run1.train + build-icm -r run1.icm < run1.train + glimmer3 -o50 -g110 -t30 genom.seq run1.icm run1 + \end{verbatim}\ESV +@@ -330,9 +330,9 @@ + \end{verbatim}\ESV + The script would then run the commands: + \BSV\begin{verbatim} +- extract -t genom.seq train.coords > run2.train ++ glimmer_extract -t genom.seq train.coords > run2.train + build-icm -r run2.icm < run2.train +- upstream-coords.awk 25 0 train.coords | extract genom.seq - > run2.upstream ++ upstream-coords.awk 25 0 train.coords | glimmer_extract genom.seq - > run2.upstream + elph run2.upstream LEN=6 | get-motif-counts.awk > run2.motif + set startuse = `start-codon-distrib -3 genom.seq train.coords` + glimmer3 -o50 -g110 -t30 -b run2.motif -P $startuse genom.seq run2.icm run2 +@@ -358,11 +358,11 @@ + The script would then run the commands: + \BSV\begin{verbatim} + long-orfs -n -t 1.15 genom.seq run3.longorfs +- extract -t genom.seq run3.longorfs > run3.train ++ glimmer_extract -t genom.seq run3.longorfs > run3.train + build-icm -r run3.icm < run3.train + glimmer3 -o50 -g110 -t30 genom.seq run3.icm run3.run1 + tail +2 run3.run1.predict > run3.coords +- upstream-coords.awk 25 0 run3.coords | extract genom.seq - > run3.upstream ++ upstream-coords.awk 25 0 run3.coords | glimmer_extract genom.seq - > run3.upstream + elph run3.upstream LEN=6 | get-motif-counts.awk > run3.motif + set startuse = `start-codon-distrib -3 genom.seq run3.coords` + glimmer3 -o50 -g110 -t30 -b run3.motif -P $startuse genom.seq run3.icm run3 +@@ -1081,12 +1081,12 @@ + \Pg{entropy-score}\, [\Desc{options}] \Desc{sequence} \Desc{coords} + \eq + +-\subsubsection{\Pg{extract} Program} ++\subsubsection{\Pg{glimmer_extract} Program} + This program reads a genome sequence and a list of coordinates + for it and outputs a multi-fasta file of the regions specified + by the coordinates. Output goes to standard output. + \bq +- \Pg{extract}\, [\Desc{options}] \Desc{sequence} \Desc{coords} ++ \Pg{glimmer_extract}\, [\Desc{options}] \Desc{sequence} \Desc{coords} + \eq + + \subsubsection{\Pg{multi-extract} Program} +diff -r -u glimmer3.02.old/sample-run/g3-from-scratch.csh glimmer3.02/sample-run/g3-from-scratch.csh +--- glimmer3.02.old/sample-run/g3-from-scratch.csh 2006-06-12 21:46:35.000000000 +0200 ++++ glimmer3.02/sample-run/g3-from-scratch.csh 2015-05-25 22:40:18.450338748 +0200 +@@ -50,7 +50,7 @@ + step2: + # Extract the training sequences from the genome file + echo "Step 2 of ${numsteps}: Extracting training sequences" +-$glimmerpath/extract -t $genome $tag.longorfs > $tag.train ++$glimmerpath/glimmer_extract -t $genome $tag.longorfs > $tag.train + if ($status != 0) then + echo "Failed to extract training sequences" + exit +diff -r -u glimmer3.02.old/sample-run/g3-from-training.csh glimmer3.02/sample-run/g3-from-training.csh +--- glimmer3.02.old/sample-run/g3-from-training.csh 2006-06-12 21:46:35.000000000 +0200 ++++ glimmer3.02/sample-run/g3-from-training.csh 2015-05-25 22:40:18.450338748 +0200 +@@ -42,7 +42,7 @@ + step1: + # Extract the training sequences from the genome file + echo "Step 1 of ${numsteps}: Extracting training sequences" +-$glimmerpath/extract -t $genome $coords > $tag.train ++$glimmerpath/glimmer_extract -t $genome $coords > $tag.train + if ($status != 0) then + echo "Failed to extract training sequences" + exit +@@ -66,7 +66,7 @@ + # upstream of the start locations in $coords + echo "Step 3 of ${numsteps}: Making PWM from upstream regions" + $awkpath/upstream-coords.awk 25 0 $coords \ +- | $glimmerpath/extract $genome - > $tag.upstream ++ | $glimmerpath/glimmer_extract $genome - > $tag.upstream + $elphbin $tag.upstream LEN=6 | $awkpath/get-motif-counts.awk > $tag.motif + if ($status != 0) then + echo "Failed to create PWM" +diff -r -u glimmer3.02.old/sample-run/g3-iterated.csh glimmer3.02/sample-run/g3-iterated.csh +--- glimmer3.02.old/sample-run/g3-iterated.csh 2006-06-13 14:15:28.000000000 +0200 ++++ glimmer3.02/sample-run/g3-iterated.csh 2015-05-25 22:40:18.450338748 +0200 +@@ -57,7 +57,7 @@ + step2: + # Extract the training sequences from the genome file + echo "Step 2 of ${numsteps}: Extracting training sequences" +-$glimmerpath/extract -t $genome $tag.longorfs > $tag.train ++$glimmerpath/glimmer_extract -t $genome $tag.longorfs > $tag.train + if ($status != 0) then + echo "Failed to extract training sequences" + exit +@@ -103,7 +103,7 @@ + # upstream of the start locations in $tag.coords + echo "Step 6 of ${numsteps}: Making PWM from upstream regions" + $awkpath/upstream-coords.awk 25 0 $tag.coords \ +- | $glimmerpath/extract $genome - > $tag.upstream ++ | $glimmerpath/glimmer_extract $genome - > $tag.upstream + $elphbin $tag.upstream LEN=6 | $awkpath/get-motif-counts.awk > $tag.motif + if ($status != 0) then + echo "Failed to create PWM" +diff -r -u glimmer3.02.old/scripts/g3-from-scratch.csh glimmer3.02/scripts/g3-from-scratch.csh +--- glimmer3.02.old/scripts/g3-from-scratch.csh 2006-06-12 21:40:14.000000000 +0200 ++++ glimmer3.02/scripts/g3-from-scratch.csh 2015-05-25 22:44:44.190343177 +0200 +@@ -50,7 +50,7 @@ + step2: + # Extract the training sequences from the genome file + echo "Step 2 of ${numsteps}: Extracting training sequences" +-$glimmerpath/extract -t $genome $tag.longorfs > $tag.train ++$glimmerpath/glimmer_extract -t $genome $tag.longorfs > $tag.train + if ($status != 0) then + echo "Failed to extract training sequences" + exit +diff -r -u glimmer3.02.old/scripts/g3-from-training.csh glimmer3.02/scripts/g3-from-training.csh +--- glimmer3.02.old/scripts/g3-from-training.csh 2006-06-12 21:40:14.000000000 +0200 ++++ glimmer3.02/scripts/g3-from-training.csh 2015-05-25 22:44:44.190343177 +0200 +@@ -42,7 +42,7 @@ + step1: + # Extract the training sequences from the genome file + echo "Step 1 of ${numsteps}: Extracting training sequences" +-$glimmerpath/extract -t $genome $coords > $tag.train ++$glimmerpath/glimmer_extract -t $genome $coords > $tag.train + if ($status != 0) then + echo "Failed to extract training sequences" + exit +@@ -66,7 +66,7 @@ + # upstream of the start locations in $coords + echo "Step 3 of ${numsteps}: Making PWM from upstream regions" + $awkpath/upstream-coords.awk 25 0 $coords \ +- | $glimmerpath/extract $genome - > $tag.upstream ++ | $glimmerpath/glimmer_extract $genome - > $tag.upstream + $elphbin $tag.upstream LEN=6 | $awkpath/get-motif-counts.awk > $tag.motif + if ($status != 0) then + echo "Failed to create PWM" +diff -r -u glimmer3.02.old/scripts/g3-iterated.csh glimmer3.02/scripts/g3-iterated.csh +--- glimmer3.02.old/scripts/g3-iterated.csh 2006-06-13 14:15:46.000000000 +0200 ++++ glimmer3.02/scripts/g3-iterated.csh 2015-05-25 22:44:44.190343177 +0200 +@@ -57,7 +57,7 @@ + step2: + # Extract the training sequences from the genome file + echo "Step 2 of ${numsteps}: Extracting training sequences" +-$glimmerpath/extract -t $genome $tag.longorfs > $tag.train ++$glimmerpath/glimmer_extract -t $genome $tag.longorfs > $tag.train + if ($status != 0) then + echo "Failed to extract training sequences" + exit +@@ -103,7 +103,7 @@ + # upstream of the start locations in $tag.coords + echo "Step 6 of ${numsteps}: Making PWM from upstream regions" + $awkpath/upstream-coords.awk 25 0 $tag.coords \ +- | $glimmerpath/extract $genome - > $tag.upstream ++ | $glimmerpath/glimmer_extract $genome - > $tag.upstream + $elphbin $tag.upstream LEN=6 | $awkpath/get-motif-counts.awk > $tag.motif + if ($status != 0) then + echo "Failed to create PWM" +diff -r -u glimmer3.02.old/src/Util/Makefile glimmer3.02/src/Util/Makefile +--- glimmer3.02.old/src/Util/Makefile 2006-06-12 21:40:14.000000000 +0200 ++++ glimmer3.02/src/Util/Makefile 2015-05-25 22:43:12.760341653 +0200 +@@ -8,7 +8,7 @@ + SOURCES = $(UTIL_SRCS) + OBJECTS = $(UTIL_OBJS) + +-PROGS = entropy-profile entropy-score extract multi-extract start-codon-distrib \ ++PROGS = entropy-profile entropy-score glimmer_extract multi-extract start-codon-distrib \ + uncovered window-acgt + + LIBRARIES = +diff -r -u glimmer3.02.old/src/Util/extract.cc glimmer3.02/src/Util/extract.cc +--- glimmer3.02.old/src/Util/extract.cc 2006-06-12 21:40:14.000000000 +0200 ++++ glimmer3.02/src/Util/extract.cc 2015-05-25 22:44:01.760342470 +0200 +@@ -297,7 +297,7 @@ + + { + fprintf (stderr, +- "USAGE: extract [options] <sequence-file> <coords>\n" ++ "USAGE: glimmer_extract [options] <sequence-file> <coords>\n" + "\n" + "Read fasta-format <sequence-file> and extract from it the\n" + "subsequences specified by <coords>. By default, <coords>\n" +--- glimmer3.02.old/src/Util/Makefile 2015-05-25 22:43:12.760341653 +0200 ++++ glimmer-3.02-r3/work/glimmer3.02/src/Util/Makefile 2015-05-25 23:13:34.230372010 +0200 +@@ -21,7 +21,7 @@ + + entropy-score: entropy-score.o libGLMcommon.a + +-extract: extract.o libGLMcommon.a ++glimmer_extract: extract.o libGLMcommon.a + + multi-extract: multi-extract.o libGLMcommon.a + diff --git a/sci-biology/glimmer/glimmer-3.02-r3.ebuild b/sci-biology/glimmer/glimmer-3.02-r3.ebuild new file mode 100644 index 000000000000..992a6d327fcb --- /dev/null +++ b/sci-biology/glimmer/glimmer-3.02-r3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils toolchain-funcs + +MY_PV=${PV//./} + +DESCRIPTION="An HMM-based microbial gene finding system from TIGR" +HOMEPAGE="http://www.cbcb.umd.edu/software/glimmer/" +SRC_URI="http://www.cbcb.umd.edu/software/${PN}/${PN}${MY_PV}.tar.gz" + +LICENSE="Artistic" +SLOT="0" +IUSE="" +KEYWORDS="amd64 x86" + +DEPEND="" +RDEPEND="app-shells/tcsh" + +S="${WORKDIR}/${PN}${PV}" + +PATCHES=( + "${FILESDIR}"/${P}-glibc210.patch + "${FILESDIR}"/${P}-jobserver-fix.patch + "${FILESDIR}"/${P}-ldflags.patch + "${FILESDIR}"/${PN}-3.02b-rename_extract.patch +) + +src_prepare() { + sed -i -e 's|\(set awkpath =\).*|\1 /usr/share/'${PN}'/scripts|' \ + -e 's|\(set glimmerpath =\).*|\1 /usr/bin|' scripts/* || die "failed to rewrite paths" + # Fix Makefile to die on failure + sed -i 's/$(MAKE) $(TGT)/$(MAKE) $(TGT) || exit 1/' src/c_make.gen || die + # GCC 4.3 include fix + sed -i 's/include <string>/include <string.h>/' src/Common/delcher.hh || die + epatch "${PATCHES[@]}" +} + +src_compile() { + emake \ + -C src \ + CC=$(tc-getCC) \ + CXX=$(tc-getCXX) \ + AR=$(tc-getAR) \ + CXXFLAGS="${CXXFLAGS}" \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" +} + +src_install() { + rm bin/test || die + dobin bin/* + + insinto /usr/share/${PN} + doins -r scripts + + dodoc glim302notes.pdf +} diff --git a/sci-biology/glimmer/glimmer-3.02b.ebuild b/sci-biology/glimmer/glimmer-3.02b.ebuild new file mode 100644 index 000000000000..9653024a1de2 --- /dev/null +++ b/sci-biology/glimmer/glimmer-3.02b.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils toolchain-funcs + +MY_PV=${PV//./} + +DESCRIPTION="An HMM-based microbial gene finding system from TIGR" +HOMEPAGE="http://ccb.jhu.edu/software/glimmer" +SRC_URI="http://ccb.jhu.edu/software/${PN}/${PN}${MY_PV}.tar.gz" + +LICENSE="Artistic" +SLOT="0" +IUSE="" +KEYWORDS="~amd64 ~x86" + +DEPEND="" +RDEPEND="app-shells/tcsh + sci-biology/elph" + +#S="${WORKDIR}/${PN}${PV}" +S="${WORKDIR}/${PN}3.02" + +PATCHES=( + "${FILESDIR}"/${P}-jobserver-fix.patch + "${FILESDIR}"/${P}-ldflags.patch + "${FILESDIR}"/${P}-rename_extract.patch +) + +src_prepare() { + sed -i -e 's|\(set awkpath =\).*|\1 /usr/share/'${PN}'/scripts|' \ + -e 's|\(set glimmerpath =\).*|\1 /usr/bin|' scripts/* || die "failed to rewrite paths" + # Fix Makefile to die on failure + sed -i 's/$(MAKE) $(TGT)/$(MAKE) $(TGT) || exit 1/' src/c_make.gen || die + # GCC 4.3 include fix + sed -i 's/include <string>/include <string.h>/' src/Common/delcher.hh || die + # + sed -i "s+/fs/szgenefinding/Glimmer3/bin+%${D}/bin/glimmer3+" scripts/g3-* || die + sed -i "s+/fs/szgenefinding/Glimmer3/scripts+%${D}/share/glimmer/scripts+" scripts/g3-* || die + sed -i "s+/nfshomes/adelcher/bin/elph+%${D}/bin/elph+" scripts/g3-* || die + sed -i "s/@ if/if/" src/c_make.gen || die + # avoid file collision on /usr/bin/extract #247394 + epatch "${PATCHES[@]}" +} + +src_compile() { + emake \ + -C src \ + CC=$(tc-getCC) \ + CXX=$(tc-getCXX) \ + AR=$(tc-getAR) \ + CXXFLAGS="${CXXFLAGS}" \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" +} + +src_install() { + rm bin/test || die + dobin bin/* + + insinto /usr/share/${PN} + doins -r scripts + + dodoc glim302notes.pdf +} diff --git a/sci-biology/glimmer/metadata.xml b/sci-biology/glimmer/metadata.xml new file mode 100644 index 000000000000..959160fe46b1 --- /dev/null +++ b/sci-biology/glimmer/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> |