From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-chemistry/chemtool/Manifest | 8 +++ sci-chemistry/chemtool/chemtool-1.6.13.ebuild | 56 ++++++++++++++++ sci-chemistry/chemtool/chemtool-1.6.14.ebuild | 56 ++++++++++++++++ .../chemtool/files/1.6.13-no-underlinking.patch | 78 ++++++++++++++++++++++ sci-chemistry/chemtool/metadata.xml | 11 +++ 5 files changed, 209 insertions(+) create mode 100644 sci-chemistry/chemtool/Manifest create mode 100644 sci-chemistry/chemtool/chemtool-1.6.13.ebuild create mode 100644 sci-chemistry/chemtool/chemtool-1.6.14.ebuild create mode 100644 sci-chemistry/chemtool/files/1.6.13-no-underlinking.patch create mode 100644 sci-chemistry/chemtool/metadata.xml (limited to 'sci-chemistry/chemtool') diff --git a/sci-chemistry/chemtool/Manifest b/sci-chemistry/chemtool/Manifest new file mode 100644 index 000000000000..0f3eeb0a6283 --- /dev/null +++ b/sci-chemistry/chemtool/Manifest @@ -0,0 +1,8 @@ +AUX 1.6.13-no-underlinking.patch 2251 SHA256 49cd82280ac80e06bb92fd521be85b1b38998e1d1831ed64d2e447315c78141e SHA512 42d623e2875118350a3c4a1979483ccd1de535f8a6ceec7fb9554661a8f91c3403d2cfc207891ac1f71ae7fda4486e48c74bc6621dc76eb2740a7c5f68caaeb9 WHIRLPOOL b36eca2f2232da77d95ba2e1f1edc0389a2591dd6e0fc57ed0d2c1bf5053363fbdea78caaf6bb72d8f3a719bbeeeb7a84e0b25d4b9f3e0c7d59d49e43b864a60 +DIST chemtool-1.6.13.tar.gz 838868 SHA256 31a07683f55305c3e0c4d7af3bc3d1d3a9a2eff4d836455fe1e382962f0aa0c8 SHA512 6c248321f73b6eab4ad21e810639a1f0b14cc30db9c9fdc8fe66ee218bd88ead5e74f1f047f5badcb91b515827c2eddc64b28ead380d9b14ab5b76777e7134dd WHIRLPOOL c7158a75480e9b98eb2ed5c16d73c4d5e5fa05375009ac1778b7e9bf0e9a2ef9092032557d46ea506a6503c0799676998a6fcb80063ed56a7ae8d360c1f273bc +DIST chemtool-1.6.14.tar.gz 817735 SHA256 86161a0461386b334a5ffb17cdf094a491941884678272f45749813514ddafcb SHA512 066c83c61aced3134b081767e788143a047889a2fee4b6535c2b0a3166bccc73d75981e1cf35b7bcaa5b8fe2e0227b28693b659decd82f7783cb4082ac6ed2bd WHIRLPOOL 41a2bd4662c06307a94281e6a54d4e129b407bc597c7d08c8a9f976332cb727f3e195d1d85429716ac22a34ea1dae03b724167bbb5444c03dcb24131cc20ae1d +EBUILD chemtool-1.6.13.ebuild 1169 SHA256 052457b1f6c2aff5366cc9c6d2c0cc4d79b5b3b2397e70d85794c8efd1dd1d30 SHA512 d3135ea531d93cf3e0465e3350e78da8cd9e4acda8517bbd29fb1547fd4f8dce3b7acbde0c6b9cd535c74834129a53e79dd72a3ee39d40348f9bbb7bd07eaf71 WHIRLPOOL 421d68155ea1a366bcfc86321f0ef80ff09d7282c99e0362138698318c9391dba5e5ae1028995f05e6aa401c17d06661648df46076bc7bd97d0706f28e0982fb +EBUILD chemtool-1.6.14.ebuild 1172 SHA256 1f977fb3725f46898bcf335076b80ba02bdcf04c9378d1ecb8556f8ea08c060a SHA512 25684162b9f93c42ce81b69f22f71d112acc5d65fef1e26bbf6c980887c852e0130d0c9fb0babc360c1c5e3b41391cf4473cce0dba0d88400e99a6fe87114b72 WHIRLPOOL 312666c2212c4d9a1b11f5aeb73e42150ba00051666630294b0225ebb7a2633f61944d314a23e5485082058ca3598228a009415b2e8a2682e6c6621bd333987e +MISC ChangeLog 2530 SHA256 213257d2b418500f28768251ffb200004ad0be8cdc211cc96e82f0b52f4d9544 SHA512 bda3b88e7d7c2f7f8ff54f55b303ab14e7e256cedae38a76f681e6e190949f670b76c3038aba8b0aae2e3ef79066e86dbe87936f0b4e6568161443d142c0fdee WHIRLPOOL ef4ba177acdb4846c9de46bd2844be3af08b0a0088a805ad1efd1a6a4fe089a85380a7324f38c279ad23b547cc2d23fcf46618ea7e4b69725b8da2a0e6d263f7 +MISC ChangeLog-2015 7979 SHA256 925546a14e6e180c8eb7bb27300d223427d52878adcaa5f4e61cc178674eedcb SHA512 ba9387f37bcfa8ae63c05500bee400386d407549101ae28bf64737ded4d3aeea939a12c6034a06e70e31e0578d5cedbdc083967810e9b9917541d3fa2f577cb3 WHIRLPOOL 68e6ed950a1b819f7f1f145d80a42797295f459445040d8624228503444618bcb0edf79ed88ea5400567fd283573e0091f9595366cfaf41fca179c4fb53f44b4 +MISC metadata.xml 335 SHA256 110bd3d7bb6168051ad520d63f01b4ff89fb71dc63b8f49d1ba20fc318624743 SHA512 b02a3fd1101bd4ffb01ffd327b307f802fdb126492eea9dd98b86a87a367e669ba5ed4d94d5fecc4528c94abfd90d41e6215c91a34a64b95d0a2e7c2060a76b7 WHIRLPOOL 95d320faffd72369c8669bcf9ea6fb2d2191661914f1d947d62d000a32e93178636e06837f5661fa1c25b3ed56c2d07a12b6581e9084a695c34070c84e23f828 diff --git a/sci-chemistry/chemtool/chemtool-1.6.13.ebuild b/sci-chemistry/chemtool/chemtool-1.6.13.ebuild new file mode 100644 index 000000000000..8eb6ec996db2 --- /dev/null +++ b/sci-chemistry/chemtool/chemtool-1.6.13.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils eutils + +DESCRIPTION="A GTK 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" +KEYWORDS="amd64 ppc x86" +IUSE="emf gnome nls" + +RDEPEND=" + dev-libs/glib:2 + media-gfx/transfig + x11-libs/gtk+:2 + x11-libs/libX11 + x11-libs/pango + emf? ( media-libs/libemf )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +AUTOTOOLS_IN_SOURCE_BUILD=1 + +PATCHES=( + "${FILESDIR}"/${PV}-no-underlinking.patch + ) + +src_configure() { + local myeconfargs=( + --without-kdedir + $(use_with gnome gnomedir /usr) + $(use_enable emf) + --enable-undo + --enable-menu + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + insinto /usr/share/${PN}/examples + doins "${S}"/examples/* + if ! use nls; then rm -rf "${ED}"/usr/share/locale || die; fi + + insinto /usr/share/pixmaps + doins chemtool.xpm + make_desktop_entry ${PN} Chemtool ${PN} "Education;Science;Chemistry" +} diff --git a/sci-chemistry/chemtool/chemtool-1.6.14.ebuild b/sci-chemistry/chemtool/chemtool-1.6.14.ebuild new file mode 100644 index 000000000000..58a5d56b105e --- /dev/null +++ b/sci-chemistry/chemtool/chemtool-1.6.14.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils eutils + +DESCRIPTION="A GTK 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" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="emf gnome nls" + +RDEPEND=" + dev-libs/glib:2 + media-gfx/transfig + x11-libs/gtk+:2 + x11-libs/libX11 + x11-libs/pango + emf? ( media-libs/libemf )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +AUTOTOOLS_IN_SOURCE_BUILD=1 + +PATCHES=( + "${FILESDIR}"/1.6.13-no-underlinking.patch +) + +src_configure() { + local myeconfargs=( + --without-kdedir + $(use_with gnome gnomedir /usr) + $(use_enable emf) + --enable-undo + --enable-menu + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + insinto /usr/share/${PN}/examples + doins "${S}"/examples/* + if ! use nls; then rm -rf "${ED}"/usr/share/locale || die; fi + + insinto /usr/share/pixmaps + doins chemtool.xpm + make_desktop_entry ${PN} Chemtool ${PN} "Education;Science;Chemistry" +} diff --git a/sci-chemistry/chemtool/files/1.6.13-no-underlinking.patch b/sci-chemistry/chemtool/files/1.6.13-no-underlinking.patch new file mode 100644 index 000000000000..5d2fe36d6bf1 --- /dev/null +++ b/sci-chemistry/chemtool/files/1.6.13-no-underlinking.patch @@ -0,0 +1,78 @@ + Makefile.am | 6 ++++-- + configure.ac | 24 ++++-------------------- + 2 files changed, 8 insertions(+), 22 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 99dbf8c..931ba16 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -22,10 +22,12 @@ localedir = $(datadir)/locale + DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ + + # Make sure the gettext.h include file is found. +-AM_CPPFLAGS = -I. -I$(srcdir) @GTK_CFLAGS@ ++AM_CPPFLAGS = -I. -I$(srcdir) @GTK_CFLAGS@ @EMFINCL@ + + # Link time dependencies. +-LDADD = @LIBINTL@ @GTK_LIBS@ @EMFLIBS@ ++LDADD = @LIBINTL@ @GTK_LIBS@ @EMFLIBS@ -lX11 ++ ++AM_CFLAGS = -DGTK2 + + # Additional files to be distributed. + EXTRA_DIST = autogen.sh autoclean.sh +diff --git a/configure.ac b/configure.ac +index 6d8c45a..c5fab42 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -32,32 +32,14 @@ AC_PATH_PROG(PKG_CONFIG, pkg-config, no) + + AC_MSG_CHECKING([for GTK version and compile options ]) + +-if test x$PKG_CONFIG = xno -o x$enable_gtk1 = xyes ; then +-AM_PATH_GTK(1.0.2, , exit 1) +-else +-if $PKG_CONFIG gtk+-2.0 --cflags ; then +- GTK_CFLAGS="-DGTK2 `$PKG_CONFIG gtk+-2.0 --cflags` " +- GTK_LIBS=`$PKG_CONFIG gtk+-2.0 --libs` +-dnl use_gtk2=yes +- AC_DEFINE([GTK2], [1], [the GTK2 library]) +- enable_stockgtk=yes +-else +-if $PKG_CONFIG --cflags gtk+ ; then +- GTK_CFLAGS=`$PKG_CONFIG gtk+ --cflags` +- GTK_LIBS=`$PKG_CONFIG gtk+ --libs` +-dnl use_gtk2=no +-fi +-fi +-fi +- +-dnl AC_MSG_RESULT using GTK2 : $use_gtk2 ++PKG_CHECK_MODULES([GTK],[gtk+-2.0]) + + dnl Checks for header files. + AC_PATH_XTRA + AC_HEADER_DIRENT + AC_HEADER_STDC + +-LDFLAGS="$X_LIBS" ++LDFLAGS+="$X_LIBS" + AC_CHECK_LIB([X11],[XOpenDisplay]) + dnl just an ugly hack to work around the more aggressive header checks + dnl in recent autoconf. Not sure if we should really rely on include +@@ -184,6 +166,7 @@ if test x$enable_emf = xyes; then + AC_MSG_RESULT(yes) + AC_DEFINE([EMF], [1], [use optional libEMF instead of fig2dev for EMF output]) + EMFLIBS="-lEMF -lstdc++" ++ EMFINCL="-I${includedir}libEMF" + else + AC_MSG_RESULT(no) + EMFLIBS="" +@@ -221,6 +204,7 @@ AC_SUBST(localedir) + AC_SUBST(kdemimedir) + AC_SUBST(gnomemimedir) + AC_SUBST(EMFLIBS) ++AC_SUBST(EMFINCL) + AC_SUBST(MYGTKSRCS) + AC_SUBST(MYGTKOBJS) + AC_SUBST(GTK_CFLAGS) diff --git a/sci-chemistry/chemtool/metadata.xml b/sci-chemistry/chemtool/metadata.xml new file mode 100644 index 000000000000..8b1591478bcf --- /dev/null +++ b/sci-chemistry/chemtool/metadata.xml @@ -0,0 +1,11 @@ + + + + + sci-chemistry@gentoo.org + Gentoo Chemistry Project + + + EMF export support + + -- cgit v1.2.3