-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathphyldog.rb
More file actions
80 lines (70 loc) · 2.57 KB
/
phyldog.rb
File metadata and controls
80 lines (70 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
class Phyldog < Formula
desc "Simultaneously build gene and species trees when gene families have undergone duplications and losses"
homepage "http://pbil.univ-lyon1.fr/software/phyldog/"
url "git://github.com/Boussau/PHYLDOG", :using => :git
version 'v2.01b-2017-05-16'
depends_on 'cmake' => :build
depends_on 'openmpi' => ["with-cxx-bindings"]
depends_on 'ensembl/external/libpll'
depends_on 'ensembl/external/biopp'
depends_on 'ensembl/external/boost'
patch :DATA
def install
biopp = Formula['ensembl/external/biopp']
boost = Formula['ensembl/external/boost']
libpll = Formula['ensembl/external/libpll']
mkdir 'build'
args = [
"-DCMAKE_INSTALL_PREFIX:PATH=#{prefix}",
"-DCMAKE_LIBRARY_PATH='#{biopp.lib};#{libpll.lib};#{boost.lib}'",
"-DCMAKE_INCLUDE_PATH='#{biopp.include};#{libpll.include};#{boost.include}'",
"-DBOOST_NO_BOOST_CMAKE=TRUE",
"-DBOOST_NO_SYSTEM_PATHS=TRUE",
"-DBOOST_ROOT:PATHNAME=#{boost.prefix}",
"-DBOOST_LIBRARYDIR=#{boost.lib}",
"-DBOOST_LIBRARY_DIRS:FILEPATH=#{boost.lib}",
]
system 'cmake', *args
system 'make'
system 'make', 'install'
end
test do
system 'false'
end
end
__END__
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 0783ed7..870fdca 100755
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -34,13 +34,14 @@ target_link_libraries(test_likelihoodEvaluator
${BPP_LIBRARIES}
)
-ADD_EXECUTABLE(test_SPRs test_SPRs.cpp ${PHYLDOG_SRCS})
-target_link_libraries(test_SPRs
- ${Boost_SERIALIZATION_LIBRARY}
- ${Boost_MPI_LIBRARY}
- ${MPI_LIBRARIES}
- ${PLL_LIBRARIES}
- ${BPP_LIBRARIES}
-)
+#ADD_EXECUTABLE(test_SPRs test_SPRs.cpp ${PHYLDOG_SRCS})
+#target_link_libraries(test_SPRs
+ #${Boost_SERIALIZATION_LIBRARY}
+ #${Boost_MPI_LIBRARY}
+ #${MPI_LIBRARIES}
+ #${PLL_LIBRARIES}
+ #${BPP_LIBRARIES}
+#)
-install(TARGETS test_SPRs test_likelihoodEvaluator DESTINATION tests)
+#install(TARGETS test_SPRs test_likelihoodEvaluator DESTINATION tests)
+install(TARGETS test_likelihoodEvaluator DESTINATION tests)