aboutsummaryrefslogtreecommitdiff
blob: 41647d00d33934ded34bd57d3cfe4dd2994ef78c (plain)
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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit cmake-utils

DESCRIPTION="Population genetics analysis"
HOMEPAGE="http://genepop.curtin.edu.au/ http://kimura.univ-montp2.fr/~rousset/Genepop.htm"
SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.gz"

LICENSE="CeCILL-2"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~x86"

DEPEND="app-arch/unzip"
RDEPEND=""

S="${WORKDIR}"

src_prepare() {
	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
}