Files
gentoo/dev-libs/quantlib/quantlib-1.6.ebuild
T
Robin H. Johnson 56bd759df1 proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.

This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.

Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
2015-08-08 17:38:18 -07:00

99 lines
2.0 KiB
Bash

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit elisp-common eutils toolchain-funcs
MY_P="QuantLib-${PV}"
DESCRIPTION="A comprehensive software framework for quantitative finance"
HOMEPAGE="http://quantlib.org/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug doc emacs examples openmp static-libs"
RDEPEND="dev-libs/boost:="
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen[dot] )
emacs? ( virtual/emacs )"
DOCS="*.txt"
S="${WORKDIR}/${MY_P}"
SITEFILE="50${PN}-gentoo.el"
pkg_setup() {
if use openmp ; then
tc-has-openmp || die "Please switch to an openmp compatible compiler"
fi
}
src_prepare() {
epatch_user
}
src_configure() {
# NOTE: Too fragile for single .pdf or .ps document
local prog
for prog in DVIPS LATEX MAKEINDEX PDFLATEX; do
export ac_cv_path_${prog}=no
done
use doc || export ac_cv_path_DOXYGEN=no
use emacs || export ac_cv_prog_EMACS=no
# NOTE: --enable-examples will only change noinst_PROGRAMS to bin_PROGRAMS
econf \
$(use_enable debug error-functions) \
$(use_enable debug error-lines) \
$(use_enable debug tracing) \
$(use_enable openmp) \
$(use_enable static-libs static) \
--enable-examples \
--with-lispdir="${SITELISP}/${PN}"
}
src_compile() {
default
if use doc; then
pushd Docs >/dev/null
emake docs-html
popd >/dev/null
fi
}
src_install(){
default
prune_libtool_files
if use doc; then
find Docs \( -name '.time-stamp*' -o -name '*.doxy' -o -name 'Makefile*' \) -delete || die
insinto "/usr/share/doc/${PF}"
doins -r Docs
fi
if use examples; then
find Examples -name '.libs' -exec rm -rf {} + || die
find Examples \( -name '*vc*proj*' -o -name '*.dev' -o -name 'Makefile*' -o -name '*.o' \) -delete || die
insinto "/usr/share/doc/${PF}"
doins -r Examples
fi
use emacs && elisp-site-file-install "${FILESDIR}/${SITEFILE}"
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}