blob: 1839d0206150d1ff2cfe1792d72f04d2a17d7b25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# /space/gentoo/cvsroot/gentoo-x86/net-libs/wvstreams/wvstreams-3.70-r1.ebuild,v 1.1 2002/07/04 02:47:58 lostlogic Exp
S=${WORKDIR}/${P}
DESCRIPTION="A network programming library in C++"
SRC_URI="http://open.nit.ca/download/${P}.tar.gz"
HOMEPAGE="http://open.nit.ca/wvstreams"
DEPEND="virtual/glibc"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 sparc alpha"
src_unpack() {
unpack ${A}
cd ${S}
patch -p1 < ${FILESDIR}/${P}-gentoo.patch || die "Patching failed"
if [ "${ARCH}" = "alpha" ]; then
sed "s:CXXOPTS += :CXXOPTS += -fPIC :" <Makefile >Makefile.sed
mv Makefile.sed Makefile
fi
}
src_compile() {
CFLAGS="${CFLAGS} -Wno-deprecated"
make || die
}
src_install() {
make \
PREFIX=${D}/usr \
install || die
}
|