# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit autotools-utils versionator DESCRIPTION="C++ utility library internally needed for Codesynthesis' tools" HOMEPAGE="http://www.codesynthesis.com/projects/libcutl" MY_V=$(get_version_component_range 1-2) MY_URL_REL=http://www.codesynthesis.com/download/libcutl MY_URL_PRE=http://codesynthesis.com/~boris/tmp/libcutl/pre-release MY_A=${P/_pre/.a} test "${MY_A}" == "${P}"\ && SRC_URI="${MY_URL_REL}/${MY_V}/${P}.tar.bz2"\ || SRC_URI="${MY_URL_PRE}/${MY_A}.tar.bz2 -> ${P}.tar.bz2" LICENSE="MIT Boost-1.0" SLOT="0" KEYWORDS="~amd64" IUSE="doc static-libs threads boost" DEPEND="boost? ( dev-libs/boost[static-libs?,threads?] )" RDEPEND=${DEPEND} RESTRICT=test src_unpack() { unpack ${A} if test "${MY_A}" != "${P}"; then mv "${WORKDIR}/${MY_A}" "${S}" || die fi } src_configure() { #--{en,dis}able-static will be set by autools-utils myeconfargs=( --docdir="${T}" $(use_with boost external-boost ) $(use_enable threads) ) use boost || ewarn "Code still contains Boost-1.0 copyrighted portions" autotools-utils_src_configure } # vim: ts=4:sw=4: # hint: to get vi settings work, try "set modeline" >> ~/.vimrc