summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-03-01 01:31:05 +0000
committerMike Frysinger <vapier@gentoo.org>2003-03-01 01:31:05 +0000
commita2ab6464805c25ace88abd4a571470d4408005fe (patch)
treea43bdb1b539ca19672e27094cd28b12e4983fdc1 /app-sci/chemtool
parentmoved to x86 stable (diff)
downloadgentoo-2-a2ab6464805c25ace88abd4a571470d4408005fe.tar.gz
gentoo-2-a2ab6464805c25ace88abd4a571470d4408005fe.tar.bz2
gentoo-2-a2ab6464805c25ace88abd4a571470d4408005fe.zip
touchups
Diffstat (limited to 'app-sci/chemtool')
-rw-r--r--app-sci/chemtool/chemtool-1.5.ebuild59
1 files changed, 17 insertions, 42 deletions
diff --git a/app-sci/chemtool/chemtool-1.5.ebuild b/app-sci/chemtool/chemtool-1.5.ebuild
index 1c6209183059..a1c5c3bed5c9 100644
--- a/app-sci/chemtool/chemtool-1.5.ebuild
+++ b/app-sci/chemtool/chemtool-1.5.ebuild
@@ -1,59 +1,40 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/app-sci/chemtool/chemtool-1.5.ebuild,v 1.3 2003/02/13 09:21:18 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-sci/chemtool/chemtool-1.5.ebuild,v 1.4 2003/03/01 01:27:48 vapier Exp $
-IUSE="gnome kde nls"
+[ -n "`use kde`" ] && inherit kde-functions
+inherit eutils
-DESCRIPTION="Chemtool is a program for drawing organic molecules"
-HOMEPAGE="http://ruby.chemie.uni-freiburg.de/~martin/chemtool"
+DESCRIPTION="program for drawing organic molecules"
+HOMEPAGE="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/"
SRC_URI="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/${P}.tar.gz"
LICENSE="GPL-2"
-
SLOT="0"
-IUSE="gnome kde nls"
KEYWORDS="x86"
+IUSE="gnome kde nls"
DEPEND=">=media-gfx/transfig-3.2.3d
- >=x11-libs/gtk+-1.2.10
- gnome? ( gnome-base/gnome )
- kde? ( kde-base/kde )
- nls? ( sys-devel/gettext )"
-
-S="${WORKDIR}/${P}"
+ >=x11-libs/gtk+-1.2.10
+ gnome? ( gnome-base/gnome )
+ kde? ( kde-base/kde )
+ nls? ( sys-devel/gettext )"
src_unpack() {
unpack ${A}
+ cd ${S}
- echo ">>> Patching configure.in..."
- patch ${S}/configure.in \
- ${FILESDIR}/configure.in-${P}-gentoo.diff \
- &>/dev/null
-
- echo ">>> Patching config.h.in..."
- patch ${S}/config.h.in \
- ${FILESDIR}/config.h.in-${P}-gentoo.diff \
- &>/dev/null
-
- echo ">>> Patching Makefile.in..."
- patch ${S}/Makefile.in \
- ${FILESDIR}/Makefile.in-${P}-gentoo.diff \
- &>/dev/null
-
- echo ">>> Patching src-cht/Makefile.in..."
- patch ${S}/src-cht/Makefile.in \
- ${FILESDIR}/src-cht-Makefile.in-${P}-gentoo.diff \
- &>/dev/null
-
- echo ">>> Running autoconf..."
- cd "${S}" && autoconf
+ epatch ${FILESDIR}/configure.in-${P}-gentoo.diff
+ epatch ${FILESDIR}/config.h.in-${P}-gentoo.diff
+ epatch ${FILESDIR}/Makefile.in-${P}-gentoo.diff
+ epatch ${FILESDIR}/src-cht-Makefile.in-${P}-gentoo.diff
+ autoconf || die
}
src_compile() {
local config_opts
if [ "`use kde`" ]; then
- inherit kde-functions
need-kde 2
config_opts="--with-kdedir=${KDEDIR}" ;
else
@@ -80,19 +61,13 @@ src_compile() {
}
src_install () {
- make \
- prefix=${D}/usr \
- mandir=${D}/usr/share/man \
- infodir=${D}/usr/share/info \
- localedir=${D}/usr/share/locale \
+ einstall \
gnomedir=${D}/usr \
kdedir=${D}/${KDEDIR} \
install \
|| die "make install failed"
- # Install documentation.
dodoc ChangeLog INSTALL README TODO
-
insinto /usr/share/${PN}/examples
doins ${S}/examples/*
}