This version is a bit of experiment. I had asked on the r-package-devel and r-devel list how I could suppress builds on macOS. As it does not have the required
libapt-pkg-dev library to support the
apt, builds always failed. CRAN managed to not try on Solaris or Fedora, but somewhat macOS would fail. Each. And. Every. Time. Sadly, nobody proposed a working solution.
So I got tired of this. Now we detect where we build, and if we can infer that it is not a Debian or Ubuntu (or derived system) and no
libapt-pkg-dev is found, we no longer fail. Rather, we just set a
#define and at compile-time switch to essentially empty code. Et voilà: no more build errors.
And as before, if you want to use the package to query the system packaging information, build it on system using
apt and with its
A few other cleanups were made too.
Changes in version 0.0.5 (2017-09-29)
NAMESPACEnow sets symbol registration
configurechecks for suitable system, no longer errors if none found, but sets good/bad
definefor the build
Existing C++ code is now conditional on having a 'good' build system, or else alternate code is used (which succeeds everywhere)
suitable()returning a boolean with configure result
Tests are conditional on
suitable()to test good builds
The Travis setup was updated
The vignette was updated and expanded