Bug 50538 - new port: science/gchemutils - set of Gtk2 widgets for chemistry
Summary: new port: science/gchemutils - set of Gtk2 widgets for chemistry
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-02 12:00 UTC by Jan Hornyak
Modified: 2003-04-08 01:06 UTC (History)
0 users

See Also:


Attachments
file.shar (6.29 KB, text/plain)
2003-04-02 12:00 UTC, Jan Hornyak
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Hornyak 2003-04-02 12:00:26 UTC
Gnome Chemistry Utils provide C++ classes and Gtk+-2 widgets related
to chemistry.

This port is needed for science/gchempaint port, which I'll send next.

Tested on 4.7-STABLE and 5.0-RELEASE, i386 systems.

Put this to science category.
Comment 1 Kimura Fuyuki 2003-04-02 22:25:03 UTC
This library will fail if the environment variable LANG is not
defined. Here's a patch. (Sent to the author too.)

Index: chemistry/element.cc
===================================================================
RCS file: /cvsroot/gchemutils/gchemutils/chemistry/element.cc,v
retrieving revision 1.3
diff -u -r1.3 element.cc
--- chemistry/element.cc	1 Mar 2003 17:02:49 -0000	1.3
+++ chemistry/element.cc	2 Apr 2003 04:14:46 -0000
@@ -97,7 +97,7 @@
 				if (!strcmp((const char*)child->name, "name"))
 				{
 					tmp = (char*) xmlNodeGetLang(child);
-					if ((!tmp) && (!lang) && (!strncmp(lang, tmp, 2))) Elt->name = (char*) xmlNodeGetContent(child);
+					if (tmp && lang && (!strncmp(lang, tmp, 2))) Elt->name = (char*) xmlNodeGetContent(child);
 					else DefaultName = (char*) xmlNodeGetContent(child);
 				}
 				else if (!strcmp((const char*)child->name, "color"))
Comment 2 Joe Marcus Clarke freebsd_committer freebsd_triage 2003-04-08 01:05:56 UTC
State Changed
From-To: open->closed

Committed, thanks!