Mercurial > hg > anonet-resdb
comparison contrib/ebuilds/nacl-20110221.ebuild @ 1068:9b65eafaf2d8 draft
Adding NaCl ebuild
author | Zchai Telmach <david.lanzendoerfer@o2s.ch> |
---|---|
date | Sun, 02 Dec 2012 23:02:51 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1067:35abad495280 | 1068:9b65eafaf2d8 |
---|---|
1 # Copyright 1999-2012 Gentoo Foundation | |
2 # Distributed under the terms of the GNU General Public License v2 | |
3 # $Header: $ | |
4 | |
5 EAPI=4 | |
6 | |
7 DESCRIPTION="Networking and Cryptography library" | |
8 HOMEPAGE="http://nacl.cr.yp.to/" | |
9 SRC_URI="http://hyperelliptic.org/nacl/nacl-20110221.tar.bz2" | |
10 | |
11 LICENSE="GPL-2" | |
12 SLOT="0" | |
13 KEYWORDS="~amd64" | |
14 IUSE="" | |
15 | |
16 DEPEND="" | |
17 RDEPEND="${DEPEND}" | |
18 | |
19 | |
20 src_compile(){ | |
21 ./do | |
22 } | |
23 | |
24 src_install(){ | |
25 SHORTHOSTNAME=`hostname | sed 's/\..*//' | tr -cd '[a-z][A-Z][0-9]'` | |
26 PKGDIR="nacl-20110221" | |
27 | |
28 mv ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/*/* ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/ | |
29 mkdir ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/nacl | |
30 | |
31 mv ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/*.h ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/nacl/ | |
32 mv ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/lib/*/* ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/lib/ | |
33 | |
34 rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/log | |
35 rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/work | |
36 rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/data | |
37 rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/x86 | |
38 rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/amd64 | |
39 rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/lpia | |
40 rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/lib/x86 | |
41 rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/lib/amd64 | |
42 rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/lib/lpia | |
43 rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/bin/ok* | |
44 rm -rf ${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/lib/*.o | |
45 | |
46 rm "${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}/include/nacl/cpuid.h" | |
47 | |
48 mkdir -p ${D}/usr/ | |
49 cp -r "${WORKDIR}/${PKGDIR}/build/${SHORTHOSTNAME}"/* ${D}/usr/ | |
50 } |