I have a package that depends on Archive::Zip and for most cases that seems to work. For netbsd and a few other cases though it doesn't work. I would like to provide alternate support unzipping files with Corions newish module Archive::SevenZip. I know how to test for either in the package and use the one that is loaded. I also know how to set up testing that will test either case. I just don't know/remember how to set up the dependencies for Makefile.PL and META.yml. I would like the package to build and test if either Archive::Zip or Archive::SevenZip will build/install but not require both.
I would especially like to accomplish this with Dist::Zilla if possible. Any help is greatly appreciated.
Update: I realized I didn't say this explicitly but I do want the prerequisites to fail if neither Archive::Zip or Archive::SevenZip will build successfully.