summaryrefslogtreecommitdiff
path: root/net-libs/socketw/socketw-031026.ebuild
blob: d627136df8cb1affb132a9c5f680537991b76ddd (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"

inherit eutils

DESCRIPTION="a cross platform streaming socket C++ library"
HOMEPAGE="http://www.digitalfanatics.org/cal/socketw/"
SRC_URI="http://www.digitalfanatics.org/cal/socketw/files/SocketW${PV}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

RDEPEND="dev-libs/openssl"
DEPEND="${RDEPEND}
	sys-apps/sed"

S="${WORKDIR}"/SocketW${PV}

src_prepare() {
	epatch "${FILESDIR}"/${P}-compile-fix.patch
	sed -i \
		-e "s:^PREFIX =/usr/local$:PREFIX =${D}/usr:" \
		-e "s:^CFLAGS =-Wall -O3 -ffast-math$:CFLAGS =-Wall -O3 -ffast-math ${CXXFLAGS}:" \
		Makefile.conf || die "sed failed"
}

src_install() {
	emake install || die
}