summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-11-11 11:38:02 +0000
committerJustin Lecher <jlec@gentoo.org>2010-11-11 11:38:02 +0000
commit4a00b90f5ffbba9ff0560925e0beb2d59f95704d (patch)
tree8a2adbce50b7270b66ffdf3f763563d30d0b8768 /sci-chemistry/gabedit
parentDrop old version. (diff)
downloadgentoo-2-4a00b90f5ffbba9ff0560925e0beb2d59f95704d.tar.gz
gentoo-2-4a00b90f5ffbba9ff0560925e0beb2d59f95704d.tar.bz2
gentoo-2-4a00b90f5ffbba9ff0560925e0beb2d59f95704d.zip
Initial addition
(Portage version: 2.1.9.24/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry/gabedit')
-rw-r--r--sci-chemistry/gabedit/ChangeLog10
-rw-r--r--sci-chemistry/gabedit/files/CONFIG.Gentoo13
-rw-r--r--sci-chemistry/gabedit/gabedit-2.3.2.ebuild57
-rw-r--r--sci-chemistry/gabedit/metadata.xml13
4 files changed, 93 insertions, 0 deletions
diff --git a/sci-chemistry/gabedit/ChangeLog b/sci-chemistry/gabedit/ChangeLog
new file mode 100644
index 000000000000..c9c9552f641d
--- /dev/null
+++ b/sci-chemistry/gabedit/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-chemistry/gabedit
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gabedit/ChangeLog,v 1.1 2010/11/11 11:38:02 jlec Exp $
+
+*gabedit-2.3.2 (11 Nov 2010)
+
+ 11 Nov 2010; Justin Lecher <jlec@gentoo.org> +gabedit-2.3.2.ebuild,
+ +files/CONFIG.Gentoo, +metadata.xml:
+ Initial addition
+
diff --git a/sci-chemistry/gabedit/files/CONFIG.Gentoo b/sci-chemistry/gabedit/files/CONFIG.Gentoo
new file mode 100644
index 000000000000..243a51551c32
--- /dev/null
+++ b/sci-chemistry/gabedit/files/CONFIG.Gentoo
@@ -0,0 +1,13 @@
+GTKLIB = `pkg-config --libs gtk+-2.0 pangox gtkglext-1.0`
+GTKCFLAGS = `pkg-config --cflags gtk+-2.0 pangox gtkglext-1.0`
+OGLLIB = `pkg-config --libs glu`
+OGLCFLAGS = `pkg-config --cflags glu`
+X11LIB = `pkg-config --libs x11`
+LIBPTHREAD = -lpthread
+RM = rm -f
+MAKE = make
+WIN32LIB =
+
+#DRAWGEOMGL=
+DRAWGEOMGL=-DDRAWGEOMGL
+
diff --git a/sci-chemistry/gabedit/gabedit-2.3.2.ebuild b/sci-chemistry/gabedit/gabedit-2.3.2.ebuild
new file mode 100644
index 000000000000..364f5e296c02
--- /dev/null
+++ b/sci-chemistry/gabedit/gabedit-2.3.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gabedit/gabedit-2.3.2.ebuild,v 1.1 2010/11/11 11:38:02 jlec Exp $
+
+EAPI=2
+
+inherit 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}/GabeditDevloppment/${MY_PN}${MY_PV}/${MY_P}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="openmp"
+
+RDEPEND=">=x11-libs/gtk+-2.4
+ x11-libs/gtkglext
+ x11-libs/gl2ps
+ virtual/opengl
+ virtual/glu"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ tc-export CC
+}
+
+src_prepare() {
+ sed -e "/GTK_DISABLE_DEPRECATED/s:define:undef:g" \
+ -i "${S}/Config.h" || die
+ cp "${FILESDIR}"/CONFIG.Gentoo "${S}"/CONFIG
+
+ if use openmp && tc-has-openmp; then
+ cat <<- EOF >> "${S}/CONFIG"
+ OMPLIB=-L/usr/$(get_libdir) -lgomp
+ OMPCFLAGS=-DENABLE_OMP -fopenmp
+ EOF
+ fi
+ echo "COMMONCFLAGS = ${CFLAGS} -DENABLE_DEPRECATED \$(OMPCFLAGS) \$(DRAWGEOMGL)" >> CONFIG
+}
+
+src_compile() {
+ emake external_gl2ps=1 || die
+}
+
+src_install() {
+ dobin ${PN} || die
+ dodoc ChangeLog || die
+}
diff --git a/sci-chemistry/gabedit/metadata.xml b/sci-chemistry/gabedit/metadata.xml
new file mode 100644
index 000000000000..952fac4b27f6
--- /dev/null
+++ b/sci-chemistry/gabedit/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci-chemistry</herd>
+<maintainer>
+ <email>jlec@gentoo.org</email>
+ <description>Tree Proxy for Max</description>
+</maintainer>
+<maintainer>
+ <email>max-braeu@gmx.de</email>
+ <description>Maintainer, please CC to bugs</description>
+</maintainer>
+</pkgmetadata>