commit:     0434ac4d8411a5efd26cfee76642e182efd0f2c6
Author:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Tue Jan 22 14:10:29 2019 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Tue Jan 22 14:10:29 2019 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=0434ac4d

sci-libs/io_lib: add libdeflate to USE flags and require it

Package-Manager: Portage-2.3.56, Repoman-2.3.12
Signed-off-by: Martin Mokrejs <mmokrejs <AT> fold.natur.cuni.cz>

 sci-libs/io_lib/io_lib-1.14.11.ebuild | 4 ++--
 sci-libs/io_lib/metadata.xml          | 5 ++++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/sci-libs/io_lib/io_lib-1.14.11.ebuild 
b/sci-libs/io_lib/io_lib-1.14.11.ebuild
index 73263df65..0d8fcc5ca 100644
--- a/sci-libs/io_lib/io_lib-1.14.11.ebuild
+++ b/sci-libs/io_lib/io_lib-1.14.11.ebuild
@@ -14,7 +14,7 @@ 
SRC_URI="https://github.com/jkbonfield/io_lib/archive/${PN}-${MY_PV}.tar.gz -> $
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="+bzip2 curl +lzma static-libs" # maybe introduce libdeflate USE flag?
+IUSE="+bzip2 curl +libdeflate lzma static-libs"
 
 S="${WORKDIR}"/"${PN}-${PN}-${MY_PV}"
 
@@ -36,7 +36,7 @@ BUILD_DIR="${S}"
 # versions 1.8.11 and 1.8.12 will work with the BioPerl Staden extensions.)
 #DEPEND="!sci-biology/bioperl"
 DEPEND="
-       app-arch/libdeflate
+       libdeflate? ( app-arch/libdeflate )
        lzma? ( app-arch/xz-utils:= app-arch/lzma )
        bzip2? ( app-arch/bzip2 )
        curl? ( net-misc/curl )

diff --git a/sci-libs/io_lib/metadata.xml b/sci-libs/io_lib/metadata.xml
index f2d955844..9d56a9c0f 100644
--- a/sci-libs/io_lib/metadata.xml
+++ b/sci-libs/io_lib/metadata.xml
@@ -10,7 +10,10 @@ io_lib is a library of file reading and writing code to 
provide a
 general purpose trace file (and Experiment File) reading interface. The
 programmer simply calls the (eg) read_reading to create a "Read" C structure
 with the data loaded into memory.
-</longdescription>
+       </longdescription>
+       <use>
+               <flag name="libdeflate">Use libdeflate for faster decompression 
than zlib</flag>
+       </use>
        <upstream>
                <remote-id type="sourceforge">staden</remote-id>
        </upstream>

Reply via email to