Skip to content

Commit

Permalink
Drop unnecessary die from emake
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Lecher <jlec@gentoo.org>
  • Loading branch information
jlec committed Sep 23, 2015
1 parent 8cfad58 commit 31948f2
Show file tree
Hide file tree
Showing 55 changed files with 2,875 additions and 59 deletions.
1 change: 0 additions & 1 deletion dev-cpp/eigen/eigen-3.2.2.ebuild

This file was deleted.

117 changes: 117 additions & 0 deletions dev-cpp/eigen/eigen-3.2.2.ebuild
@@ -0,0 +1,117 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

FORTRAN_NEEDED=fortran

if [[ ${PV} == "9999" ]] ; then
inherit mercurial
EHG_REPO_URI="https://bitbucket.org/eigen/eigen"
SRC_URI=""
KEYWORDS=""
else
inherit vcs-snapshot
SRC_URI="
http://bitbucket.org/eigen/eigen/get/${PV}.tar.bz2 -> ${P}.tar.bz2
https://bitbucket.org/eigen/eigen/commits/1d71b1341c03a7c485289be2c8bd906a259c0487/raw/ -> ${P}-cmake.patch
"
PATCHES=( "${DISTDIR}"/${P}-cmake.patch )
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
fi

inherit alternatives-2 cmake-utils fortran-2 multilib

DESCRIPTION="C++ template library for linear algebra"
HOMEPAGE="http://eigen.tuxfamily.org/"

SLOT="3"
LICENSE="MPL-2.0"
IUSE="adolc doc fortran fftw gmp metis mkl pastix sparse static-libs test"

CDEPEND="
adolc? ( sci-libs/adolc[sparse?] )
fftw? ( sci-libs/fftw:3.0 )
gmp? ( dev-libs/gmp:0 dev-libs/mpfr:0 )
metis? ( sci-libs/metis )
mkl? ( sci-libs/mkl )
pastix? ( sci-libs/pastix )
sparse? (
dev-cpp/sparsehash
sci-libs/cholmod[metis?]
sci-libs/spqr
sci-libs/superlu
sci-libs/umfpack )"
DEPEND="
doc? ( app-doc/doxygen[dot,latex] )
test? ( ${CDEPEND} )"

RDEPEND="
!dev-cpp/eigen:0
${CDEPEND}"

src_prepare() {
sed -i \
-e "s:/usr:${EPREFIX}/usr:g" \
-e "s:/bin/bash:${EPREFIX}/bin/bash:g" \
cmake/*.cmake || die
sed -i \
-e "/DESTINATION/s:lib:$(get_libdir):g" \
{blas,lapack}/CMakeLists.txt || die

# TOFIX: static-libs for blas are always built with PIC
use static-libs || sed -i \
-e "/add_dependencies/s/eigen_[a-z]*_static//g" \
-e "/TARGETS/s/eigen_[a-z]*_static//g" \
-e "/add_library(eigen_[a-z]*_static/d" \
-e "/target_link_libraries(eigen_[a-z]*_static/d" \
{blas,lapack}/CMakeLists.txt || die
cmake-utils_src_prepare
}

src_configure() {
# TOFIX: is it worth fixing all the automagic given no library is built?
# cmake has buggy disable_testing feature, so leave it for now
local mycmakeargs=(
-DDART_TESTING_TIMEOUT=300
-DEIGEN_BUILD_BTL=OFF
)
export VARTEXFONTS="${T}/fonts"
CMAKE_BUILD_TYPE="release" cmake-utils_src_configure
# use fortran && FORTRAN_LIBS="blas lapack" not ready
use fortran && FORTRAN_LIBS="blas"
}

src_compile() {
local targets="${FORTRAN_LIBS}"
use doc && targets+=" doc"
use test && targets+=" check"
cmake-utils_src_compile ${targets}
}

src_install() {
cmake-utils_src_install
use doc && dohtml -r "${BUILD_DIR}"/doc/html/*
local x
for x in ${FORTRAN_LIBS}; do
local libname="eigen_${x}"
emake DESTDIR="${D}" -C "${BUILD_DIR}/${x}" install ${libname}
cat > ${libname}.pc <<-EOF
prefix=${EPREFIX}/usr
libdir=\${prefix}/$(get_libdir)
includedir=\${prefix}/include
Name: ${PN}
Description: ${DESCRIPTION} ${x^^} implementation
Version: ${PV}
URL: ${HOMEPAGE}
Libs: -L\${libdir} -l${libname}
Libs.private: -lm
$([[ ${x} == lapack ]] && echo "Requires: blas")
EOF
alternatives_for ${x} eigen 0 \
/usr/$(get_libdir)/pkgconfig/${x}.pc ${libname}.pc
insinto /usr/$(get_libdir)/pkgconfig
doins ${libname}.pc
done
}
1 change: 0 additions & 1 deletion dev-cpp/eigen/eigen-3.2.4.ebuild

This file was deleted.

117 changes: 117 additions & 0 deletions dev-cpp/eigen/eigen-3.2.4.ebuild
@@ -0,0 +1,117 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

FORTRAN_NEEDED=fortran

if [[ ${PV} == "9999" ]] ; then
inherit mercurial
EHG_REPO_URI="https://bitbucket.org/eigen/eigen"
SRC_URI=""
KEYWORDS=""
else
inherit vcs-snapshot
SRC_URI="
http://bitbucket.org/eigen/eigen/get/${PV}.tar.bz2 -> ${P}.tar.bz2
https://bitbucket.org/eigen/eigen/commits/1d71b1341c03a7c485289be2c8bd906a259c0487/raw/ -> ${P}-cmake.patch
"
PATCHES=( "${DISTDIR}"/${P}-cmake.patch )
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
fi

inherit alternatives-2 cmake-utils fortran-2 multilib

DESCRIPTION="C++ template library for linear algebra"
HOMEPAGE="http://eigen.tuxfamily.org/"

SLOT="3"
LICENSE="MPL-2.0"
IUSE="adolc doc fortran fftw gmp metis mkl pastix sparse static-libs test"

CDEPEND="
adolc? ( sci-libs/adolc[sparse?] )
fftw? ( sci-libs/fftw:3.0 )
gmp? ( dev-libs/gmp:0 dev-libs/mpfr:0 )
metis? ( sci-libs/metis )
mkl? ( sci-libs/mkl )
pastix? ( sci-libs/pastix )
sparse? (
dev-cpp/sparsehash
sci-libs/cholmod[metis?]
sci-libs/spqr
sci-libs/superlu
sci-libs/umfpack )"
DEPEND="
doc? ( app-doc/doxygen[dot,latex] )
test? ( ${CDEPEND} )"

RDEPEND="
!dev-cpp/eigen:0
${CDEPEND}"

src_prepare() {
sed -i \
-e "s:/usr:${EPREFIX}/usr:g" \
-e "s:/bin/bash:${EPREFIX}/bin/bash:g" \
cmake/*.cmake || die
sed -i \
-e "/DESTINATION/s:lib:$(get_libdir):g" \
{blas,lapack}/CMakeLists.txt || die

# TOFIX: static-libs for blas are always built with PIC
use static-libs || sed -i \
-e "/add_dependencies/s/eigen_[a-z]*_static//g" \
-e "/TARGETS/s/eigen_[a-z]*_static//g" \
-e "/add_library(eigen_[a-z]*_static/d" \
-e "/target_link_libraries(eigen_[a-z]*_static/d" \
{blas,lapack}/CMakeLists.txt || die
cmake-utils_src_prepare
}

src_configure() {
# TOFIX: is it worth fixing all the automagic given no library is built?
# cmake has buggy disable_testing feature, so leave it for now
local mycmakeargs=(
-DDART_TESTING_TIMEOUT=300
-DEIGEN_BUILD_BTL=OFF
)
export VARTEXFONTS="${T}/fonts"
CMAKE_BUILD_TYPE="release" cmake-utils_src_configure
# use fortran && FORTRAN_LIBS="blas lapack" not ready
use fortran && FORTRAN_LIBS="blas"
}

src_compile() {
local targets="${FORTRAN_LIBS}"
use doc && targets+=" doc"
use test && targets+=" check"
cmake-utils_src_compile ${targets}
}

src_install() {
cmake-utils_src_install
use doc && dohtml -r "${BUILD_DIR}"/doc/html/*
local x
for x in ${FORTRAN_LIBS}; do
local libname="eigen_${x}"
emake DESTDIR="${D}" -C "${BUILD_DIR}/${x}" install ${libname}
cat > ${libname}.pc <<-EOF
prefix=${EPREFIX}/usr
libdir=\${prefix}/$(get_libdir)
includedir=\${prefix}/include
Name: ${PN}
Description: ${DESCRIPTION} ${x^^} implementation
Version: ${PV}
URL: ${HOMEPAGE}
Libs: -L\${libdir} -l${libname}
Libs.private: -lm
$([[ ${x} == lapack ]] && echo "Requires: blas")
EOF
alternatives_for ${x} eigen 0 \
/usr/$(get_libdir)/pkgconfig/${x}.pc ${libname}.pc
insinto /usr/$(get_libdir)/pkgconfig
doins ${libname}.pc
done
}

This file was deleted.

30 changes: 30 additions & 0 deletions dev-python/arrayfire-python/arrayfire-python-3.0.20150914.ebuild
@@ -0,0 +1,30 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )

inherit distutils-r1

DESCRIPTION="Python bindings for ArrayFire"
HOMEPAGE="http://www.arrayfire.com"

MY_PN="arrayfire"

if [ ${PV} == "9999" ] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/arrayfire/${PN}.git git://github.com/arrayfire/${PN}.git"
else
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${MY_PN}-${PV}"
fi

LICENSE="BSD"
SLOT="0"

RDEPEND="
>=sci-libs/arrayfire-3.0.0
"
DEPEND="${RDEPEND}"
1 change: 0 additions & 1 deletion dev-python/brewer2mpl/brewer2mpl-1.4.1.ebuild

This file was deleted.

25 changes: 25 additions & 0 deletions dev-python/brewer2mpl/brewer2mpl-1.4.1.ebuild
@@ -0,0 +1,25 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )

inherit distutils-r1

DESCRIPTION="Connect colorbrewer2.org color maps to Python and matplotlib"
HOMEPAGE="https://github.com/jiffyclub/brewer2mpl"

if [ ${PV} == "9999" ] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/jiffyclub/${PN}.git git://github.com/jiffyclub/${PN}.git"
else
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
KEYWORDS="~amd64"
fi

LICENSE="MIT"
SLOT="0"

RDEPEND="dev-python/matplotlib[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
1 change: 0 additions & 1 deletion dev-python/ipykernel/ipykernel-4.0.3.ebuild

This file was deleted.

39 changes: 39 additions & 0 deletions dev-python/ipykernel/ipykernel-4.0.3.ebuild
@@ -0,0 +1,39 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
PYTHON_COMPAT=( python2_7 python{3_3,3_4} )

inherit distutils-r1

DESCRIPTION="IPython Kernel for Jupyter"
HOMEPAGE="https://github.com/ipython/ipykernel"

if [ ${PV} == "9999" ] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/ipython/${PN}.git git://github.com/ipython/${PN}.git"
else
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi

LICENSE="BSD"
SLOT="0"
IUSE="test"

RDEPEND="
dev-python/traitlets[${PYTHON_USEDEP}]"
#dev-python/jupyter_client[${PYTHON_USEDEP}]
#>=dev-python/ipython-4.0.0[${PYTHON_USEDEP}]
DEPEND="${RDEPEND}
test? (
dev-python/coverage[${PYTHON_USEDEP}]
>=dev-python/ipython-4.0.0[${PYTHON_USEDEP}]
dev-python/nose[${PYTHON_USEDEP}]
)
"

python_test() {
nosetests --with-coverage --cover-package ipykernel ipykernel || die
}
1 change: 0 additions & 1 deletion dev-python/ipyparallel/ipyparallel-4.0.0-r1.ebuild

This file was deleted.

0 comments on commit 31948f2

Please sign in to comment.