# 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 }