Bug 22594 - clanlib SLOT install
Bug#: 22594 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: kai@chickenbrain.de
Component: Games
URL: 
Summary: clanlib SLOT install
Keywords:  
Status Whiteboard: 
Opened: 2003-06-11 00:21 0000
Description:   Opened: 2003-06-11 00:21 0000
Hi, 
it is NOT possible to use different versions of clanlib together atm. I do not know 
if this will ever be possible, but it will be a bit difficult to install differnet games 
(which depends on different library versions) without a change in header 
management. Maybe someone has a good idea how to solve this.

------- Comment #1 From Kai Schlüter 2003-06-11 00:24:02 0000 -------
Created an attachment (id=13088) [details]
clanlib-0.7.2 ebuild

clanlib-0.7.2 is out

ebuild works here fine,
library too.

------- Comment #2 From SpanKY 2003-07-16 17:34:57 0000 -------
ok, i changed the ebuilds so they install libs into /usr/lib/${P} and moved the
include 
files to /usr/include/${P} ... 

i then made a script called 'clanlib-config' ... basically run it with desired
version ... 
so at the end of each clanlib merge it'll run `clanlib-config ${PV}` ... 

then when a package who needs clanlib emerges (say pingus), it runs
clanlib-config 
0.6.5 in pkg_setup() ... 

what clanlib-config does is symlink /usr/include/ClanLib to clanlib-VERSION and 
then creates symlinks in /usr/lib/ to all the libraries in
/usr/lib/clanlib-VERSION ... 
note that since games tend to link against the full libname-version and not the
generic 
libname, /usr/lib/ is populated with all the full libname-version files while
the libname 
generic is linked to the last version clanlib-config was given ... 

i guess we'll see how it goes, but i emerged clanlib 0.6.5 and 0.7.2, ran
clanlib-config for 
both, then emerged pingus (which ran clanlib-config 0.6.5 in pkg_setup()) and
it 
worked just dandy ;)