Hello
Please find attached diff to app-misc/digitemp-3.3.2 ebuild. I rewrote the
1-wire adapter type selection stuff to allow several types to be used in the
same system, and enabled building of the USB-adapter version. I suggest the new
ebuild will be named digitemp-3.3.2-r1.
Digitemp is a program that operates on the Dallas 1-wire bus, especially for
reading temperature and other sensors. 1-wire is connected to PC via an
adapter, usually in a serial port.
Previously, only one type of adapter could be used, because the type is
selected at compile time and the 3.3.2 ebuild only installs one binary with a
name independent of adapter type. The compile time selection is also the reason
why the new ebuild rebuilds everything for different adapter types, just to be
sure. There are new USE-flags to select the adapter type.
Summary for changelog:
Rewrote the 1-wire adapter selection: remove SERIAL_DRIVER variable and use new
USE-flags instead: ds9097, ds9097u, ds2490. If no USE-flags selected, builds
the ds9097u version. Added compilation support for the DS9490 USB-adapter
(ds2490). Allow to install multiple executables for different adapters.
New package specific USE-flags:
ds2490: Support the USB-to-1-wire adapter, e.g. DS9490.
ds9097: Support the passive DS9097 serial-to-1-wire adapter.
ds9097u: Support the DS9097U serial-to-1-wire adapter, that uses DS2480B chip.
Ok, seems that the SERIAL_DRIVER env variable approach would have been
preferable over USE-flags. However, I could not find documentation about how to
create such a variable (like VIDEO_CARDS in xorg-server), and the currently
used SERIAL_DRIVER does not show up in 'emerge -va digitemp'. I tried to do it,
but failed. I thought it is better to see the options before the actual
compilation begins.
Any pointers?
Great! I've modified your changes slightly, see the ebuild in portage. Thanks
for your work, fixed in CVS.