commit:     244b13c92e071701a929875ae77cd5213785e1d8
Author:     Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Fri Feb 24 13:00:51 2017 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Fri Feb 24 13:00:51 2017 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=244b13c9

sci-biology/genepop: version bump, install PDF doc

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 sci-biology/genepop/genepop-4.6.ebuild | 41 ++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/sci-biology/genepop/genepop-4.6.ebuild 
b/sci-biology/genepop/genepop-4.6.ebuild
new file mode 100644
index 000000000..e42f57c82
--- /dev/null
+++ b/sci-biology/genepop/genepop-4.6.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Population genetics analysis"
+HOMEPAGE="http://genepop.curtin.edu.au/ 
http://kimura.univ-montp2.fr/~rousset/Genepop.htm";
+SRC_URI="http://kimura.univ-montp2.fr/%7Erousset/GenepopV4.tar.gz -> 
${P}.tar.gz
+       http://kimura.univ-montp2.fr/%7Erousset/Genepop.pdf -> ${PN}.pdf"
+
+LICENSE="CeCILL-2"
+SLOT="0"
+IUSE=""
+KEYWORDS="~amd64 ~x86"
+
+S="${WORKDIR}"
+
+src_prepare() {
+       gzip -dc sources.tar.gz | tar xf - || die
+       mv Cpp/* . || die
+       rmdir Cpp || die
+       cat >> CMakeLists.txt <<- EOF
+       cmake_minimum_required (VERSION 2.6)
+       project (${PN} CXX)
+
+       set(CMAKE_CXX_FLAGS "\${CMAKE_CXX_FLAGS} -DNO_MODULES")
+
+       add_executable(Genepop GenepopS.cpp)
+       install(TARGETS Genepop DESTINATION bin)
+       EOF
+       cmake-utils_src_prepare
+       default
+}
+
+src_install(){
+       cmake-utils_src_install
+       dodoc "${DISTDIR}"/"${PN}".pdf
+}

Reply via email to