From: | "Thomas Kahle (tomka)" <tomka@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-libs/ntl: ntl-9.0.2.ebuild ChangeLog |
Date: | Thu, 02 Apr 2015 12:30:51 |
Message-Id: | 20150402122957.2A80A150F3@oystercatcher.gentoo.org |
1 | tomka 15/04/02 12:29:56 |
2 | |
3 | Modified: ChangeLog |
4 | Added: ntl-9.0.2.ebuild |
5 | Log: |
6 | bump to 9.0.2 |
7 | |
8 | (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 565C32BC) |
9 | |
10 | Revision Changes Path |
11 | 1.27 dev-libs/ntl/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/ntl/ChangeLog?rev=1.27&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/ntl/ChangeLog?rev=1.27&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/ntl/ChangeLog?r1=1.26&r2=1.27 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-libs/ntl/ChangeLog,v |
20 | retrieving revision 1.26 |
21 | retrieving revision 1.27 |
22 | diff -u -r1.26 -r1.27 |
23 | --- ChangeLog 26 Mar 2015 10:19:22 -0000 1.26 |
24 | +++ ChangeLog 2 Apr 2015 12:29:55 -0000 1.27 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for dev-libs/ntl |
27 | # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-libs/ntl/ChangeLog,v 1.26 2015/03/26 10:19:22 tomka Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/dev-libs/ntl/ChangeLog,v 1.27 2015/04/02 12:29:55 tomka Exp $ |
30 | + |
31 | +*ntl-9.0.2 (02 Apr 2015) |
32 | + |
33 | + 02 Apr 2015; Thomas Kahle <tomka@g.o> +ntl-9.0.2.ebuild: |
34 | + bump to 9.0.2 |
35 | |
36 | *ntl-8.1.2 (26 Mar 2015) |
37 | |
38 | |
39 | |
40 | |
41 | 1.1 dev-libs/ntl/ntl-9.0.2.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/ntl/ntl-9.0.2.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/ntl/ntl-9.0.2.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: ntl-9.0.2.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2015 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/dev-libs/ntl/ntl-9.0.2.ebuild,v 1.1 2015/04/02 12:29:55 tomka Exp $ |
51 | |
52 | EAPI=5 |
53 | inherit toolchain-funcs eutils multilib flag-o-matic |
54 | |
55 | DESCRIPTION="High-performance and portable Number Theory C++ library" |
56 | HOMEPAGE="http://shoup.net/ntl/" |
57 | SRC_URI="http://www.shoup.net/ntl/${P}.tar.gz" |
58 | |
59 | LICENSE="GPL-2" |
60 | SLOT="0" |
61 | KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-macos" |
62 | IUSE="doc static-libs test" |
63 | |
64 | RDEPEND=">=dev-libs/gmp-4.3 |
65 | >=dev-libs/gf2x-0.9" |
66 | DEPEND="${RDEPEND} |
67 | dev-lang/perl" |
68 | |
69 | S="${WORKDIR}/${P}/src" |
70 | |
71 | src_prepare() { |
72 | # fix parallel make |
73 | sed -i -e "s/make/make ${MAKEOPTS}/g" WizardAux || die |
74 | cd .. |
75 | # enable compatibility with singular |
76 | epatch "$FILESDIR/${PN}-6.0.0-singular.patch" |
77 | # sanitize the makefile and allow the building of shared library |
78 | epatch "$FILESDIR/${PN}-8.1.2-sanitize-makefile.patch" |
79 | replace-flags -O[3-9] -O2 |
80 | } |
81 | |
82 | src_configure() { |
83 | perl DoConfig \ |
84 | PREFIX="${EPREFIX}"/usr \ |
85 | CXXFLAGS="${CXXFLAGS}" \ |
86 | LDFLAGS="${LDFLAGS}" \ |
87 | CXX="$(tc-getCXX)" \ |
88 | AR="$(tc-getAR)" \ |
89 | RANLIB="$(tc-getRANLIB)" \ |
90 | NTL_GMP_LIP=on NTL_GF2X_LIB=on \ |
91 | || die "DoConfig failed" |
92 | } |
93 | |
94 | src_compile() { |
95 | # split the targets to allow parallel make to run properly |
96 | emake setup1 setup2 || die "emake setup failed" |
97 | emake setup3 || die "emake setup failed" |
98 | sh Wizard on || die "Tuning wizard failed" |
99 | if use static-libs || use test; then |
100 | emake ntl.a || die "emake static failed" |
101 | fi |
102 | local trg=so |
103 | [[ ${CHOST} == *-darwin* ]] && trg=dylib |
104 | emake shared${trg} || die "emake shared failed" |
105 | } |
106 | |
107 | src_install() { |
108 | if use static-libs; then |
109 | newlib.a ntl.a libntl.a || die "installation of static library failed" |
110 | fi |
111 | dolib.so lib*$(get_libname) || die "installation of shared library failed" |
112 | |
113 | cd .. |
114 | insinto /usr/include |
115 | doins -r include/NTL || die "installation of the headers failed" |
116 | |
117 | dodoc README |
118 | if use doc ; then |
119 | dodoc doc/*.txt || die |
120 | dohtml doc/* || die |
121 | fi |
122 | } |