diff options
author | 2015-12-28 14:33:02 +0100 | |
---|---|---|
committer | 2015-12-28 14:34:28 +0100 | |
commit | 093f23a979872f8e794498c24cdf121e32cec879 (patch) | |
tree | d2db84cb31edded4ef3bb63e85c4872459e38a6d /sci-chemistry/avogadro/avogadro-1.1.1.ebuild | |
parent | dev-python/pip: Update shell completion generation (diff) | |
download | gentoo-093f23a979872f8e794498c24cdf121e32cec879.tar.gz gentoo-093f23a979872f8e794498c24cdf121e32cec879.tar.bz2 gentoo-093f23a979872f8e794498c24cdf121e32cec879.zip |
sci-chemistry/avogadro: Version Bump & fix linking problems with openbabel
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=569896
Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'sci-chemistry/avogadro/avogadro-1.1.1.ebuild')
-rw-r--r-- | sci-chemistry/avogadro/avogadro-1.1.1.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/sci-chemistry/avogadro/avogadro-1.1.1.ebuild b/sci-chemistry/avogadro/avogadro-1.1.1.ebuild new file mode 100644 index 000000000000..090d99ccd477 --- /dev/null +++ b/sci-chemistry/avogadro/avogadro-1.1.1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils eutils flag-o-matic python-single-r1 + +DESCRIPTION="Advanced molecular editor that uses Qt4 and OpenGL" +HOMEPAGE="http://avogadro.openmolecules.net/" +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+glsl python cpu_flags_x86_sse2 test" + +RDEPEND=" + >=sci-chemistry/openbabel-2.3.0 + >=dev-qt/qtgui-4.8.5:4 + >=dev-qt/qtopengl-4.8.5:4 + x11-libs/gl2ps + glsl? ( >=media-libs/glew-1.5.0 ) + python? ( + >=dev-libs/boost-1.35.0-r5[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/sip[${PYTHON_USEDEP}] + )" +DEPEND="${RDEPEND} + dev-cpp/eigen:2" + +# https://sourceforge.net/p/avogadro/bugs/653/ +RESTRICT="test" + +PATCHES=( + #"${FILESDIR}"/${PN}-1.1.0-textrel.patch + "${FILESDIR}"/${PN}-1.1.0-xlibs.patch + "${FILESDIR}"/${P}-eigen3.patch + "${FILESDIR}"/${P}-mkspecs-dir.patch + "${FILESDIR}"/${P}-no-strip.patch + "${FILESDIR}"/${P}-pkgconfig_eigen.patch + "${FILESDIR}"/${P}-openbabel.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + sed \ + -e 's:_BSD_SOURCE:_DEFAULT_SOURCE:g' \ + -i CMakeLists.txt || die + # warning: "Eigen2 support is deprecated in Eigen 3.2.x and it will be removed in Eigen 3.3." + append-cppflags -DEIGEN_NO_EIGEN2_DEPRECATED_WARNING + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DENABLE_THREADEDGL=OFF + -DENABLE_RPATH=OFF + -DENABLE_UPDATE_CHECKER=OFF + -DQT_MKSPECS_DIR="${EPREFIX}/usr/share/qt4/mkspecs" + -DQT_MKSPECS_RELATIVE=share/qt4/mkspecs + $(cmake-utils_use_enable glsl) + $(cmake-utils_use_enable test TESTS) + $(cmake-utils_use_with cpu_flags_x86_sse2 SSE2) + $(cmake-utils_use_enable python) + ) + + cmake-utils_src_configure +} |