Opened 14 years ago

Closed 14 years ago

#28527 closed submission (fixed)

lpeg port

Reported by: andremm@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: lpeg

Description

A portfile for installing lpeg using macports. LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs).

Attachments (2)

Portfile (1.4 KB) - added by andremm@… 14 years ago.
patch-makefile.diff (592 bytes) - added by andremm@… 14 years ago.

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by andremm@…

Attachment: Portfile added

Changed 14 years ago by andremm@…

Attachment: patch-makefile.diff added

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Port: lpeg added
Status: newassigned

Thanks.

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

Resolution: fixed
Status: assignedclosed

Added in r76461 with these changes:

  • added our standard modeline and ensured indentation is at a multiple of 4 spaces (see the Guide)
  • fixed maintainers line to be your email address in our obfuscated format (there is no MacPorts committer with the handle "amaidl")
  • removed md5 checksum (I consider it obsolete)
  • changed "configure {}" to "use_configure no" (see the output of "port lint")
  • ensured we're UsingTheRightCompiler and supporting build_arch and universal builds (necessary to do manually because this software doesn't use a standard configure script)
  • don't hardcode the value of LUADIR to include /opt/local in the makefile; instead I supplied the value of LUADIR with the correct current value (using ${prefix}) by appending to build.args
  • don't uncomment the line "ENV = MACOSX_DEPLOYMENT_TARGET=10.4" in the makefile; MacPorts already sets the value of MACOSX_DEPLOYMENT_TARGET correctly for all ports all the time
  • no longer hardcode lua 5.1 directory locations in the destroot; find them with pkgconfig (and add port:pkgconfig build depedency)
  • simplify destroot using xinstall's -W flag
  • use mode 0644 to install documentation files instead of the default 0755 (HTML files and images do not need the execute bit)
Note: See TracTickets for help on using tickets.