Opened 11 years ago

Last modified 9 years ago

#40044 closed submission

Add port for liblightgrep — at Version 6

Reported by: jessekornblum@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: egall@…
Port: liblightgrep

Description (last modified by ryandesign (Ryan Carsten Schmidt))

liblightgrep is a library for searching data using regular expressions as defined in Unicode Technical Standard #18. There are lots of details, including a handy cheat sheet, at the project's homepage, http://www.lightboxtechnologies.com/lightgrep-engine.

I am willing to be the maintainer of this port.

Change History (7)

comment:1 Changed 11 years ago by cooljeanius (Eric Gallager)

First thing I notice: you should probably be using compiler.blacklist and compiler.whitelist instead of manually setting CC and CXX in the build environment.

comment:2 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 Changed 11 years ago by jessekornblum@…

Can you please point me to the documentation for specifying the compiler to use? I'm having trouble finding it. The library requires gcc 4.6 or later. How do I force the configure command to use the latest version of gcc/g++ above 4.6?

thanks!

comment:4 in reply to:  3 Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to jessekornblum@…:

Can you please point me to the documentation for specifying the compiler to use? I'm having trouble finding it.

There… uh… really isn’t any. There are a couple of wiki pages:

The recipe is outdated; MacPorts 2.2 automatically adds the necessary dependencies for compilers.

The library requires gcc 4.6 or later. How do I force the configure command to use the latest version of gcc/g++ above 4.6?

Remove the build dependency on port:gcc48 and add this:

compiler.whitelist  macports-gcc-4.8 \
                    macports-gcc-4.7 \
                    macports-gcc-4.6

configure.args      CC=${configure.cc} \
                    CXX=${configure.cxx}

comment:5 in reply to:  3 Changed 11 years ago by larryv (Lawrence Velázquez)

Also disable the universal variant, since you’re using FSF GCC:

universal_variant   no

(Unless you feel like adding the muniversal-1.0 PortGroup and hacking together a universal build manually.)

comment:6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: liblightgrep added

Changed 11 years ago by jessekornblum@…

Attachment: Portfile added

Updated with feedback

Note: See TracTickets for help on using tickets.