Opened 14 years ago

Closed 12 years ago

Last modified 11 years ago

#26238 closed submission (fixed)

libsbml Portfile

Reported by: Russell-Jones-OxPhys (Russell Jones) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: hmatuschek@…
Port: libsbml

Description

LibSBML is a free, open-source programming library to help you read, write, manipulate, translate, and validate SBML files and data streams. It is not an application itself (though it does come with example programs), but rather a library you can embed in your own applications.

Attachments (4)

Portfile-libsbml (1.1 KB) - added by Russell-Jones-OxPhys (Russell Jones) 14 years ago.
libsbml portfile. Builds OK on 10.5.8.
Portfile (1.4 KB) - added by ryandesign (Ryan Carsten Schmidt) 14 years ago.
revised portfile suggestion
Portfile.2 (1.5 KB) - added by hmatuschek@… 12 years ago.
Updated Portfile for libsbml version 5.8
Portfile.3 (2.7 KB) - added by hmatuschek@… 12 years ago.
Added python variants for version 2.6-3.3

Download all attachments as: .zip

Change History (12)

Changed 14 years ago by Russell-Jones-OxPhys (Russell Jones)

Attachment: Portfile-libsbml added

libsbml portfile. Builds OK on 10.5.8.

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

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

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

Thanks, here's a portfile with these changes:

  • set maintainer to "nomaintainer" ("unmaintained" is not a valid maintainer name)
  • "ripemd160" is not a valid checksum type; it's called "rmd160" in MacPorts
  • reformatted and added modeline
  • simplified master_sites to "sourceforge:sbml"
  • added a line to remove "--disable-dependency-tracking" from the configure args when building universal, since the configure script complains about that option -- though at the moment libsbml cannot build universal since its dependency xercesc cannot build universal
  • added library dependency on bzip2 since it does find and link with libbz2

Does the port really use xerces? It doesn't seem to for me; in my config.log I see:

USE_XERCES=''
USE_ZLIB='1'
XERCES_CPPFLAGS=''
XERCES_LDFLAGS=''
XERCES_LIBS=''

We should probably also update to version 4.1.0.

Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: Portfile added

revised portfile suggestion

comment:3 Changed 14 years ago by Russell-Jones-OxPhys (Russell Jones)

Thanks. I'll test it on 10.5.8 and 10.6.4 and try it with 4.1.0. I based the dependencies on "Features: LibSBML offers powerful features such as reading/writing compressed SBML files, detecting overconstrained models, checking units, accessing SBML <annotation> content as XML objects, and the ability to use any one of three popular XML parser libraries: Xerces, Expat, and libxml2." From http://sbml.org/Software/libSBML Is there a way to have branched dependencies, i.e. any one of xerces, expat or libxml2? It would seem best to skip xerces if it prevents building universal. It would still work if build independently non-universal, I guess. But I'd think the library wouldn't be any use with out any parser. Perhaps we should pick a default and make the others variants? I'll contact the authors/mailing list and see what they think.

Changed 12 years ago by hmatuschek@…

Attachment: Portfile.2 added

Updated Portfile for libsbml version 5.8

comment:4 Changed 12 years ago by hmatuschek@…

I have updated this Portfile to libsbml version 5.8. I also made libxml the only XML parser backend as it is the default for libsbml anyway. Additionally I made the python-binding optional as a variant.

comment:5 Changed 12 years ago by mf2k (Frank Schima)

The python variant needs to modified to specify and use a specific version of Macports python. You should at least add one for python27, but adding one for all supported pythons would be best. See the inkscape port, among many others, for an example.

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

Resolution: fixed
Status: assignedclosed

Sorry this ticket has sat here for so long. I've committed the port in r104141 with these changes:

  • removed python support; please file a new ticket to add python support, considering Frank's advice about offering variants for different versions of python
  • added zlib dependency and configure args for the zlib and bzip2 dependencies just like you had added a configure arg for the libxml2 dependency
  • indicated the license
  • enabled parallel building since it seems to be fine with this version
  • used newer checksum types
  • rewrote sourceforge master_sites to avoid redirects
  • fixed livecheck

comment:7 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: hmatuschek@… added

@hmatuschek, please see my remarks in the ticket.

Changed 12 years ago by hmatuschek@…

Attachment: Portfile.3 added

Added python variants for version 2.6-3.3

comment:8 in reply to:  7 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to hmatuschek@…:

Added python variants for version 2.6-3.3

Sorry again that I didn't notice your attachment until now. Trac does not send email notifications about attachments. If you attach a file to a ticket, be sure to also add a regular ticket comment so that a notification is sent.

I have committed your changes in r106680; I adjusted the whitespace to conform to the modeline. In the future please file new tickets for new changes, and attach a unified diff of your changes, not a complete new portfile. Thanks.

Note: See TracTickets for help on using tickets.