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.
gentoo-overlay/sci-chemistry/ghemical/ghemical-3.0.0.ebuild

57 lines
1.3 KiB

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools desktop
DESCRIPTION="Chemical quantum mechanics and molecular mechanics"
HOMEPAGE="http://bioinformatics.org/ghemical/"
SRC_URI="http://bioinformatics.org/ghemical/download/current/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="openbabel seamonkey threads"
RDEPEND="
dev-libs/glib:2
gnome-base/libglade:2.0
sci-chemistry/mpqc
>=sci-libs/libghemical-3.0.0:=
>=x11-libs/liboglappth-1.0.0:=
virtual/opengl
x11-libs/pango:0=
x11-libs/gtk+:2
x11-libs/gtkglext:0=
openbabel? ( sci-chemistry/openbabel )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/2.99.2-docs.patch
"${FILESDIR}"/3.0.0-fix-gcc9.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
# With amd64, if you want gamess I recommend adding gamess and gtk-gamess to package.provided for now.
# Change the built-in help browser.
sed -e "s|mozilla|$(usex seamonkey seamonkey firefox)|g" \
-i src/gtk_app.cpp || die "sed failed for $(usex seamonkey seamonkey firefox)!"
econf \
$(use_enable openbabel) \
$(use_enable threads)
}
src_install() {
default
make_desktop_entry ghemical Ghemical /usr/share/ghemical/${PV}/pixmaps/ghemical.png
}