1 |
Mike Frysinger wrote: |
2 |
> how about 'sqlite' means you want sqlite irregardless of version ... then |
3 |
> sqlite-2 either gets punted from apr-util or it gets a local USE |
4 |
> flag 'sqlite-old' for older cruft |
5 |
> |
6 |
Wouldn't be better to determine what version of sqlite should be used |
7 |
based on the version of sqlite currently installed on the system? |
8 |
Something like: |
9 |
sqlite_atom=$(best_version dev-db/sqlite) |
10 |
sqlite_major_version=${sqlite_atom#*/*-} #reduce it to $PV-$PR |
11 |
sqlite_major_version=${sqlite_major_version%%.*} # major version |
12 |
|
13 |
... ebuild stuff... |
14 |
econf \ |
15 |
$(use_enable sqlite sqlite${sqlite_major_version}) |
16 |
|
17 |
Better yet, why not make an sqlite.eclass that would contain at least |
18 |
get_sqlite_major_version()? |