annotate contrib/ebuilds/nacl-20110221.ebuild @ 1206:08be53f67e42 draft

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