# HG changeset patch # User Zchai Telmach # Date 1354485771 -3600 # Node ID 9b65eafaf2d860b2311d3de3add2f3db54970211 # Parent 35abad4952803476ab80aa499369f76e6ab83d30 Adding NaCl ebuild diff -r 35abad495280 -r 9b65eafaf2d8 contrib/ebuilds/nacl-20110221.ebuild --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/ebuilds/nacl-20110221.ebuild Sun Dec 02 23:02:51 2012 +0100 @@ -0,0 +1,50 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +DESCRIPTION="Networking and Cryptography library" +HOMEPAGE="http://nacl.cr.yp.to/" +SRC_URI="http://hyperelliptic.org/nacl/nacl-20110221.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + + +src_compile(){ + ./do +} + +src_install(){ + SHORTHOSTNAME=`hostname | sed 's/\..*//' | tr -cd '[a-z][A-Z][0-9]'` + PKGDIR="nacl-20110221" + + mv ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/*/* ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/ + mkdir ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/nacl + + mv ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/*.h ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/nacl/ + mv ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/lib/*/* ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/lib/ + + rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/log + rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/work + rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/data + rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/x86 + rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/amd64 + rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/lpia + rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/lib/x86 + rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/lib/amd64 + rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/lib/lpia + rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/bin/ok* + rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/lib/*.o + + rm "${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/nacl/cpuid.h" + + mkdir -p ${D}/usr/ + cp -r "${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}"/* ${D}/usr/ +} diff -r 35abad495280 -r 9b65eafaf2d8 contrib/ebuilds/quicktun-2.1.7.ebuild --- a/contrib/ebuilds/quicktun-2.1.7.ebuild Sat Dec 01 21:44:07 2012 +0000 +++ b/contrib/ebuilds/quicktun-2.1.7.ebuild Sun Dec 02 23:02:51 2012 +0100 @@ -14,7 +14,7 @@ KEYWORDS="~amd64" IUSE="" -DEPEND="dev-lang/nacl-toolchain-newlib" +DEPEND="dev-libs/nacl" RDEPEND="${DEPEND}" src_compile() {