molsketch-0.2.0-r1.ebuild 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit cmake-utils multilib
  5. MY_P=${P/m/M}-Source
  6. DESCRIPTION="A drawing tool for 2D molecular structures"
  7. HOMEPAGE="http://molsketch.sourceforge.net/"
  8. SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
  12. IUSE=""
  13. DEPEND="
  14. >=sci-chemistry/openbabel-2.2
  15. dev-qt/qtcore:4
  16. dev-qt/qtgui:4
  17. dev-qt/qttest:4
  18. >=dev-qt/qthelp-4.7.0:4[compat]"
  19. RDEPEND="${DEPEND}"
  20. S=${WORKDIR}/${MY_P}
  21. PATCHES=(
  22. "${FILESDIR}"/${P}-openbabel-231.patch
  23. )
  24. src_prepare() {
  25. sed -e "/LIBRARY DESTINATION/ s/lib/$(get_libdir)/g" \
  26. -i libmolsketch/src/CMakeLists.txt || die #351246
  27. sed -e "s:doc/molsketch:doc/${PF}:g" \
  28. -i molsketch/src/{CMakeLists.txt,mainwindow.cpp} || die
  29. cmake-utils_src_prepare
  30. }
  31. src_configure() {
  32. local mycmakeargs=(
  33. -DOPENBABEL2_INCLUDE_DIR="${EPREFIX}/usr/include/openbabel-2.0"
  34. -DCMAKE_DISABLE_FIND_PACKAGE_KDE4=ON
  35. )
  36. cmake-utils_src_configure
  37. }