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:

Change History (6)

comment:1 Changed 8 years ago by hmeine (Hans Meine)

I wanted to mention build-time dependencies:

  • rust >= 1.9.0 (MacPorts already has 1.11.0)
  • cargo (MacPorts has 0.11.0)

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.

comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: ripgrep added

comment:3 Changed 8 years ago by posita (Matt Bogosian)

Cc: mtb19@… added

Cc Me!

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: newclosed

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.

Note: See TracTickets for help on using tickets.