blob: 6d39a1d2022afa03240b4ffea36370216576882a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molsketch/molsketch-0.2.0-r1.ebuild,v 1.2 2011/03/26 22:26:30 jlec Exp $
EAPI=3
inherit cmake-utils multilib
MY_P=${P/m/M}-Source
DESCRIPTION="A drawing tool for 2D molecular structures"
HOMEPAGE="http://molsketch.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""
DEPEND="
=sci-chemistry/openbabel-2.2*
x11-libs/qt-core:4
x11-libs/qt-gui:4
x11-libs/qt-test:4
|| ( >=x11-libs/qt-assistant-4.7.0:4[compat]
<x11-libs/qt-assistant-4.7.0:4 )"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${MY_P}
src_prepare() {
sed -e "/LIBRARY DESTINATION/ s/lib/$(get_libdir)/g" \
-i libmolsketch/src/CMakeLists.txt || die #351246
sed -e "s:doc/molsketch:doc/${PF}:g" \
-i molsketch/src/{CMakeLists.txt,mainwindow.cpp} || die
}
src_configure() {
local mycmakeargs="
-DOPENBABEL2_INCLUDE_DIR=${EPREFIX}/usr/include/openbabel-2.0"
cmake-utils_src_configure
}
|