+++ /dev/null
- CMakeLists.txt | 12 ++++++------
- libmolsketch/src/stereocenteritem.cpp | 2 +-
- 2 files changed, 7 insertions(+), 7 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index a4b5d29..f472b40 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -12,10 +12,10 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
- # compiler issues are fixed and more warnings are issued. #
- ###########################################################
- if (CMAKE_COMPILER_IS_GNUCXX)
-- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align")
-- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror-implicit-function-declaration -Wchar-subscripts")
-- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security")
-- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute -fno-common")
-+# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align")
-+# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror-implicit-function-declaration -Wchar-subscripts")
-+# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security")
-+# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute -fno-common")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions -fno-check-new -fno-common")
-@@ -32,7 +32,7 @@ set(CPACK_SOURCE_IGNORE_FILES "/build;/.git")
- include(CPack)
-
- # Unit testing, mainly useful for developers and so defaults to off
--option(ENABLE_TESTS "Enable unit testing" ON)
-+option(ENABLE_TESTS "Enable unit testing" OFF)
- if(ENABLE_TESTS)
- set(QT_USE_QTTEST TRUE)
- enable_testing()
-@@ -48,7 +48,7 @@ configure_file("${CMAKE_MODULE_PATH}/cmake_uninstall.cmake.in"
- add_custom_target(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
-
- # Enabling debugging symbols
--set(CMAKE_BUILD_TYPE Debug)
-+# set(CMAKE_BUILD_TYPE Debug)
-
- # Enabling shared libraries
- set(BUILD_SHARED_LIBS OFF)
-diff --git a/libmolsketch/src/stereocenteritem.cpp b/libmolsketch/src/stereocenteritem.cpp
-index 44a8015..20f2a4a 100644
---- a/libmolsketch/src/stereocenteritem.cpp
-+++ b/libmolsketch/src/stereocenteritem.cpp
-@@ -63,7 +63,7 @@ namespace Molsketch {
- graphsym.GetSymmetry(symmetry_classes);
-
- //std::vector<unsigned long> atomIds = FindTetrahedralAtoms(obmol, symmetry_classes);
-- std::vector<OpenBabel::StereogenicUnit> units = FindStereogenicUnits(obmol, symmetry_classes);
-+ OpenBabel::OBStereoUnitSet units = FindStereogenicUnits(obmol, symmetry_classes);
-
- for (unsigned int i = 0; i < units.size(); ++i) {
- if (units.at(i).type == OpenBabel::OBStereo::Tetrahedral) {
--- /dev/null
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 64c18a2..75c2fb7 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -97,7 +97,7 @@ endif(Qt5Core_FOUND AND Qt5Widgets_FOUND AND Qt5Gui_FOUND AND Qt5PrintSupport_FO
+ if(FORCEQt4)
+ add_definitions(-DQTVERSIONSUFFIX="")
+ else(FORCEQt4)
+- add_definitions(-DQTVERSIONSUFFIX="\\\"-qt5\\\"")
++ add_definitions(-DQTVERSIONSUFFIX="-qt5")
+ endif(FORCEQt4)
+
+ ################ Reading version and default paths
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
-inherit cmake-utils multilib
+CMAKE_MAKEFILE_GENERATOR=ninja
-MY_P=${P/m/M}-Source
+inherit cmake-utils multilib qmake-utils
+
+MY_P=${P/m/M}-src
DESCRIPTION="A drawing tool for 2D molecular structures"
HOMEPAGE="http://molsketch.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+SRC_URI="mirror://sourceforge/project/${PN}/Molsketch/Beryllium-7%20${PV}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE=""
+IUSE="test"
DEPEND="
>=sci-chemistry/openbabel-2.2
- dev-qt/qtcore:4
- dev-qt/qtgui:4
- dev-qt/qttest:4
- >=dev-qt/qthelp-4.7.0:4[compat]"
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ "
RDEPEND="${DEPEND}"
-S=${WORKDIR}/${MY_P}
+S=${WORKDIR}/${MY_P%%-src}
PATCHES=(
- "${FILESDIR}"/${P}-openbabel-231.patch
+ "${FILESDIR}"/${PN}-0.3.0-_DEFAULT_SOURCE.patch
+ "${FILESDIR}"/${P}-more-quotes.patch
)
src_prepare() {
sed -e "/LIBRARY DESTINATION/ s/lib/$(get_libdir)/g" \
- -i libmolsketch/src/CMakeLists.txt || die #351246
+ -i {obabeliface,libmolsketch/src}/CMakeLists.txt || die #351246
sed -e "s:doc/molsketch:doc/${PF}:g" \
-i molsketch/src/{CMakeLists.txt,mainwindow.cpp} || die
cmake-utils_src_prepare
local mycmakeargs=(
-DOPENBABEL2_INCLUDE_DIR="${EPREFIX}/usr/include/openbabel-2.0"
-DCMAKE_DISABLE_FIND_PACKAGE_KDE4=ON
+ -DENABLE_TESTS=$(usex test "ON" "OFF")
)
cmake-utils_src_configure
}
+
+src_install() {
+ cmake-utils_src_install
+ dosym ${PN}-qt5 /usr/bin/${PN}
+}