commit: 2b35fa3317ef51f0de6002b65efa23605ee5e0cb Author: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> AuthorDate: Thu Mar 7 19:20:38 2019 +0000 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> CommitDate: Thu Mar 7 19:20:38 2019 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=2b35fa33
sci-biology/CAT: new package Does not compile, probably requires some older C++ standard? Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Martin Mokrejs <mmokrejs <AT> fold.natur.cuni.cz> sci-biology/CAT/CAT-1.3.ebuild | 34 ++++++++++++++++++++++ .../CAT/files/CAT-1.3_respect_env_variables.patch | 11 +++++++ sci-biology/CAT/metadata.xml | 12 ++++++++ 3 files changed, 57 insertions(+) diff --git a/sci-biology/CAT/CAT-1.3.ebuild b/sci-biology/CAT/CAT-1.3.ebuild new file mode 100644 index 000000000..2628c04a9 --- /dev/null +++ b/sci-biology/CAT/CAT-1.3.ebuild @@ -0,0 +1,34 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Estimate codon usage bias and its statistical significance" +HOMEPAGE=" + http://bigd.big.ac.cn/tools/cat + http://cbb.big.ac.cn/Software + http://code.google.com/p/composition-analysis-toolkit + http://www.cbrc.kaust.edu.sa/CAT" +SRC_URI="ftp://download.big.ac.cn/bigd/tools/${PN}${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="" +IUSE="" + +PATCHES=( "${FILESDIR}"/CAT-1.3_respect_env_variables.patch ) + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="" + +S="${WORKDIR}/${PN}${PV}" + +src_compile(){ + cd src || die + emake +} + +src_install(){ + dobin CAT +} diff --git a/sci-biology/CAT/files/CAT-1.3_respect_env_variables.patch b/sci-biology/CAT/files/CAT-1.3_respect_env_variables.patch new file mode 100644 index 000000000..5dff3986c --- /dev/null +++ b/sci-biology/CAT/files/CAT-1.3_respect_env_variables.patch @@ -0,0 +1,11 @@ +--- CAT1.3/src/makefile 2011-03-13 15:05:27.000000000 +0100 ++++ CAT1.3/src/makefile 2019-03-07 20:08:29.988220775 +0100 +@@ -1,6 +1,6 @@ + PRGS = CAT +-CC = g++ +-CFLAGS = -O3 ++CC ?= g++ ++CFLAGS ?= -O3 + + all: $(PRGS) + diff --git a/sci-biology/CAT/metadata.xml b/sci-biology/CAT/metadata.xml new file mode 100644 index 000000000..138cb7705 --- /dev/null +++ b/sci-biology/CAT/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mmokr...@fold.natur.cuni.cz</email> + <name>Martin Mokrejs</name> + </maintainer> + <maintainer type="project"> + <email>sci-biol...@gentoo.org</email> + <name>Gentoo Biology Project</name> + </maintainer> +</pkgmetadata>