/[gentoo-x86]/sci-libs/primegen/primegen-0.97.ebuild
Gentoo

Contents of /sci-libs/primegen/primegen-0.97.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Dec 21 08:48:05 2011 UTC (8 years, 6 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Cleaned old

(Portage version: 2.2.0_alpha81/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/primegen/primegen-0.97.ebuild,v 1.7 2009/09/23 20:09:11 patrick Exp $
4
5 inherit eutils flag-o-matic toolchain-funcs
6
7 DESCRIPTION="A small, fast library to generate primes in order"
8 HOMEPAGE="http://cr.yp.to/primegen.html"
9 SRC_URI="http://cr.yp.to/primegen/${P}.tar.gz"
10
11 LICENSE="public-domain"
12 SLOT="0"
13 KEYWORDS="x86 ~amd64 ~ppc"
14 IUSE=""
15
16 DEPEND=""
17
18 src_unpack() {
19 unpack ${A}
20 cd "${S}"
21 epatch "${FILESDIR}/${P}-man.patch"
22 }
23
24 src_compile() {
25 # Fixes bug #161015
26 append-flags -fsigned-char
27
28 echo $(tc-getCC) ${CFLAGS} > conf-cc
29 echo /usr > conf-home
30 echo $(tc-getCC) ${CFLAGS} > conf-ld
31 emake || die
32 }
33
34 src_install() {
35 dobin primegaps primes primespeed || die "dobin failed"
36 doman primegaps.1 primes.1 primespeed.1
37 doman primegen.3
38 dolib.a primegen.a || die "dolib.a failed"
39 insinto /usr/include
40 doins primegen.h uint32.h uint64.h
41 dodoc BLURB CHANGES README
42 }

  ViewVC Help
Powered by ViewVC 1.1.20