summaryrefslogtreecommitdiff
blob: 1842938ca88853e95ffab15812d2ad42b10dd1ec (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-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=4
DESCRIPTION="George Woltman's GWNUM library"
HOMEPAGE="http://www.mersenne.org/freesoft/"
# Sourcecode split out from prime95, we don't need the full lib
SRC_URI="http://gentooexperimental.org/~patrick/${P}.tar.bz2"

inherit eutils

LICENSE="gwnum BSD GPL-2+"
SLOT="0"
# Need to test if it actually compiles on x86
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="bindist" #465566

DEPEND=""
RDEPEND="${DEPEND}"

src_compile() {
	# makefile doesn't return zero? || die fails :(
	use amd64 && emake -f make64
	use x86 && emake
}

src_install() {
	mkdir "${D}/usr/lib" -p
	cp gwnum.a gwnum.lib "${D}/usr/lib" || die
	mkdir "${D}/usr/include" -p
	cp *.h "${D}/usr/include" || die
}