Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 414685

Summary: dev-libs/xlslib - C++/C library to construct Excel .xls files in code
Product: Gentoo Linux Reporter: Petric Frank <pfrank>
Component: [OLD] LibraryAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED NEEDINFO    
Severity: normal Keywords: EBUILD
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://sourceforge.net/projects/xlslib/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild file to build the xlslib
Updated ebuild file
Hardcode inclusion of xlconfig.h

Description Petric Frank 2012-05-05 07:59:48 UTC
Created attachment 310829 [details]
ebuild file to build the xlslib

Created an ebuild for a platform independent library (C/C++) named xlslib.

Placed here if someone else needs a C or C++ library to read and/or write XLS (not XLSX !) files.

Proposed location in portage: x11-libs/xlslib
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-05 16:21:07 UTC
(In reply to comment #0)
> Proposed location in portage: x11-libs/xlslib

Why x11-libs? It doesn't appear to be X11 related at all.

Also note that this should probably not be confused with dev-libs/libxls. :)
Comment 2 Petric Frank 2012-05-05 21:38:55 UTC
Sorry - my mistake.

You're right. I meant dev-libs.
Comment 3 Petric Frank 2012-08-08 12:14:49 UTC
Created attachment 320688 [details]
Updated ebuild file

Updated ebuild file.

Fixes:
1. patch installed #include statements to point to the proper locations
2. hardcode inclusion of xlconfig.h in xlsys.h

The include files were installed into /usr/include/xlslib, but the files there uses include statements in the style
 #include "common/xlsys.h"

instead of
 #include "xlslib/common/xlsys.h"

Fix 1. was introduced to cover this using a couple of sed statements.

Fix 2. covers the problem that if the project which uses this library does not define HAVE_CONFIG_H the compile will abort stating "PACKACKE_VERSION not defined".
Comment 4 Petric Frank 2012-08-08 12:16:39 UTC
Created attachment 320690 [details, diff]
Hardcode inclusion of xlconfig.h

Required patch file for fix 2. above.