wxSQLite3 is a C++ wrapper around the public domain SQLite 3.x database and is specifically designed for use in programs based on the wxWidgets library. wxSQLite3 does not try to hide the underlying database, in contrary almost all special features of the current SQLite3 version 3.3.6 are supported, like for example the creation of user defined scalar or aggregate functions. Since SQLite stores strings in UTF-8 encoding, the wxSQLite3 methods provide automatic conversion between wxStrings and UTF-8 strings. This works best for the Unicode builds of wxWidgets. This feature is not fully tested for ANSI builds.
Created attachment 94277 [details] wxSQLite3-1.6.0.ebuild
Created attachment 94278 [details, diff] wxSQLite3-1.6.0-makefile_in.patch
This is now in the sunrise overlay. You can find it at: http://gentoo-sunrise.org/svn/reviewed/dev-db/wxSQLite3
Created attachment 363320 [details] updated ebuild I need wxsqlite3 for myrulib. I think package name should be dev-db/wxsqlite3 like in tar.
Looks alright to me (haven't tested yet). Why are you setting SLOT to WX_GTK_VER though?
It builds and installs libs only for one wxgtk version: $ equery f wxsqlite3 |grep '/usr/lib' /usr/lib64 /usr/lib64/libwxcode_gtk2u_wxsqlite3-2.8.so /usr/lib64/libwxcode_gtk2u_wxsqlite3-2.8.so.0 /usr/lib64/libwxcode_gtk2u_wxsqlite3-2.8.so.0.0.0 It also seems to support 2.9 and 3.0, but i did not check. Not sure what is the best way to support both 2.8 and 3.0 in this case. Headers should be same for them, so instead of having 2 ebuilds may be have one and add USE flags?
I think it would be possible with USE flags but it's kind of ugly and you'd only be able to choose 2.8 or 3.0, not both. Let's just build against 2.8 until 3.0 stabilizes or they drop support. In any case wxsqlite's SLOT should stay at 0 since we're not going to be installing multiple copies of it.
May be try multibuild.eclass for building both?
+*wxsqlite3-3.0.6.1 (28 Dec 2013) + + 28 Dec 2013; Justin Lecher <jlec@gentoo.org> +wxsqlite3-3.0.6.1.ebuild, + +files/wxsqlite3-3.0.6.1.pc.in, +metadata.xml: + Import from sunrise, thanks Cédric Krier for the initial ebuild; fixes + #143950 +
When wxGTK is built with USE=debug the library here will get installed as libwxcode_gtk2ud_wxsqlite3-2.8.so which will break your pkg-config. Yes this is braindead.
And it doesn't actually build with USE="-unicode" (there is no non-unicode build of wxGTK in Gentoo).
Fixed.