diff options
author | Zchai Telmach <david.lanzendoerfer@o2s.ch> | 2012-12-02 23:02:51 +0100 |
---|---|---|
committer | Zchai Telmach <david.lanzendoerfer@o2s.ch> | 2012-12-02 23:02:51 +0100 |
commit | 4a369f5ff97250d49c7a0e3de959847da46b4e2f (patch) | |
tree | 4327bdb363753558ab8de0741ffa95825ef8d407 /contrib | |
parent | 9de28c3409a49a1fa1ac0c6a9e401e914507cf03 (diff) | |
download | resdb-4a369f5ff97250d49c7a0e3de959847da46b4e2f.tar.gz resdb-4a369f5ff97250d49c7a0e3de959847da46b4e2f.zip |
Adding NaCl ebuild
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ebuilds/nacl-20110221.ebuild | 50 | ||||
-rw-r--r-- | contrib/ebuilds/quicktun-2.1.7.ebuild | 2 |
2 files changed, 51 insertions, 1 deletions
diff --git a/contrib/ebuilds/nacl-20110221.ebuild b/contrib/ebuilds/nacl-20110221.ebuild new file mode 100644 index 0000000..7d1afb2 --- /dev/null +++ b/contrib/ebuilds/nacl-20110221.ebuild @@ -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 --git a/contrib/ebuilds/quicktun-2.1.7.ebuild b/contrib/ebuilds/quicktun-2.1.7.ebuild index 2af4aed..f0d6e10 100644 --- a/contrib/ebuilds/quicktun-2.1.7.ebuild +++ b/contrib/ebuilds/quicktun-2.1.7.ebuild @@ -14,7 +14,7 @@ SLOT="2" KEYWORDS="~amd64" IUSE="" -DEPEND="dev-lang/nacl-toolchain-newlib" +DEPEND="dev-libs/nacl" RDEPEND="${DEPEND}" src_compile() { |