summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2002-11-28 06:09:24 +0000
committerGeorge Shapovalov <george@gentoo.org>2002-11-28 06:09:24 +0000
commitab6915825a233be1325d6c5ebc43da34e2fad8e7 (patch)
tree328fa3a60519f582e6dd035fb987d9ac9b0c35b9 /app-sci/chemtool
parentnew package: logging library for c++ (diff)
downloadgentoo-2-ab6915825a233be1325d6c5ebc43da34e2fad8e7.tar.gz
gentoo-2-ab6915825a233be1325d6c5ebc43da34e2fad8e7.tar.bz2
gentoo-2-ab6915825a233be1325d6c5ebc43da34e2fad8e7.zip
new package
Diffstat (limited to 'app-sci/chemtool')
-rw-r--r--app-sci/chemtool/ChangeLog12
-rw-r--r--app-sci/chemtool/chemtool-1.5.ebuild98
-rw-r--r--app-sci/chemtool/files/Makefile.in-chemtool-1.5-gentoo.diff75
-rw-r--r--app-sci/chemtool/files/config.h.in-chemtool-1.5-gentoo.diff12
-rw-r--r--app-sci/chemtool/files/configure.in-chemtool-1.5-gentoo.diff79
-rw-r--r--app-sci/chemtool/files/digest-chemtool-1.51
-rw-r--r--app-sci/chemtool/files/src-cht-Makefile.in-chemtool-1.5-gentoo.diff11
7 files changed, 288 insertions, 0 deletions
diff --git a/app-sci/chemtool/ChangeLog b/app-sci/chemtool/ChangeLog
new file mode 100644
index 000000000000..c600e7ba3bb2
--- /dev/null
+++ b/app-sci/chemtool/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for app-sci/chemtool
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
+# $Header: /var/cvsroot/gentoo-x86/app-sci/chemtool/ChangeLog,v 1.1 2002/11/28 06:09:24 george Exp $
+
+*chemtool-1.5 (27 Nov 2002)
+
+ 27 Nov 2002; George Shapovalov <george@gentoo.org> chemtool-1.5.ebuild, files/{Makefile.in-chemtool-1.5-gentoo.diff,digest-chemtool-1.5,config.h.in-chemtool-1.5-gentoo.diff,src-cht-Makefile.in-chemtool-1.5-gentoo.diff,configure.in-chemtool-1.5-gentoo.diff} :
+
+ initial release.
+
+ Chemtool is a program for drawing organic molecules
+ ebuild submitted by
diff --git a/app-sci/chemtool/chemtool-1.5.ebuild b/app-sci/chemtool/chemtool-1.5.ebuild
new file mode 100644
index 000000000000..1b46e0be87e3
--- /dev/null
+++ b/app-sci/chemtool/chemtool-1.5.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2002 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.1 2002/11/28 06:09:24 george Exp $
+
+IUSE="gnome kde nls"
+
+DESCRIPTION="Chemtool is a 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"
+
+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}"
+
+src_unpack() {
+ unpack ${A}
+
+ 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
+}
+
+src_compile() {
+ local config_opts
+
+ if [ "`use kde`" ]; then
+ inherit kde-functions
+ need-kde 2
+ config_opts="--with-kdedir=${KDEDIR}" ;
+ else
+ config_opts="--without-kdedir"
+ fi
+
+ if [ "`use gnome`" ] ; then
+ config_opts="${config_opts} --with-gnomedir=/usr" ;
+ else
+ config_opts="${config_opts} --without-gnomedir" ;
+ fi
+
+ if [ "`use nls`" ] ; then
+ config_opts="${config_opts} --enable-locales \
+ --with-localdir=/usr/share/locale"
+ else
+ config_opts="${config_opts} --disable-locales" ;
+ fi
+
+ econf ${config_opts} \
+ || die "./configure failed"
+
+ emake || die "make failed"
+}
+
+src_install () {
+ make \
+ prefix=${D}/usr \
+ mandir=${D}/usr/share/man \
+ infodir=${D}/usr/share/info \
+ localedir=${D}/usr/share/locale \
+ 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/*
+}
diff --git a/app-sci/chemtool/files/Makefile.in-chemtool-1.5-gentoo.diff b/app-sci/chemtool/files/Makefile.in-chemtool-1.5-gentoo.diff
new file mode 100644
index 000000000000..9e3197a610a5
--- /dev/null
+++ b/app-sci/chemtool/files/Makefile.in-chemtool-1.5-gentoo.diff
@@ -0,0 +1,75 @@
+--- chemtool-1.5/Makefile.in 2002-04-11 14:41:37.000000000 -0500
++++ chemtool-1.5-gentoo/Makefile.in 2002-11-13 01:35:30.000000000 -0500
+@@ -2,10 +2,13 @@
+ exec_prefix=@exec_prefix@
+ datadir=@datadir@
+ localedir=@localedir@
++uselocales=@uselocales@
+ mandir=@mandir@
+ kdedir=@kdemimedir@
++usekde=@usekde@
+ gnomedir=@gnomemimedir@
+-CFLAGS=-O2 -Wall -Wunused -Wuninitialized -I. `gtk-config --cflags` @DEFS@ -DLOCALEDIR=\"${localedir}\"
++usegnome=@usegnome@
++CFLAGS=@CFLAGS@ -I. `gtk-config --cflags` @DEFS@
+
+ CC=@CC@
+ CP=/bin/cp
+@@ -26,7 +29,7 @@
+ ${CC} ${OBJS} ${SYS_LIBRARIES} -o chemtool
+
+ cht: src-cht/cht-2.1.c
+- cd src-cht;${MAKE}
++ cd src-cht && ${MAKE}
+
+
+ install: chemtool src-cht/cht
+@@ -34,21 +37,37 @@
+ ${INSTALL} chemtool src-cht/cht ${prefix}/bin
+ $(INSTALL) chemtool.1 ${mandir}/man1
+ $(INSTALL) cht.1 ${mandir}/man1
+-ifdef localedir
+- for L in `ls locales`; do ${INSTALL} -d ${localedir}/$$L/LC_MESSAGES; ${INSTALL} -m664 locales/$$L/chemtool.mo ${localedir}/$$L/LC_MESSAGES;done
++ifdef uselocales
++ for L in `ls locales` ; do \
++ ${INSTALL} -d ${localedir}/$$L/LC_MESSAGES ; \
++ ${INSTALL} -m664 locales/$$L/chemtool.mo \
++ ${localedir}/$$L/LC_MESSAGES ; \
++ done
+ endif
+-ifdef kdedir
+- ${INSTALL} kde/applnk/Graphics/chemtool.desktop ${kdedir}/share/applnk/Graphics
+- ${INSTALL} kde/mimelnk/application/x-chemtool.desktop ${kdedir}/share/mimelnk/application
+- ${INSTALL} kde/icons/hicolor/32x32/mimetypes/chemtool.png ${kdedir}/share/icons/hicolor/32x32/mimetypes
++ifdef usekde
++ ${INSTALL} -d ${kdedir}/share/applnk/Graphics \
++ ${kdedir}/share/mimelnk/application \
++ ${kdedir}/share/icons/hicolor/32x32/mimetypes
++ ${INSTALL} kde/applnk/Graphics/chemtool.desktop \
++ ${kdedir}/share/applnk/Graphics
++ ${INSTALL} kde/mimelnk/application/x-chemtool.desktop \
++ ${kdedir}/share/mimelnk/application
++ ${INSTALL} kde/icons/hicolor/32x32/mimetypes/chemtool.png \
++ ${kdedir}/share/icons/hicolor/32x32/mimetypes
++endif
++ifdef usegnome
++ ${INSTALL} -d ${gnomedir}/share/mime-types \
++ ${gnomedir}/share/pixmaps/mc
++ ${INSTALL} gnome/mime-types/chemtool.keys \
++ gnome/mime-types/chemtool.mime \
++ ${gnomedir}/share/mime-types
++ ${INSTALL} gnome/gnome-application-chemtool.png \
++ ${gnomedir}/share/pixmaps/mc
+ endif
+
+-ifdef gnomedir
+- ${INSTALL} gnome/mime-types/chemtool.keys gnome/mime-types/chemtool.mime ${gnomedir}/share/mime-types
+- ${INSTALL} gnome/gnome-application-chemtool.png ${gnomedir}/share/pixmaps/mc
+-endif
+ clean:
+ -${RM} *.o *~ src-cht/*.o src-cht/*~ chemtool src-cht/cht
+
+ distclean: clean
+- -${RM} Makefile src-cht/Makefile config.log config.cache config.status config.h
++ -${RM} Makefile src-cht/Makefile config.log config.cache \
++ config.status config.h
diff --git a/app-sci/chemtool/files/config.h.in-chemtool-1.5-gentoo.diff b/app-sci/chemtool/files/config.h.in-chemtool-1.5-gentoo.diff
new file mode 100644
index 000000000000..b56681f37984
--- /dev/null
+++ b/app-sci/chemtool/files/config.h.in-chemtool-1.5-gentoo.diff
@@ -0,0 +1,12 @@
+--- chemtool-1.5/config.h.in 2002-03-09 11:27:32.000000000 -0500
++++ chemtool-1.5-gentoo/config.h.in 2002-11-12 18:21:10.000000000 -0500
+@@ -18,6 +18,9 @@
+ /* Define if your <sys/time.h> declares struct tm. */
+ #undef TM_IN_SYS_TIME
+
++/* Define to the localisation path */
++#undef LOCALEDIR
++
+ /* Define if you want to disable localisation */
+ #undef DISABLE_NLS
+
diff --git a/app-sci/chemtool/files/configure.in-chemtool-1.5-gentoo.diff b/app-sci/chemtool/files/configure.in-chemtool-1.5-gentoo.diff
new file mode 100644
index 000000000000..4f582d4ace47
--- /dev/null
+++ b/app-sci/chemtool/files/configure.in-chemtool-1.5-gentoo.diff
@@ -0,0 +1,79 @@
+--- chemtool-1.5/configure.in 2002-04-11 14:40:46.000000000 -0500
++++ chemtool-1.5-gentoo/configure.in 2002-11-12 18:39:20.000000000 -0500
+@@ -47,6 +47,7 @@
+ kdedir=$withval,
+ [kdedir=/opt/kde])
+ AC_MSG_CHECKING([for KDE ])
++if test "x$kdedir" != "xno" ; then
+ if test -d $kdedir/share/mimelnk ; then
+ kdemimedir=$kdedir
+ AC_MSG_RESULT([apparently in $kdemimedir])
+@@ -57,8 +58,11 @@
+ kdemimedir=$KDEMIMEDIR
+ fi
+ fi
++fi
+ if test "x$kdemimedir" = "x" ; then
+ AC_MSG_RESULT([no])
++else
++ usekde="yes"
+ fi
+ dnl AC_DEFINE_UNQUOTED(KDEDIR=$withval),
+ dnl [AC_DEFINE_UNQUOTED(KDEDIR="\"\/opt/kde"\")])
+@@ -70,6 +74,7 @@
+ gnomedir=$withval,
+ [gnomedir=/usr])
+ AC_MSG_CHECKING([for GNOME ])
++if test "x$gnomedir" != "xno" ; then
+ if test -d $gnomedir/share/mime-info ; then
+ gnomemimedir=$gnomedir
+ AC_MSG_RESULT([apparently in $gnomemimedir])
+@@ -80,24 +85,28 @@
+ gnomemimedir=$GNOMEMIMEDIR
+ fi
+ fi
+-if test "x$GNOMEMIMEDIR" = "x" ; then
++fi
++if test "x$gnomemimedir" = "x" ; then
+ AC_MSG_RESULT([no])
++else
++ usegnome="yes"
+ fi
+ dnl AC_DEFINE_UNQUOTED(GNOMEMIMEDIR=$withval),
+ dnl [AC_DEFINE_UNQUOTED(GNOMEMIMEDIR="\"\/usr"\")])
+ dnl "
+
+ AC_MSG_CHECKING(whether to enable locales)
+-dnl AC_ARG_ENABLE(locales,
+-dnl [ --enable-locales Use locales [no]],,enable_locales=no)
+-dnl if test x$enable_locales = xyes; then
+-if test "$ac_cv_header_libintl_h" = "yes"
++AC_ARG_ENABLE(locales,
++[ --enable-locales Use locales [no]],,enable_locales=no)
++if test x$enable_locales = "xyes" ;
++dnl if test "$ac_cv_header_libintl_h" = "yes"
+ then
+- AC_MSG_RESULT(yes)
+- AC_DEFINE_UNQUOTED(LOCALEDIR="\"\$datadir/locale"\")
+-else
++ AC_MSG_RESULT(yes)
++ AC_DEFINE_UNQUOTED(LOCALEDIR, "$datadir/locale")
++ uselocales="yes"
++else
+ AC_MSG_RESULT(no)
+- AC_DEFINE(DISABLE_NLS)
++ AC_DEFINE(DISABLE_NLS)
+ fi
+
+ AC_MSG_CHECKING(whether to enable libundo)
+@@ -121,7 +130,10 @@
+ fi
+
+ AC_SUBST(localedir)
++AC_SUBST(uselocales)
+ AC_SUBST(kdemimedir)
++AC_SUBST(usekde)
+ AC_SUBST(gnomemimedir)
++AC_SUBST(usegnome)
+
+ AC_OUTPUT(Makefile src-cht/Makefile)
diff --git a/app-sci/chemtool/files/digest-chemtool-1.5 b/app-sci/chemtool/files/digest-chemtool-1.5
new file mode 100644
index 000000000000..9d1c4afb2aa9
--- /dev/null
+++ b/app-sci/chemtool/files/digest-chemtool-1.5
@@ -0,0 +1 @@
+MD5 093b68e032b2c5611c2f83315764bd40 chemtool-1.5.tar.gz 338467
diff --git a/app-sci/chemtool/files/src-cht-Makefile.in-chemtool-1.5-gentoo.diff b/app-sci/chemtool/files/src-cht-Makefile.in-chemtool-1.5-gentoo.diff
new file mode 100644
index 000000000000..88db3d914e67
--- /dev/null
+++ b/app-sci/chemtool/files/src-cht-Makefile.in-chemtool-1.5-gentoo.diff
@@ -0,0 +1,11 @@
+--- chemtool-1.5/src-cht/Makefile.in 2002-03-09 11:27:32.000000000 -0500
++++ chemtool-1.5-gentoo/src-cht/Makefile.in 2002-11-12 17:07:07.000000000 -0500
+@@ -1,4 +1,7 @@
++CC = @CC@
++CFLAGS = @CFLAGS@
++
+ default: cht
+
+ cht: cht-2.1.c
+- gcc -O cht-2.1.c -o cht
++ $(CC) $(CFLAGS) -o cht cht-2.1.c