diff options
author | Justin Lecher <jlec@gentoo.org> | 2014-04-24 12:47:29 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2014-04-24 12:47:29 +0000 |
commit | 884ebb5b418a45ee51beac5d0d3edd5d92ddc024 (patch) | |
tree | 9db48352125ccec6b64c3f6273f466a4db2204fd /sci-chemistry/gabedit/gabedit-2.4.8.ebuild | |
parent | media-gfx/shotwell: Version BUmp, #507918 (diff) | |
download | historical-884ebb5b418a45ee51beac5d0d3edd5d92ddc024.tar.gz historical-884ebb5b418a45ee51beac5d0d3edd5d92ddc024.tar.bz2 historical-884ebb5b418a45ee51beac5d0d3edd5d92ddc024.zip |
sci-chemistry/gabedit: Version BUmp, #508388
Package-Manager: portage-2.2.10/cvs/Linux x86_64
Manifest-Sign-Key: 0xB9D4F231BD1558AB!
Diffstat (limited to 'sci-chemistry/gabedit/gabedit-2.4.8.ebuild')
-rw-r--r-- | sci-chemistry/gabedit/gabedit-2.4.8.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/sci-chemistry/gabedit/gabedit-2.4.8.ebuild b/sci-chemistry/gabedit/gabedit-2.4.8.ebuild new file mode 100644 index 000000000000..42936a2eb196 --- /dev/null +++ b/sci-chemistry/gabedit/gabedit-2.4.8.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gabedit/gabedit-2.4.8.ebuild,v 1.1 2014/04/24 12:46:46 jlec Exp $ + +EAPI=5 + +inherit eutils toolchain-funcs versionator + +MY_PN=${PN/g/G} +MY_PV=$(delete_all_version_separators) +MY_P="${MY_PN}Src${MY_PV}" + +DESCRIPTION="GUI for computational chemistry packages" +HOMEPAGE="http://gabedit.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="openmp" + +RDEPEND=" + dev-libs/glib:2 + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:2 + x11-libs/gtkglext + x11-libs/gl2ps + x11-libs/pango + virtual/opengl + virtual/glu" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i "/rmdir tmp/d" "${S}"/Makefile || die + sed \ + -e "/GTK_DISABLE_DEPRECATED/s:define:undef:g" \ + -i "${S}/Config.h" || die + sed -e 's:-g::g' -i Makefile || die + cp "${FILESDIR}"/CONFIG.Gentoo "${S}"/CONFIG + + if use openmp && tc-has-openmp; then + cat <<- EOF >> "${S}/CONFIG" + OMPLIB=-fopenmp + OMPCFLAGS=-DENABLE_OMP -fopenmp + EOF + fi + echo "COMMONCFLAGS = ${CFLAGS} -DENABLE_DEPRECATED \$(OMPCFLAGS) \$(DRAWGEOMGL)" >> CONFIG + + tc-export CC +} + +src_compile() { + emake clean + emake external_gl2ps=1 +} + +src_install() { + local size + dobin ${PN} + dodoc ChangeLog + for size in 16 24 32 48; do + doicon -s ${size} icons/Gabedit${size}.* + done +} |