aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-chemistry/bist/ChangeLog30
-rw-r--r--sci-chemistry/bist/Manifest26
-rw-r--r--sci-chemistry/bist/bist-0.5.1-r1.ebuild30
-rw-r--r--sci-chemistry/bist/files/bist-0.5.1-bracket.patch11
-rw-r--r--sci-chemistry/bist/files/bist-0.5.1-install.patch80
-rw-r--r--sci-chemistry/bist/metadata.xml13
6 files changed, 190 insertions, 0 deletions
diff --git a/sci-chemistry/bist/ChangeLog b/sci-chemistry/bist/ChangeLog
new file mode 100644
index 000000000..543e6afd1
--- /dev/null
+++ b/sci-chemistry/bist/ChangeLog
@@ -0,0 +1,30 @@
+# ChangeLog for sci-chemistry/bist
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 22 Aug 2010; Andreas K. Huettel (dilfridge) <mail@akhuettel.de>
+ Moved from sunrise to sci overlay.
+
+ 25 Sep 2009; Andreas K. Huettel (dilfridge) <mail@akhuettel.de>
+ +bist-0.5.1-r1.ebuild, +files/bist-0.5.1-bracket.patch,
+ -files/wrap_bracket_dialog-amd64.patch, -bist-0.5.1.ebuild,
+ +files/bist-0.5.1-install.patch:
+ Fixed installation of plugins, help files, molecule library,
+ internationalization, man page, desktop file, and icon.
+
+ 21 Sep 2009; Andreas K. Huettel (dilfridge) <mail@akhuettel.de>
+ -bist-0.4.7.ebuild, +bist-0.5.1.ebuild:
+ Version bump and upgrade of the ebuild to EAPI=2
+
+ 20 Sep 2009; Thomas Sachau (Tommy[D]) <tommy@gentoo.org>
+ bist-0.4.7.ebuild:
+ Drop dependency on gcc
+
+ 06 Oct 2008; Tomáš Chvátal <tomas.chvatal@gmail.com> bist-0.4.7.ebuild:
+ Fix Depend/Rdepend issue about gcc
+
+ 30 Sep 2008; Giuseppe Marco Randazzo <gmrandazzo@gmail.com>
+ +files/wrap_bracket_dialog-amd64.patch, +bist-0.4.7.ebuild, +metadata.xml:
+ New Ebuild sci-chemistry/bist for bug 239172 thanks to Giuseppe Marco
+ Randazzo aka zeld
+
diff --git a/sci-chemistry/bist/Manifest b/sci-chemistry/bist/Manifest
new file mode 100644
index 000000000..a5ff6b6ec
--- /dev/null
+++ b/sci-chemistry/bist/Manifest
@@ -0,0 +1,26 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX bist-0.5.1-bracket.patch 379 RMD160 4d9d835a8c189862ec53f069862069a005b4c4ff SHA1 7c6ec5afb2bf2f1d6bc4ed931c5dbf03fe2abb98 SHA256 3fd94f204a237d3b00c2fd86b45259f65ac31606ebfe7ab076c3e24f8f855671
+AUX bist-0.5.1-install.patch 4074 RMD160 35136ca7aa40e34c543efae3def45ced6d9d2886 SHA1 fc69c1a111ca724409674a35b40d7bc342b99388 SHA256 b94add3bed813222d29f4156668668c3296f6d817eb8f097709fcabd37d5ae67
+DIST bist-0.5.1.tar.gz 766731 RMD160 a848cf778c9096239ca964dce352eeeab1ee4dc2 SHA1 22fd8186ef3a4fcc2776a3cf5b57ca78bfb4ab69 SHA256 78809230e2bcfffefaf8f95d85740d94cf2d10b4dd0d746f28cf1e82e4fc6cd5
+EBUILD bist-0.5.1-r1.ebuild 694 RMD160 a2b89ddcb1739df0f8ba9ecbfb437604f43fdb52 SHA1 dbfc9b9482d687ffbd7d86afc912f11585140621 SHA256 2d1a05d6bc8ad7e62b1e6cdde75d006cbc12d7aa2595c9ad4d3668833af6fd61
+MISC ChangeLog 1179 RMD160 09e71b55f8d994d4fec7f640cacf6ca8cdf25c79 SHA1 d60db59280ec2d855eb0888cfd772ed3ff641e4e SHA256 da7f51562f12111b0f707b85d39178c35191fe0f79e28c3facada9b4f3c99185
+MISC metadata.xml 1221 RMD160 a53092870d168cb265d2eef41a1556975b161846 SHA1 4c7dd7b7dfc788161a06815502785e1b6f2d9f7a SHA256 3469c6fb0fedd54e56f8961a7e1b6fc6aa23a6ace1d18b89a4a87ef2748fe164
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.16 (GNU/Linux)
+
+iQIcBAEBAgAGBQJMcZKVAAoJENwGBM22xffewB0P/izoz6rzjRp8dCZxrEohD7RX
+u4h+HIdY4+xD7HNa9AoJC9hO48YKmZ+ggH/pWIM9UtHmbZIlhRgFsV1wQlyP6V/o
+mS1mNuguTFI9v6B3KM8syL7nNPvtTfBXExgOouBjnLExtGG2B5+2crnGGKY5NW/K
+xkGI9gRpt1jgUjjY74zkF+4YEeKPKd1M9CRr9VwMfn+gRQExxYY4v4R0579fqBux
+OdL221kqIV59KpDWmaqiXDssEAjZzk+vefrvqkyhL4ZCPRLuO8suYU/m43zMb0lF
+vMV7v/peLkcPAJ2bHSfwg+q5R6A4NC8Kj1QQ6Xbxk00nkwh7fOG8xt1k1hojwX91
+h7E/9IqhGkIZCEHsw/mzerrUnetGeScCOdrIuJkXoSdSRx6XiF4ZyV53z4kGNVe7
+AkMZm6GOsqJIkuDBlAmcEd2uJNwTKNEeFYK7Wj+5NjMa1hOZ+FzwrBGAei97JYPT
+2ns5NtO/3Ki/k1PaM8FsPYgQ/AlFNC8mtztmpJQzB6lQP7OTsYXD9n0/uyLlVknF
+BOBuJIzBPLN1RIRpGgUYiXuAi1+5TSBRQ4G7NVjYCMisr6CuUBew31vgB4XG4iVL
+591gXUo+2pcBckbaiZ5s+dVfhpb6vQImD+MiEiiT5Aw53o+OpHUCFeb1ICh9zPQg
+SzreZ34Qu9hpvMdBBp6P
+=8rwF
+-----END PGP SIGNATURE-----
diff --git a/sci-chemistry/bist/bist-0.5.1-r1.ebuild b/sci-chemistry/bist/bist-0.5.1-r1.ebuild
new file mode 100644
index 000000000..2a31a618c
--- /dev/null
+++ b/sci-chemistry/bist/bist-0.5.1-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils base
+
+DESCRIPTION="Bist, the chemical drawing tool"
+HOMEPAGE="http://www.autistici.org/interzona/index.php?mod=03_Bist"
+SRC_URI="http://www.autistici.org/interzona/ftrack.php?url=sections/06_Download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="net-misc/curl
+ dev-libs/expat
+ >=x11-libs/fltk-1.1.7:1.1
+ sci-libs/gsl
+ >=sci-chemistry/openbabel-2.2.0
+ >=media-libs/plotutils-2.5"
+
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ use amd64 && epatch "${FILESDIR}/${P}-bracket.patch"
+ epatch "${FILESDIR}/${P}-install.patch"
+}
diff --git a/sci-chemistry/bist/files/bist-0.5.1-bracket.patch b/sci-chemistry/bist/files/bist-0.5.1-bracket.patch
new file mode 100644
index 000000000..86a587e6a
--- /dev/null
+++ b/sci-chemistry/bist/files/bist-0.5.1-bracket.patch
@@ -0,0 +1,11 @@
+--- pluginclude/wrap_bracket_dialog.hpp.orig 2008-09-30 10:45:56.000000000 +0200
++++ pluginclude/wrap_bracket_dialog.hpp 2008-09-30 10:46:07.000000000 +0200
+@@ -10,7 +10,7 @@
+ #if SIZEOF_INT_P == 8
+ #define WRAP_BRACKET_SIZE_USER_DATA_MENU long int
+ #else
+-#define WRAP_BRACKET_SIZE_USER_DATA_MENU unsigned int
++#define WRAP_BRACKET_SIZE_USER_DATA_MENU unsigned long
+ #endif
+
+
diff --git a/sci-chemistry/bist/files/bist-0.5.1-install.patch b/sci-chemistry/bist/files/bist-0.5.1-install.patch
new file mode 100644
index 000000000..b349b0d5b
--- /dev/null
+++ b/sci-chemistry/bist/files/bist-0.5.1-install.patch
@@ -0,0 +1,80 @@
+diff -r -u bist-0.5.1.orig/Makefile.in bist-0.5.1/Makefile.in
+--- bist-0.5.1.orig/Makefile.in 2009-04-04 12:04:44.000000000 +0200
++++ bist-0.5.1/Makefile.in 2009-09-23 23:59:37.000000000 +0200
+@@ -16,12 +16,7 @@
+
+ SRC_DIR =./src/
+ INC_DIR=./include/
+-LIB_DIR=@LIB_DIR_CONFIG_PATH@
+-LIB_DIR_DEBIAN=@LIB_DIR_CONFIG@
+-
+-ifneq ($(strip ${exec_prefix}),)
+-LIB_DIR=${LIB_DIR_DEBIAN}
+-endif
++LIB_DIR=@libdir@
+
+
+
+@@ -186,33 +181,29 @@
+ rm -f *.o
+ rm -f plugin/*.so
+ install:
+- install -D -o root -g root -m 0755 -s $(ELF) $(prefix)/bin/$(ELF)
+- install -D -o root -g root -m 0644 bist.png $(prefix)/share/pixmap/bist.png
+- install -D -o root -g root -m 0644 bist.desktop $(prefix)/share/applications/bist.desktop
++ install -D -o root -g root -m 0755 -s $(ELF) $(DESTDIR)/$(prefix)/bin/$(ELF)
++ install -D -o root -g root -m 0644 bist.png $(DESTDIR)/$(prefix)/share/pixmaps/bist.png
++ install -D -o root -g root -m 0644 bist.desktop $(DESTDIR)/$(prefix)/share/applications/bist.desktop
+ find rings -type d -exec install -D -o root \
+- -g root -m 0755 -d $(prefix)/share/$(ELF)-$(VERSION)/\{\} \;
++ -g root -m 0755 -d $(DESTDIR)/$(prefix)/share/$(ELF)-$(VERSION)/\{\} \;
+ find rings ! -type d -exec install -D -o root -g root \
+- -m 0644 \{\} $(prefix)/share/$(ELF)-$(VERSION)/\{\} \;
+- install -D -o root -g root -m 0755 -d $(prefix)/share/doc/$(ELF)-$(VERSION)
+- install -D -o root -g root -m 0644 doc/*.* $(prefix)/share/doc/$(ELF)-$(VERSION)/
+- install -D -o root -g root -m 0644 TODO $(prefix)/share/doc/$(ELF)-$(VERSION)/
+- install -D -o root -g root -m 0644 BUGS $(prefix)/share/doc/$(ELF)-$(VERSION)/
+- install -D -o root -g root -m 0644 README $(prefix)/share/doc/$(ELF)-$(VERSION)/
+- ./mkinstalldirs $(LIB_DIR)/$(ELF)-$(VERSION)/plugin
+- install -D -o root -g root -m 0644 plugin/*.so $(LIB_DIR)/$(ELF)-$(VERSION)/plugin/
+- ./mkinstalldirs $(prefix)/share/locale/$(ELF)-$(VERSION)
+- cp -R po/* $(prefix)/share/locale/$(ELF)-$(VERSION)/
+- ./mkinstalldirs $(prefix)/share/man/man1/
++ -m 0644 \{\} $(DESTDIR)/$(prefix)/share/$(ELF)-$(VERSION)/\{\} \;
++ install -D -o root -g root -m 0755 -d $(DESTDIR)/$(prefix)/share/doc/$(ELF)-$(VERSION)
++ install -D -o root -g root -m 0644 doc/*.* $(DESTDIR)/$(prefix)/share/doc/$(ELF)-$(VERSION)/
++ install -D -o root -g root -m 0644 TODO $(DESTDIR)/$(prefix)/share/doc/$(ELF)-$(VERSION)/
++ install -D -o root -g root -m 0644 BUGS $(DESTDIR)/$(prefix)/share/doc/$(ELF)-$(VERSION)/
++ install -D -o root -g root -m 0644 README $(DESTDIR)/$(prefix)/share/doc/$(ELF)-$(VERSION)/
++ ./mkinstalldirs $(DESTDIR)/$(LIB_DIR)/$(ELF)-$(VERSION)/plugin
++ install -D -o root -g root -m 0644 plugin/*.so $(DESTDIR)/$(LIB_DIR)/$(ELF)-$(VERSION)/plugin/
++ ./mkinstalldirs $(DESTDIR)/$(prefix)/share/locale
++ find po -name "*.po" -exec rm -v \{\} \;
++ rm -v po/LINGUAS po/bist.pot
++ cp -R po/* $(DESTDIR)/$(prefix)/share/locale/
++ ./mkinstalldirs $(DESTDIR)/$(prefix)/share/man/man1/
+ gzip -c --best ./doc/man/$(ELF).1 > ./doc/man/$(ELF).1.gz
+- install -D -o root -g root -m 0644 ./doc/man/$(ELF).1.gz $(prefix)/share/man/man1/
++ install -D -o root -g root -m 0644 ./doc/man/$(ELF).1.gz $(DESTDIR)/$(prefix)/share/man/man1/
+ rm -f ./doc/man/$(ELF).1.gz
+
+-uninstall:
+- rm -Rf $(prefix)/bin/$(ELF)-$(VERSION)
+- rm -Rf $(prefix)/share/$(ELF)-$(VERSION)
+- rm -Rf $(prefix)/share/doc/$(ELF)-$(VERSION)
+- rm -Rf $(LIB_DIR)/$(ELF)-$(VERSION)/
+- rm -f $(prefix)/share/man/man1/$(ELF).1.gz
+ dist: distclean
+ ./rmcvs.py
+ cd .. ; tar -c $(ELF) | gzip --best > $(TARNAME)-$(VERSION).tar.gz
+diff -r -u bist-0.5.1.orig/include/config_path.h.in bist-0.5.1/include/config_path.h.in
+--- bist-0.5.1.orig/include/config_path.h.in 2009-04-04 12:04:42.000000000 +0200
++++ bist-0.5.1/include/config_path.h.in 2009-09-23 23:29:35.000000000 +0200
+@@ -12,6 +12,6 @@
+ #define VERSION "@VERSION@"
+
+ #define PLUGIN_PATH_HOME "/.bist/plugin/"
+-#define PLUGIN_PATH_SHARED "@LIB_DIR_CONFIG_PATH@/@ELF@-@VERSION@/plugin/"
++#define PLUGIN_PATH_SHARED "@libdir@/@ELF@-@VERSION@/plugin/"
+
+ #define ELF_ABS_PATH "@prefix@/bin/@ELF@"
diff --git a/sci-chemistry/bist/metadata.xml b/sci-chemistry/bist/metadata.xml
new file mode 100644
index 000000000..d6a2d376f
--- /dev/null
+++ b/sci-chemistry/bist/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</herd>
+<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+<longdescription>
+Bist stands for bidimensional structures (in italian it sounds like "beast" in english ) and is a chemical drawing tool. It is focused on organic chemistry but it may be useful also for chemists or teacher as well.
+Bist support many of the formalism used to describe molecoles structures like single bond, double bond, stereospecific bond, charges, resonance arrows, lone pairs etc...
+It can export both postscript and png formats.
+This version is now integrated with openbabel API so virtually all the formats this library can accept should be a valid input for bist too.
+Currently portability is not my goal so only GNU/Linux platform is supported. However any effort in this direction is appreciated so feel free to ask me about any porting question. Please remember that bist is actually in a beta stage of development so i strongly suggest you to not using it except for testing or hacking purpose. Bist is free software released under GNU GPL version 3
+</longdescription>
+</pkgmetadata>