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