src_prepare()
{
- epatch "${FILESDIR}/${PN}-9999-comedi_soft_calibrate-data-destdir.patch"
if [ "${PV}" == "9999" ] ; then
eautoreconf
fi
}
+
+src_configure()
+{
+ # by default, Gentoo uses `"${EPREFIX}"/var/lib` for
+ # localstatedir, but the GNU folks recommend $(prefix)/var.
+ # http://www.gnu.org/prep/standards/html_node/Directory-Variables.html
+ # Comedi expects to be configured with the GNU form, otherwise we
+ # get /var/lib/lib/comedi.
+ econf --localstatedir="${EPREFIX}"/var
+}
+
+src_install()
+{
+ emake DESTDIR="${D}" install
+ dodoc README AUTHORS ChangeLog
+ # make the calibration directory available to the comedi group set
+ # up by sci-misc/comedi-headers
+ chgrp comedi "${D}/var/lib/comedi/calibrations"
+ chmod 775 "${D}/var/lib/comedi/calibrations"
+}