diff options
author | David Seifert <soap@gentoo.org> | 2017-04-05 19:14:18 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-04-05 19:14:39 +0200 |
commit | bc02f03455e8b95ee90a444d2ee79e6d5f38ab34 (patch) | |
tree | 7f677a13fd741e3f50f9c0764d585b1b9252b366 /dev-libs/ferrisloki | |
parent | dev-libs/fampp2: Remove STLport dependency (diff) | |
download | gentoo-bc02f03455e8b95ee90a444d2ee79e6d5f38ab34.tar.gz gentoo-bc02f03455e8b95ee90a444d2ee79e6d5f38ab34.tar.bz2 gentoo-bc02f03455e8b95ee90a444d2ee79e6d5f38ab34.zip |
dev-libs/ferrisloki: Remove STLport dependency
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4369
Diffstat (limited to 'dev-libs/ferrisloki')
-rw-r--r-- | dev-libs/ferrisloki/ferrisloki-3.0.13-r2.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-libs/ferrisloki/ferrisloki-3.0.13-r2.ebuild b/dev-libs/ferrisloki/ferrisloki-3.0.13-r2.ebuild new file mode 100644 index 000000000000..3fdf609652cb --- /dev/null +++ b/dev-libs/ferrisloki/ferrisloki-3.0.13-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic + +DESCRIPTION="Loki C++ library from Modern C++ Design" +HOMEPAGE="http://www.libferris.com/" +SRC_URI="mirror://sourceforge/witme/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux" +IUSE="static-libs" + +RDEPEND=" + >=dev-libs/libsigc++-2.6:2" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + default + + # derice this damn configure script + sed -i \ + -e '/^CFLAGS/{s: -O3 : :g;s:-Wl,-O1 -Wl,--hash-style=both::;}' \ + -e 's:-lstlport_gcc:-lstlport:' \ + configure || die + + # Fix building with libsigc++-2.6 + find -name '*.h' -exec sed -i '/sigc++\/object.h/d' {} + || die + find -name '*.hh' -exec sed -i '/sigc++\/object.h/d' {} + || die +} + +src_configure() { + append-cxxflags -std=c++11 + + econf \ + --disable-stlport \ + $(use_enable static-libs static) +} + +src_install() { + default + + # package provides .pc files + find "${D}" -name '*.la' -delete || die +} |