smarco / gem3-mapper

GEM-Mapper v3
GNU General Public License v3.0
56 stars 17 forks source link

Archives including submodules #8

Closed karl616 closed 6 years ago

karl616 commented 6 years ago

I was trying to install gem3-mapper archive on the v3.6 release archive. This doesn't work as the submodule gem-cutter is missing. I realize I can pull from the github as a normal person, but my target was to add gem3-mapper to bioconda and they prefer release-archives.

This pull-request contains code that builds an archive containing submodules as well. The code is modified from here: https://ttboj.wordpress.com/2015/07/23/git-archive-with-submodules-and-tar-magic/.

It works like this:

./configure
make archive

This generates a file named gem3-mapper.tar.gz. Naming is statically controlled by the ARCHIVENAME parameter at the moment. Could be nice to include versions directly at one point.

The generated archive let's me build directly after extracting. This doesn't work with the autogenerated archives as they lack submodules, aren't git repositories and hence doesn't allow that the missing code is pulled down.

I realize its a shore, but would it be possible to add an archive like this to the release versions?

Attached is an example archive for v3.6:

gem3-mapper.tar.gz

and the current HEAD:

gem3-mapper.tar.gz

smarco commented 6 years ago

Thanks for the feedback.

karl616 commented 6 years ago

Happy to help, I have worked out a recipe for conda, but I would need some help and a little feedback to finalize it. I'll raise it as an issue: https://github.com/smarco/gem3-mapper/issues/9