diff options
author | Austin English <wizardedit@gentoo.org> | 2016-07-08 12:28:26 -0500 |
---|---|---|
committer | Austin English <wizardedit@gentoo.org> | 2016-07-08 12:57:42 -0500 |
commit | 761d119a245c8a63cc70480e220d984bd24cf909 (patch) | |
tree | 9bdc19d766b1eff444efbf2d8cb6e46e942c76a2 /dev-libs/libntru | |
parent | dev-libs/libkpass: bump to EAPI 6, add maintainer-needed (diff) | |
download | gentoo-761d119a245c8a63cc70480e220d984bd24cf909.tar.gz gentoo-761d119a245c8a63cc70480e220d984bd24cf909.tar.bz2 gentoo-761d119a245c8a63cc70480e220d984bd24cf909.zip |
dev-libs/libntru: bump to EAPI 6, add maintainer-needed
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-libs/libntru')
-rw-r--r-- | dev-libs/libntru/libntru-0.4.1-r1.ebuild | 65 | ||||
-rw-r--r-- | dev-libs/libntru/metadata.xml | 1 |
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-libs/libntru/libntru-0.4.1-r1.ebuild b/dev-libs/libntru/libntru-0.4.1-r1.ebuild new file mode 100644 index 000000000000..81433a99c056 --- /dev/null +++ b/dev-libs/libntru/libntru-0.4.1-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils toolchain-funcs multilib multilib-minimal + +DESCRIPTION="C Implementation of NTRUEncrypt" +HOMEPAGE="https://github.com/tbuktu/libntru" +SRC_URI="https://github.com/tbuktu/libntru/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples static-libs" + +DEPEND="dev-lang/perl" + +src_prepare() { + default + + multilib_copy_sources + + _copy_test_dir() { + cp -pr "${BUILD_DIR}" "${BUILD_DIR}-test" || die + } + multilib_foreach_abi _copy_test_dir +} + +multilib_src_compile() { + CFLAGS="${CFLAGS}" \ + emake \ + CC="$(tc-getCC)" \ + $(usex static-libs "libntru.a libntru.so" "") \ + MACHINE="$(if [[ ${ABI} == x86 ]] ; then echo i386 ; else echo x86_64 ; fi)" +} + +src_test() { + _test() { + CFLAGS="${CFLAGS}" \ + emake CC="$(tc-getCC)" test -j1 -C "${BUILD_DIR}-test" \ + MACHINE="$(if [[ ${ABI} == x86 ]] ; then echo i386 ; else echo x86_64 ; fi)" + + } + + multilib_foreach_abi _test +} + +multilib_src_install() { + emake \ + DESTDIR="${ED}" \ + INST_LIBDIR="/usr/$(get_libdir)" \ + INST_DOCDIR="/usr/share/doc/${PF}" \ + MACHINE="$(if [[ ${ABI} == x86 ]] ; then echo i386 ; else echo x86_64 ; fi)" \ + install $(usex static-libs install-static-lib "") +} + +multilib_src_install_all() { + einstalldocs + if use examples ; then + docinto examples + dodoc src/hybrid.c + fi +} diff --git a/dev-libs/libntru/metadata.xml b/dev-libs/libntru/metadata.xml index a6c3d28f22c6..83d560b32b49 100644 --- a/dev-libs/libntru/metadata.xml +++ b/dev-libs/libntru/metadata.xml @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> + <!-- maintainer-needed --> <upstream> <remote-id type="github">tbuktu/libntru</remote-id> </upstream> |