On Wed, Jul 14, 2010 at 03:18:50PM +0200, Kornel Benko wrote:
> Am Mittwoch 14 Juli 2010 schrieb Enrico Forestieri:
> > So, it seems that cmake doesn't follow the LyX conventions even on posix
> > systems (let alone on Windows). You should be able to *specify* a version
> > suffix other than accepting a default one.
> > When you use --with-version-suffix=-1.6, PACKAGE should be set to lyx-1.6,
> > such that the user dir is ~/.lyx-1.6 and the translation files are named
> > lyx-1.6.mo.
>
> We can use -DLYX_PACKAGE_SUFFIX and -DLYX_PROGRAM_SUFFIX.
This is not how it is supposed to work. See my explanation above.
> > > I _have_ different translations for lyx (trunk) and lyx16 (branch)
> >
> > So, your translations are named lyx.mo (trunk) and lyx16.mo (branch),
> > but the user dir is always ~/.lyx ???
>
> No. They are named lyx.mo, but in different directories.
> Here it is
> /usr/local/lyx1.6/locale/*/LC_MESSAGES/lyx.mo
> /usr/local/lyx2.0/locale/*/LC_MESSAGES/lyx.mo
>
> > > So please tell me where I understand wrong.
> >
> > I don't know what cmake does, but something is wrong, apparently.
>
> I don't feel so.
From what you say it seems that, in autotools language, you can set
different install locations (using --prefix=/usr/local/lyx1.6 in a
case, and --prefix=/usr/local/lyx2.0 in the other), but have no way
to specify --with-version-suffix. This means that using cmake it is
not possible to run different lyx versions in parallel (without using
the -userdir switch). This is due to the wrong way PACKAGE is set, IMHO.
This is a nuisance. With autotools, when using --with-version-suffix you
get this kind of layout:
[root]
+- usr/local
|
+- bin (here go the binaries lyx, lyx-14, lyx-15, etc)
|
+- share
|
+- lyx (system dir for current lyx version)
|
+- lyx-14 (system dir for 1.4)
|
+- lyx-15 (system dir for 1.5)
|
+- locale
|
+- ar
| |
| +- LC_MESSAGES (here go lyx.mo, lyx-14.mo, lyx-15.mo)
|
+- ca
| |
| +- LC_MESSAGES (here go lyx.mo, lyx-14.mo, lyx-15.mo)
...
Which is much cleaner. What you get with cmake is so much ... Windows like ;)
--
Enrico