Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#43101 closed submission (fixed)

coinor-liblemon: New port for the LEMON Library

Reported by: tre@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port: coinor-liblemon

Description

Hi,

I would like to add a new port named coinor-liblemon (analogously to the Coin-OR Debian packages) for the LEMON graph library, see http://lemon.cs.elte.hu

The library is a static C++ library using cmake and licensed under Boost. I successfully tested it under Lion and Mavericks.

Thanks in advance, David

Attachments (3)

Portfile (1.4 KB) - added by tre@… 6 years ago.
Portfile.2 (1.2 KB) - added by tre@… 6 years ago.
Portfile.3 (1.2 KB) - added by david.weese@… 6 years ago.

Download all attachments as: .zip

Change History (17)

Changed 6 years ago by tre@…

Attachment: Portfile added

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

Summary: New port for the LEMON Librarycoinor-liblemon: New port for the LEMON Library

Some observations:

  • The empty depends_lib line should be removed because it does nothing.
  • Since this software builds with cmake, consider using the cmake portgroup which should simplify the portfile.
  • You've declared a dependency on python27 but don't appear to be using it.
  • Forcing the compiler to gcc47 is going to be problematic on Mavericks and later for any other software that wants to use lemon; see wiki:FAQ#libcpp. Why can't lemon compile with clang?

Changed 6 years ago by tre@…

Attachment: Portfile.2 added

comment:2 Changed 6 years ago by tre@…

Hi Ryan,

thanks for your hints. I cleaned it up accordingly. However, the gcc dependency seems to be mandatory for 2 reasons:

  • the latest 1.3 release of LEMON won't compile with clang++ due to some flaws in the sources, e.g. I saw some missing typenames in template constructs etc.
  • I created the LEMON port as the latest seqan-apps port depends on it. seqan-apps also depends on g++ as it relies on OpenMP for multithreading.

I'm optimistic that the LEMON developers will fix the clang++ compilation issues in the future. However seqan-apps won't lose its g++ dependency before Apple's clang++ supports OpenMP. :-(

Regards, David

comment:3 Changed 6 years ago by tre@…

ping

comment:4 in reply to:  3 ; Changed 6 years ago by tre@…

ping

Changed 6 years ago by david.weese@…

Attachment: Portfile.3 added

comment:5 in reply to:  4 Changed 6 years ago by david.weese@…

I just replaced the "configure.compiler" entry by blacklisting clang which causes compiler problems (read above).

David

Version 0, edited 6 years ago by david.weese@… (next)

comment:6 Changed 6 years ago by david.weese@…

Hi there,

Can anyone of the MacPorts team please have a look at my final Portfile so that it can be eventually published?

Cheers, David

comment:7 Changed 6 years ago by david.weese@…

Hello? Anyone there?

comment:8 Changed 6 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:9 Changed 6 years ago by kurthindenburg (Kurt Hindenburg)

OK I'll see if I can this to work

comment:10 Changed 6 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: newclosed

comment:11 Changed 6 years ago by kurthindenburg (Kurt Hindenburg)

It builds fine on my local Mavericks - not sure why the build bot failed

  The C compiler "/opt/local/bin/llvm-gcc-4.2" is not able to compile a
  simple test program.

  It fails with the following output:

   Change Dir: /opt/local/var/macports/build/_opt_mports_dports_science_coinor-liblemon/coinor-liblemon/work/lemon-1.3/CMakeFiles/CMakeTmp

  

  Run Build Command:"/usr/bin/make" "cmTryCompileExec2293057106/fast"

  /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
  CMakeFiles/cmTryCompileExec2293057106.dir/build.make
  CMakeFiles/cmTryCompileExec2293057106.dir/build

https://build.macports.org/builders/buildports-mavericks-x86_64/builds/8986/steps/compile/logs/stdio

comment:12 Changed 6 years ago by david.weese@…

Hi,

that error seems to be unrelated to the coinor port. it seems that the C compiler is not available at /opt/local/bin/llvm-gcc-4.2 or broken. Cmake uses the CC environment variable to set the path for the C compiler. Can you check that the variable is set appropriately on the test system.

Cheers, Dave

comment:13 Changed 6 years ago by david.weese@…

What is the status here? Does "closed submission: fixed" mean that the port is available now?

comment:14 Changed 6 years ago by kurthindenburg (Kurt Hindenburg)

Yes, it is in ports now since comment:11

port search coinor-liblemon                                          [22:34:26]
coinor-liblemon @1.3 (science)
    Library of Efficient Models and Optimization in Networks

Note: See TracTickets for help on using tickets.