1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 AUTOTOOLS_AUTORECONF=true
8 inherit autotools-utils eutils
10 DESCRIPTION="A GTK program for drawing organic molecules"
11 HOMEPAGE="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/"
12 SRC_URI="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/${P}.tar.gz"
16 KEYWORDS="amd64 ppc x86"
25 emf? ( media-libs/libemf )"
29 AUTOTOOLS_IN_SOURCE_BUILD=1
32 "${FILESDIR}"/${PV}-no-underlinking.patch
38 $(use_with gnome gnomedir /usr)
43 autotools-utils_src_configure
47 autotools-utils_src_install
49 insinto /usr/share/${PN}/examples
50 doins "${S}"/examples/*
51 if ! use nls; then rm -rf "${ED}"/usr/share/locale || die; fi
53 insinto /usr/share/pixmaps
55 make_desktop_entry ${PN} Chemtool ${PN} "Education;Science;Chemistry"