forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libcutl-1.10.0.ebuild
52 lines (39 loc) · 1 KB
/
libcutl-1.10.0.ebuild
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools flag-o-matic versionator
DESCRIPTION="A collection of C++ libraries (successor of libcult)"
HOMEPAGE="http://www.codesynthesis.com/projects/libcutl/"
SRC_URI="http://www.codesynthesis.com/download/${PN}/$(get_version_component_range 1-2)/${P}.tar.bz2"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
IUSE=""
RDEPEND="
dev-libs/expat
dev-libs/boost:="
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-1.10.0-fix-c++14.patch
"${FILESDIR}"/${PN}-1.10.0-boost-1.65-tr1.patch
)
src_prepare() {
default
# remove bundled libs
rm -r cutl/details/{boost,expat} || die
eautoreconf
}
src_configure() {
# ensure <regex> works on GCC 5 and below
# bug 630016
append-cxxflags -std=c++14
econf \
--disable-static \
--with-external-boost \
--with-external-expat
}
src_install() {
default
# package provides .pc files
find "${D}" -name '*.la' -delete || die
}