Opened 8 years ago
Closed 8 years ago
#52416 closed request (fixed)
ripgrep 0.2.1: request for new portfile
Reported by: | hmeine (Hans Meine) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | posita (Matt Bogosian) | |
Port: | ripgrep |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Having a blazingly fast search tool handy is of extremely high value, as I am sure you know yourself. ripgrep is faster than {grep, git grep, ag, ack, grin, rak, ucg, pt, sift}, see http://blog.burntsushi.net/ripgrep/
Unfortunately, I have no experience with writing Portfiles, and I don't know much about Rust either (which ripgrep is based on / programmed with). But here's some hopefully useful information:
- Official homepage: https://github.com/BurntSushi/ripgrep
- Official release downloads: https://github.com/BurntSushi/ripgrep/releases
- The Homebrew source build formula [1] uses "https://github.com/BurntSushi/ripgrep/archive/#{version}.tar.gz" as URL
- Similarly, the Arch community package [2] uses "https://github.com/BurntSushi/$pkgname/archive/$pkgver.tar.gz"
- Pointers to other packages can be found here: https://github.com/BurntSushi/ripgrep/issues/10
- [1] https://github.com/BurntSushi/ripgrep/issues/10#issuecomment-249351411
- [2] https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/ripgrep
Change History (6)
comment:1 Changed 8 years ago by hmeine (Hans Meine)
comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Port: | ripgrep added |
comment:4 Changed 8 years ago by seanfarley (Sean Farley)
I've thought about this as well (ripgrep
is amazing, by the way). What should MacPorts do for rust programs? Install each dependency individually (like we do for python / ruby / etc)? Or take the cargo approach and build everything as one app?
comment:5 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)
It looks like this was committed last week
r153796 | raimue@macports.org | 2016-10-11 11:28:41 -0400 (Tue, 11 Oct 2016) | 2 lines ripgrep: new port, version 0.2.2
comment:6 Changed 8 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | new → closed |
I added the port but later noticed it is not perfect yet. As Sean noted, the dependencies are pulled in with cargo in the build phase instead of referencing a system version. There is definitely room for improvements in packaging rust programs. If there is interest, we should move such a discussion to macports-dev at is not only relevant to ripgrep.
Closing this ticket as the original request was fulfilled.
I wanted to mention build-time dependencies:
And here are the hashes for version 0.2.1 (as seen in the above-mentioned Arch package as well):
I could successfully build that tarball using "cargo build --release" in the source directory after unpacking, with rust/cargo from MacPorts.