annotate net-libs/udt/udt-4.10.ebuild @ 350:40430d2a0b27

fix the qtcore dependeny name, add the iked init script
author Dirk Olmes <dirk.olmes@exentra.de>
date Mon, 16 Sep 2013 16:39:12 +0200
parents 969a66f2de7d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
336
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
1 # Copyright 1999-2010 Gentoo Foundation
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
3 # $Header: $
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
4
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
5 EAPI="2"
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
6
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
7 DESCRIPTION="UDT is a UDP based data transport protocol"
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
8 HOMEPAGE="http://udt.sourceforge.net"
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
9 SRC_URI="mirror://sourceforge/${PN}/${PN}.sdk.${PV}.tar.gz"
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
10
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
11 LICENSE="BSD"
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
12 SLOT="0"
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
13 KEYWORDS="~amd64 ~x86"
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
14 IUSE=""
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
15
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
16 DEPEND=""
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
17 RDEPEND="${DEPEND}"
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
18
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
19 S="${WORKDIR}/udt4"
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
20 MAKEOPTS="${MAKEOPTS} -j1"
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
21
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
22 src_compile(){
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
23 echo "${S}"
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
24 echo `pwd`
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
25 cd "${S}"
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
26
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
27 case ${ARCH} in
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
28 x86) PLATFORM="IA32";;
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
29 ppc|ppc64) PLATFORM="POWERPC";;
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
30 amd64) PLATFORM="AMD64";;
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
31 ia64) PLATFORM="IA64";;
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
32 *) die "Architecture ${ARCH} not supported" ;;
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
33 esac
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
34
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
35 case ${CHOST} in
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
36 *-freebsd*|*-netbsd*|*-openbsd*|*-dragonfly*) OSNAME="BSD" ;;
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
37 *-darwin*) OSNAME="OSX" ;;
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
38 *) OSNAME="LINUX" ;;
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
39 esac
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
40
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
41 emake os="${OSNAME}" arch="${PLATFORM}" || die 'make failed'
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
42 }
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
43
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
44 src_install(){
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
45 dolib src/libudt.*
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
46
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
47 insinto /usr/include
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
48 doins src/udt.h
969a66f2de7d initial ebuild for UDT
holger
parents:
diff changeset
49 }