42 lines
944 B
Bash
42 lines
944 B
Bash
|
# Copyright 1999-2013 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/dev-libs/ferrisloki/ferrisloki-3.0.13.ebuild,v 1.1 2013/02/05 07:25:18 dev-zero Exp $
|
||
|
|
||
|
EAPI="5"
|
||
|
|
||
|
inherit eutils
|
||
|
|
||
|
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"
|
||
|
IUSE="static-libs stlport"
|
||
|
|
||
|
RDEPEND="stlport? ( >=dev-libs/STLport-5 )
|
||
|
dev-libs/libsigc++:2"
|
||
|
DEPEND="${RDEPEND}
|
||
|
virtual/pkgconfig"
|
||
|
|
||
|
src_prepare() {
|
||
|
# 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
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
--with-stlport=/usr/include/stlport \
|
||
|
$(use_enable stlport) \
|
||
|
$(use_enable static-libs static)
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
prune_libtool_files
|
||
|
}
|