{"action":"created","issue":{"url":"https://api.github.com/repos/jpakkane/meson/issues/132","labels_url":"https://api.github.com/repos/jpakkane/meson/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/jpakkane/meson/issues/132/comments","events_url":"https://api.github.com/repos/jpakkane/meson/issues/132/events","html_url":"https://github.com/jpakkane/meson/issues/132","id":79854211,"number":132,"title":"wrap: redesign","user":{"login":"ignatenkobrain","id":2866862,"avatar_url":"https://avatars.githubusercontent.com/u/2866862?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatenkobrain","html_url":"https://github.com/ignatenkobrain","followers_url":"https://api.github.com/users/ignatenkobrain/followers","following_url":"https://api.github.com/users/ignatenkobrain/following{/other_user}","gists_url":"https://api.github.com/users/ignatenkobrain/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatenkobrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatenkobrain/subscriptions","organizations_url":"https://api.github.com/users/ignatenkobrain/orgs","repos_url":"https://api.github.com/users/ignatenkobrain/repos","events_url":"https://api.github.com/users/ignatenkobrain/events{/privacy}","received_events_url":"https://api.github.com/users/ignatenkobrain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-23T13:54:24Z","updated_at":"2015-05-24T21:37:13Z","closed_at":null,"body":"I've thought a bit about designing our wrap-files.\r\n\r\n**How it should be in files structure**\r\n*https://github.com/mesonbuild/wrap-odeint*\r\n* `meson.build`\r\n\r\n*https://github.com/miit-pm/RWD*\r\n* Actual code\r\n* `meson.build`\r\n* `subprojects/`\r\n  * `odeint.wrap`\r\n\r\n*odeint.wrap*\r\n* Directory\r\n* Upstream git repo - `https://github.com/boostorg/odeint.git`\r\n* Upstream git revision/tag (OPTIONAL) - `boost-1.57.0`\r\n* Wrap git repo - `https://github.com/mesonbuild/wrap-odeint.git`\r\n* Wrap git revision/tag - `1.57.0`\r\n\r\n**How it should work**\r\n1. Clone upstream repo to directory - `git clone https://github.com/boostorg/odeint.git`\r\n2. Check out needed revision/tag - `git checkout boost-1.57.0`\r\n3. Add remote wrap repo - `git remote add wrap https://github.com/mesonbuild/wrap-odeint.git`\r\n4. Fetch wrap repo - `git fetch wrap`\r\n5. Merge wrap revision/tag to current state - `git merge wrap/1.57.0`"},"comment":{"url":"https://api.github.com/repos/jpakkane/meson/issues/comments/105063894","html_url":"https://github.com/jpakkane/meson/issues/132#issuecomment-105063894","issue_url":"https://api.github.com/repos/jpakkane/meson/issues/132","id":105063894,"user":{"login":"jpakkane","id":4079821,"avatar_url":"https://avatars.githubusercontent.com/u/4079821?v=3","gravatar_id":"","url":"https://api.github.com/users/jpakkane","html_url":"https://github.com/jpakkane","followers_url":"https://api.github.com/users/jpakkane/followers","following_url":"https://api.github.com/users/jpakkane/following{/other_user}","gists_url":"https://api.github.com/users/jpakkane/gists{/gist_id}","starred_url":"https://api.github.com/users/jpakkane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpakkane/subscriptions","organizations_url":"https://api.github.com/users/jpakkane/orgs","repos_url":"https://api.github.com/users/jpakkane/repos","events_url":"https://api.github.com/users/jpakkane/events{/privacy}","received_events_url":"https://api.github.com/users/jpakkane/received_events","type":"User","site_admin":false},"created_at":"2015-05-24T21:37:12Z","updated_at":"2015-05-24T21:37:12Z","body":"The problem with that is that Github appends the commit id hash to the directory name inside the .tar.gz so you can't just extract it over the source dir. This is fixable with preprocessing but I'd really like if downloads from Github were handled in the exact same way as downloads from other places (i.e. they would have the correct subdirectory so you could just extract them without worrying)."}}