1 |
commit: 06b18fa7ff04d5abcc2f8d216d0162a068255a7b |
2 |
Author: Jonas Maaskola <jonas <AT> maaskola <DOT> de> |
3 |
AuthorDate: Tue Jan 27 22:40:43 2015 +0000 |
4 |
Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 27 22:40:43 2015 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=06b18fa7 |
7 |
|
8 |
sci-biology/discrover: bump package version, add USE flag for link-time optimization, install doc to /usr/share/doc/${PF} |
9 |
|
10 |
Package-Manager: portage-2.2.14 |
11 |
|
12 |
--- |
13 |
sci-biology/discrover/ChangeLog | 7 +++++++ |
14 |
.../{discrover-1.4.1.ebuild => discrover-1.5.2.ebuild} | 14 +++++++++++++- |
15 |
sci-biology/discrover/discrover-9999.ebuild | 16 ++++++++++++++-- |
16 |
sci-biology/discrover/metadata.xml | 5 ++++- |
17 |
4 files changed, 38 insertions(+), 4 deletions(-) |
18 |
|
19 |
diff --git a/sci-biology/discrover/ChangeLog b/sci-biology/discrover/ChangeLog |
20 |
index d81ca8c..fd6eb45 100644 |
21 |
--- a/sci-biology/discrover/ChangeLog |
22 |
+++ b/sci-biology/discrover/ChangeLog |
23 |
@@ -2,6 +2,13 @@ |
24 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
25 |
# $Header: $ |
26 |
|
27 |
+*discrover-1.5.2 (27 Jan 2015) |
28 |
+ |
29 |
+ 27 Jan 2015; Jonas Maaskola <jonas@××××××××.de> +discrover-1.5.2.ebuild, |
30 |
+ -discrover-1.4.1.ebuild, discrover-9999.ebuild, metadata.xml: |
31 |
+ sci-biology/discrover: bump package version, add USE flag for link-time |
32 |
+ optimization, install doc to /usr/share/doc/${PF} |
33 |
+ |
34 |
*discrover-1.4.1 (05 Jan 2015) |
35 |
|
36 |
05 Jan 2015; Jonas Maaskola <jonas@××××××××.de> +discrover-1.4.1.ebuild, |
37 |
|
38 |
diff --git a/sci-biology/discrover/discrover-1.4.1.ebuild b/sci-biology/discrover/discrover-1.5.2.ebuild |
39 |
similarity index 74% |
40 |
rename from sci-biology/discrover/discrover-1.4.1.ebuild |
41 |
rename to sci-biology/discrover/discrover-1.5.2.ebuild |
42 |
index 5ae256f..b17687e 100644 |
43 |
--- a/sci-biology/discrover/discrover-1.4.1.ebuild |
44 |
+++ b/sci-biology/discrover/discrover-1.5.2.ebuild |
45 |
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/maaskola/discrover/archive/${PV}.tar.gz -> ${P}.tar. |
46 |
LICENSE="GPL-3+" |
47 |
SLOT="0" |
48 |
KEYWORDS="~amd64 ~x86" |
49 |
-IUSE="+cairo dreme doc tikzlogo misc_scripts +rmathlib tcmalloc" |
50 |
+IUSE="+cairo dreme doc +lto tikzlogo misc_scripts +rmathlib tcmalloc" |
51 |
|
52 |
RDEPEND=" |
53 |
dev-libs/boost |
54 |
@@ -37,16 +37,28 @@ DEPEND="${RDEPEND} |
55 |
dev-texlive/texlive-latexrecommended |
56 |
media-gfx/imagemagick |
57 |
) |
58 |
+ lto? ( >=sys-devel/gcc-4.8 ) |
59 |
" |
60 |
+pkg_pretend() { |
61 |
+ if use lto; then |
62 |
+ if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 8 ]] ) ; then |
63 |
+ eerror "Compilation with link-time optimization and GCC older than 4.8 is not supported." |
64 |
+ eerror "Please either disable the USE flag 'lto' or use >=sys-devel/gcc-4.8." |
65 |
+ die "Compiling with USE flag 'lto' is not supported with <sys-devel/gcc-4.8." |
66 |
+ fi |
67 |
+ fi |
68 |
+} |
69 |
src_configure() { |
70 |
local mycmakeargs=( |
71 |
$(cmake-utils_use_with cairo CAIRO) |
72 |
$(cmake-utils_use_with dreme DREME) |
73 |
$(cmake-utils_use_with doc DOC) |
74 |
+ $(cmake-utils_use_with lto LTO) |
75 |
$(cmake-utils_use_with tikzlogo TIKZLOGO) |
76 |
$(cmake-utils_use_with misc_scripts MISC_SCRIPTS) |
77 |
$(cmake-utils_use_with rmathlib RMATHLIB) |
78 |
$(cmake-utils_use_with tcmalloc TCMALLOC) |
79 |
+ -DDOC_DIR="${EPREFIX}${PREFIX}/share/doc/${PF}" |
80 |
) |
81 |
|
82 |
unset R_HOME |
83 |
|
84 |
diff --git a/sci-biology/discrover/discrover-9999.ebuild b/sci-biology/discrover/discrover-9999.ebuild |
85 |
index 5d3cf63..34ce8c0 100644 |
86 |
--- a/sci-biology/discrover/discrover-9999.ebuild |
87 |
+++ b/sci-biology/discrover/discrover-9999.ebuild |
88 |
@@ -3,7 +3,7 @@ |
89 |
# $Header: $ |
90 |
|
91 |
EAPI=5 |
92 |
-inherit cmake-utils git-2 |
93 |
+inherit cmake-utils git-r3 |
94 |
|
95 |
DESCRIPTION="A sequence motif discovery tool that uses discriminative learning" |
96 |
HOMEPAGE="https://github.com/maaskola/discrover" |
97 |
@@ -12,7 +12,7 @@ EGIT_REPO_URI="https://github.com/maaskola/${PN}" |
98 |
LICENSE="GPL-3+" |
99 |
SLOT="0" |
100 |
KEYWORDS="~amd64 ~x86" |
101 |
-IUSE="+cairo dreme doc tikzlogo misc_scripts +rmathlib tcmalloc" |
102 |
+IUSE="+cairo dreme doc +lto tikzlogo misc_scripts +rmathlib tcmalloc" |
103 |
|
104 |
RDEPEND=" |
105 |
dev-libs/boost |
106 |
@@ -37,16 +37,28 @@ DEPEND="${RDEPEND} |
107 |
dev-texlive/texlive-latexrecommended |
108 |
media-gfx/imagemagick |
109 |
) |
110 |
+ lto? ( >=sys-devel/gcc-4.8 ) |
111 |
" |
112 |
+pkg_pretend() { |
113 |
+ if use lto; then |
114 |
+ if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 8 ]] ) ; then |
115 |
+ eerror "Compilation with link-time optimization and GCC older than 4.8 is not supported." |
116 |
+ eerror "Please either disable the USE flag 'lto' or use >=sys-devel/gcc-4.8." |
117 |
+ die "Compiling with USE flag 'lto' is not supported with <sys-devel/gcc-4.8." |
118 |
+ fi |
119 |
+ fi |
120 |
+} |
121 |
src_configure() { |
122 |
local mycmakeargs=( |
123 |
$(cmake-utils_use_with cairo CAIRO) |
124 |
$(cmake-utils_use_with dreme DREME) |
125 |
$(cmake-utils_use_with doc DOC) |
126 |
+ $(cmake-utils_use_with lto LTO) |
127 |
$(cmake-utils_use_with tikzlogo TIKZLOGO) |
128 |
$(cmake-utils_use_with misc_scripts MISC_SCRIPTS) |
129 |
$(cmake-utils_use_with rmathlib RMATHLIB) |
130 |
$(cmake-utils_use_with tcmalloc TCMALLOC) |
131 |
+ -DDOC_DIR="${EPREFIX}${PREFIX}/share/doc/${PF}" |
132 |
) |
133 |
|
134 |
unset R_HOME |
135 |
|
136 |
diff --git a/sci-biology/discrover/metadata.xml b/sci-biology/discrover/metadata.xml |
137 |
index 24958c9..0862889 100644 |
138 |
--- a/sci-biology/discrover/metadata.xml |
139 |
+++ b/sci-biology/discrover/metadata.xml |
140 |
@@ -10,7 +10,10 @@ |
141 |
Use Cairo for sequence logo plotting capabilities |
142 |
</flag> |
143 |
<flag name="dreme"> |
144 |
- Allow to use DREME from the MEME package for seeding |
145 |
+ Enable usage of DREME from the MEME package for seeding |
146 |
+ </flag> |
147 |
+ <flag name="lto"> |
148 |
+ Compile with link-time optimization (LTO) |
149 |
</flag> |
150 |
<flag name="tikzlogo"> |
151 |
Enable LaTeX/TikZ based ruby script for sequence logo drawing |