diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/libntru |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/libntru')
-rw-r--r-- | dev-libs/libntru/Manifest | 6 | ||||
-rw-r--r-- | dev-libs/libntru/libntru-0.4.1-r1.ebuild | 64 | ||||
-rw-r--r-- | dev-libs/libntru/libntru-0.4.1.ebuild | 62 | ||||
-rw-r--r-- | dev-libs/libntru/metadata.xml | 8 |
4 files changed, 140 insertions, 0 deletions
diff --git a/dev-libs/libntru/Manifest b/dev-libs/libntru/Manifest new file mode 100644 index 000000000000..7a1023e23859 --- /dev/null +++ b/dev-libs/libntru/Manifest @@ -0,0 +1,6 @@ +DIST libntru-0.4.1.tar.gz 97284 SHA256 a540763f12c496b057f75c7684274bafb4e62984e6b713720ceb7ea8f31229e5 SHA512 c49251a194614f02124c90c08b886f89d0dacbed2088eb2e306946666af3b8bc3f9c2dc2c7f5e4c0560af66fca31a640fa853b3142dcfb2ee2b0dfe9a0d41f61 WHIRLPOOL 9313e7659de9dd6cb4c13f76d5fad9bfad7bf0bf97dad24d66a910750c8df185ab356f6934c47b4371fc5295d811df181a9b756d687223869ef348852af9aa6d +EBUILD libntru-0.4.1-r1.ebuild 1427 SHA256 72319a74966cc4cf19e8ba4e5959b3daeaced62608e1a82fc7660f3d1314a582 SHA512 3ea44cdbcd5e3b9379e715b89a79e4b5f18e34fa6a4bb379afcf1f6e2ccdaad545b942b0e3f80e23956bfa6c722177502bedf86c032c301d587b538c8646938d WHIRLPOOL cca2a6cbb3ae9becfecd886ec4283795306b29dd2dd76a20af4f4fe954d5f8bddbb8fc3fcc7508717ae8206b515cb8c8e04df0b9c045f4b70246026066d6e2e0 +EBUILD libntru-0.4.1.ebuild 1417 SHA256 b81cbe93e650edefb4b7598a24cf2813dbeb3525e36eb6dab19425acd5bbe94a SHA512 6c137ed108af1177f0b3f7f7a716418106b2923f3c2a25e06be488a21d519079385d363ad137ef31bba8e93553102f50c88701bd1ecfbd12e7764664bd3b4774 WHIRLPOOL c5d7f33700650afc550a4eaca0d1576243918c0f54219edeafb45d27a24ec7b4b8f565433f5202162662e0101735ca23120973068acd8cabd2eaa2d22a5578f2 +MISC ChangeLog 4052 SHA256 ea501e11786ad81cf5795e3a45bc44c7090b6ca9a41afa541355cbf1fdba1540 SHA512 2779deb3ecba6c6f7b30dc0e510f3da86f9d98b763559403b3062c816df17c8632b5c39d8f4b22df31bea354022fd7a63e8dee1980148b043cd5a15a3e1c55ba WHIRLPOOL f0420ffac9e43e8a845f46955d8fde7de97dd1378905aced6b1dd1a8d3de0c5eb3f2046a386d86f12e91d9992112989a7a22eaa9f8bd39adf0bf11bd073259c9 +MISC ChangeLog-2015 893 SHA256 e1b3bdc5bbc561cd8a51ce7e9866153f36fcc8800b7b3520a190b3b812683cf3 SHA512 15f5955500e97b9e6e3bedca3debe41957215c05086772f5ce2b26ddad52e8c43e72eb57c8247a794322daa48e585665bcf88b98946cf73878cfb02250ce66a1 WHIRLPOOL 5133db9dbfec9566628b5e8e795d63503f7c80905417eba5c579e99b9629e5a15e86e1d5db6f952417e50547166b3b984a7ae8ae577a50ad0fe4e4ebcf109c0b +MISC metadata.xml 246 SHA256 c0d98a4d052f4e9a75b1ede47c7a6834e46d32861ec5c60064a9adc227722ab2 SHA512 d0b4f22c4207d647b24be3a25c4154aa30cf75727f0add14c9c1177f60fc264d1d9d60520518d16f5d5df3373d0a78643c650ab6925baf5255eab1a7e9fcebc3 WHIRLPOOL eae09828b7ddbf63055d386dff5bd8b4ed91492f6c1ad1934b38347da8ed5064dbb7892f2db99b4a6a290208032d30d737904d6cc97550de9a6e9ef3e3b10270 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..7625c4a96d4b --- /dev/null +++ b/dev-libs/libntru/libntru-0.4.1-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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/libntru-0.4.1.ebuild b/dev-libs/libntru/libntru-0.4.1.ebuild new file mode 100644 index 000000000000..c676d0ff62b7 --- /dev/null +++ b/dev-libs/libntru/libntru-0.4.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +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() { + 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 new file mode 100644 index 000000000000..83d560b32b49 --- /dev/null +++ b/dev-libs/libntru/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> |