You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.3 KiB
60 lines
1.3 KiB
7 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
7 years ago
|
EAPI=6
|
||
13 years ago
|
|
||
7 years ago
|
CMAKE_MAKEFILE_GENERATOR=ninja
|
||
13 years ago
|
|
||
7 years ago
|
inherit cmake-utils multilib qmake-utils
|
||
|
|
||
|
MY_P=${P/m/M}-src
|
||
13 years ago
|
|
||
|
DESCRIPTION="A drawing tool for 2D molecular structures"
|
||
|
HOMEPAGE="http://molsketch.sourceforge.net/"
|
||
7 years ago
|
SRC_URI="mirror://sourceforge/project/${PN}/Molsketch/Beryllium-7%20${PV}/${MY_P}.tar.gz"
|
||
13 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||
7 years ago
|
IUSE="test"
|
||
13 years ago
|
|
||
|
DEPEND="
|
||
9 years ago
|
>=sci-chemistry/openbabel-2.2
|
||
7 years ago
|
dev-qt/qtcore:5
|
||
|
dev-qt/qtgui:5
|
||
|
dev-qt/qtprintsupport:5
|
||
|
dev-qt/qtsvg:5
|
||
|
dev-qt/qtwidgets:5
|
||
|
"
|
||
13 years ago
|
RDEPEND="${DEPEND}"
|
||
|
|
||
7 years ago
|
S=${WORKDIR}/${MY_P%%-src}
|
||
13 years ago
|
|
||
12 years ago
|
PATCHES=(
|
||
7 years ago
|
"${FILESDIR}"/${PN}-0.3.0-_DEFAULT_SOURCE.patch
|
||
|
"${FILESDIR}"/${P}-more-quotes.patch
|
||
12 years ago
|
)
|
||
|
|
||
13 years ago
|
src_prepare() {
|
||
|
sed -e "/LIBRARY DESTINATION/ s/lib/$(get_libdir)/g" \
|
||
7 years ago
|
-i {obabeliface,libmolsketch/src}/CMakeLists.txt || die #351246
|
||
13 years ago
|
sed -e "s:doc/molsketch:doc/${PF}:g" \
|
||
|
-i molsketch/src/{CMakeLists.txt,mainwindow.cpp} || die
|
||
11 years ago
|
cmake-utils_src_prepare
|
||
13 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
12 years ago
|
local mycmakeargs=(
|
||
10 years ago
|
-DOPENBABEL2_INCLUDE_DIR="${EPREFIX}/usr/include/openbabel-2.0"
|
||
|
-DCMAKE_DISABLE_FIND_PACKAGE_KDE4=ON
|
||
7 years ago
|
-DENABLE_TESTS=$(usex test "ON" "OFF")
|
||
|
-DMSK_INSTALL_PREFIX=/usr
|
||
10 years ago
|
)
|
||
13 years ago
|
cmake-utils_src_configure
|
||
|
}
|
||
7 years ago
|
|
||
|
src_install() {
|
||
|
cmake-utils_src_install
|
||
|
dosym ${PN}-qt5 /usr/bin/${PN}
|
||
|
}
|