summaryrefslogtreecommitdiff
path: root/dev-libs/socketstream/socketstream-0.7.0-r1.ebuild
blob: 741291a7e96b7670843defd6ac76c117b607d8be (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 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

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"

BDEPEND="doc? ( app-doc/doxygen )"

PATCHES=(
	"${FILESDIR}"/${PV}-missing_includes.patch
	"${FILESDIR}"/${P}-gcc47.patch
)

src_prepare() {
	default
	# 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"
}

src_compile() {
	default
	use doc && emake doxygen
}

src_install() {
	use doc && local HTML_DOCS=( docs/html/. )
	default
}