/[gentoo-x86]/net-libs/nacl/nacl-0_p20110221.ebuild
Gentoo

Contents of /net-libs/nacl/nacl-0_p20110221.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jul 4 14:35:49 2013 UTC (7 years, 4 months ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Add ~x86 keywords as requested on bug 475668.

(Portage version: 2.2.0_alpha186/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/nacl/nacl-0_p20110221.ebuild,v 1.1 2013/05/31 07:59:22 xmw Exp $
4
5 EAPI=5
6
7 inherit flag-o-matic toolchain-funcs multilib-minimal
8
9 DESCRIPTION="high-speed software library for network communication, encryption, decryption, signatures"
10 HOMEPAGE="http://nacl.cr.yp.to/"
11 SRC_URI="http://hyperelliptic.org/nacl/${P/0_p}.tar.bz2"
12
13 LICENSE="public-domain"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="test"
17
18 DEPEND=""
19 RDEPEND="${DEPEND}"
20
21 S=${WORKDIR}/${P/0_p}
22
23 MULTILIB_WRAPPED_HEADERS=(
24 /usr/include/nacl/cpucycles.h
25 /usr/include/nacl/crypto_core_hsalsa20.h
26 /usr/include/nacl/crypto_hashblocks_sha256.h
27 /usr/include/nacl/crypto_hashblocks_sha512.h
28 /usr/include/nacl/crypto_onetimeauth_poly1305.h
29 /usr/include/nacl/crypto_scalarmult_curve25519.h
30 /usr/include/nacl/crypto_stream_aes128ctr.h
31 /usr/include/nacl/crypto_stream_salsa20.h
32 /usr/include/nacl/crypto_stream_salsa2012.h
33 /usr/include/nacl/crypto_stream_salsa208.h )
34
35 src_prepare() {
36 #drop useless path elements, verbose output, predictable include dir
37 sed -e '/^export/d' \
38 -e '/^PATH/d' \
39 -e '/^LD_LIBRARY_PATH/d' \
40 -e '/^DYLD_LIBRARY_PATH/d' \
41 -e '/^exec >/d' \
42 -e '/^shorthostname/s:=.*:=gentoo:' \
43 -i do || die
44 sed -e 's:=== `date` === ::' \
45 -i $(find . -name do) || die
46 rm -r tests
47
48 multilib_copy_sources
49
50 filter-flags "-O*"
51 append-cflags -O3 -fomit-frame-pointer -funroll-loops
52 append-cxxflags -O3 -fomit-frame-pointer -funroll-loops
53 }
54
55 multilib_src_configure() {
56 echo "$(tc-getCC) ${CFLAGS}" > okcompilers/c
57 echo "$(tc-getCXX) ${CXXFLAGS}" > okcompilers/cpp
58 echo "$(tc-getAR)" > okcompilers/archivers
59
60 sed -e "1aexport PATH=\"${BUILD_DIR}/build/gentoo/bin:${PATH}\"" \
61 -i do || die
62 }
63
64 multilib_src_compile() {
65 ./do || die
66 }
67
68 multilib_src_install() {
69 insinto /usr/$(get_libdir)/${PN}
70 doins build/gentoo/lib/*/*
71
72 insinto /usr/include/${PN}
73 doins build/gentoo/include/*/*
74 }

  ViewVC Help
Powered by ViewVC 1.1.20