aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2011-08-03 17:36:35 +0400
committerAlexey Shvetsov <alexxy@gentoo.org>2011-08-03 17:36:35 +0400
commit560a1a141aad05fc626deeca8317e933974dc34a (patch)
tree2f9a6c8c153e453fbe0d72b421f6b0ed3ebfa306 /media-libs/OpenMOIV/OpenMOIV-1.0.3a.ebuild
parentUse rpath if prefix is enabled. (diff)
downloadsci-560a1a141aad05fc626deeca8317e933974dc34a.tar.gz
sci-560a1a141aad05fc626deeca8317e933974dc34a.tar.bz2
sci-560a1a141aad05fc626deeca8317e933974dc34a.zip
[media-libs/OpenMOIV] Initial import per bug #239321
(Portage version: 2.2.0_alpha50/git/Linux x86_64, signed Manifest commit with key F82F92E6)
Diffstat (limited to 'media-libs/OpenMOIV/OpenMOIV-1.0.3a.ebuild')
-rw-r--r--media-libs/OpenMOIV/OpenMOIV-1.0.3a.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/media-libs/OpenMOIV/OpenMOIV-1.0.3a.ebuild b/media-libs/OpenMOIV/OpenMOIV-1.0.3a.ebuild
new file mode 100644
index 000000000..5c150c1b3
--- /dev/null
+++ b/media-libs/OpenMOIV/OpenMOIV-1.0.3a.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit cmake-utils
+
+DESCRIPTION="Object-oriented 3D toolkit that facilitates the rendering and interaction of chemical systems."
+HOMEPAGE="http://www.tecn.upf.es/openMOIV/"
+SRC_URI="http://www.tecn.upf.es/openMOIV/download/1.0.3/${PN}.src.${PV}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+IUSE=""
+
+RDEPEND="
+ media-libs/coin
+ "
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${PN}.src.${PV/a//}"
+
+src_prepare() {
+ sed -e 's:$ENV{OIV_DIR}/include:/usr/include/coin:g' \
+ -i CMakeLists.txt || die
+}
+
+src_configure() {
+ mycmakeargs="${mycmakeargs} -Dshared:int=1 -Dcoin:int=1 -Dsys_fonts:int=1"
+ cmake-utils_src_configure
+}
+
+src_install() {
+ insinto "/usr/$(get_libdir)"
+ doins "${CMAKE_BUILD_DIR}/libChemKit2.so" || die "doins for libChemKit2 failed"
+
+ insinto "/usr/include"
+ doins -r "${S}/include/ChemKit2" || die "include install failed"
+}