Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414685 - dev-libs/xlslib - C++/C library to construct Excel .xls files in code
Summary: dev-libs/xlslib - C++/C library to construct Excel .xls files in code
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL: http://sourceforge.net/projects/xlslib/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2012-05-05 07:59 UTC by Petric Frank
Modified: 2012-08-08 12:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild file to build the xlslib (xlslib-2.3.4.ebuild,528 bytes, text/plain)
2012-05-05 07:59 UTC, Petric Frank
Details
Updated ebuild file (xlslib-2.3.4.ebuild,1.63 KB, text/plain)
2012-08-08 12:14 UTC, Petric Frank
Details
Hardcode inclusion of xlconfig.h (xlconfig_h_inclusion.patch,1.53 KB, patch)
2012-08-08 12:16 UTC, Petric Frank
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.