diff options
Diffstat (limited to 'dev-libs/socketstream/socketstream-0.7.0-r1.ebuild')
-rw-r--r-- | dev-libs/socketstream/socketstream-0.7.0-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-libs/socketstream/socketstream-0.7.0-r1.ebuild b/dev-libs/socketstream/socketstream-0.7.0-r1.ebuild new file mode 100644 index 000000000000..4c3db8cca90f --- /dev/null +++ b/dev-libs/socketstream/socketstream-0.7.0-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +DESCRIPTION="C++ Streaming sockets library" +HOMEPAGE="http://socketstream.sourceforge.net/" +SRC_URI="mirror://sourceforge/socketstream/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~hppa ~ppc ~sparc x86" +IUSE="doc" + +DEPEND="doc? ( app-doc/doxygen )" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + # include/Makefile uses DIST_SUBDIRS and thus headers dont get installed + sed -i 's|^DIST_\(SUBDIRS =\)|\1|' include/Makefile.in || \ + die "sed include/Makefile.in failed" + + epatch "${FILESDIR}"/${PV}-missing_includes.patch + epatch "${FILESDIR}"/${P}-gcc47.patch +} + +src_compile() { + econf || die "econf failed" + emake || die "emake failed" + + if use doc ; then + emake doxygen || die "failed to build docs" + fi +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + dodoc AUTHORS ChangeLog NEWS README* HACKING TODO + use doc && dohtml -r docs/html/* +} |