Opened 11 years ago

Closed 11 years ago

#39616 closed submission (fixed)

Submission chemical-mime-data

Reported by: c.herbig@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: chemical-mime-data

Description

Provides MIME filetype information for chemical data files. It will also be needed for gnome-chemistry-utils.

Attachments (3)

Portfile (1.1 KB) - added by c.herbig@… 11 years ago.
Portfile.2 (1.5 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.
ryandesign's revised portfile
Portfile.3 (1.5 KB) - added by c.herbig@… 11 years ago.

Download all attachments as: .zip

Change History (13)

Changed 11 years ago by c.herbig@…

Attachment: Portfile added

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

Keywords: scienc added; science removed
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

Thanks.

comment:2 in reply to:  1 Changed 11 years ago by c.herbig@…

Replying to ryandesign@…:

Thanks.

Sorry, I jumped the gun, this already has build errors... I forgot what I did to fix it before... It's complaining about librsvg, and I did something before I tried to tidy it up for submission that I must have accidentally erased.

Last edited 11 years ago by c.herbig@… (previous) (diff)

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

Keywords: gnome scienc removed

I'm attaching a revised Portfile to fix the homepage, master_sites, adjust the formatting, and add "supported_archs noarch" because it does not install any architecture-specific files.

Because the port is noarch, it does not link with any libraries, so it should not have any library dependencies. Are the listed library dependencies needed at build time, runtime or both?

Activation fails:

Error: org.macports.activate for port chemical-mime-data returned: Image error: /opt/local/share/mime/XMLnamespaces already exists and does not belong to a registered port.  Unable to activate port chemical-mime-data. Use 'port -f activate chemical-mime-data' to force the activation.

In fact there are a dozen files it installs that are already on my system as a result of other installations. I added a post-destroot block to delete them but perhaps a post-activate step is required to update those files somehow.

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: Portfile.2 added

ryandesign's revised portfile

comment:4 in reply to:  3 Changed 11 years ago by c.herbig@…

Replying to ryandesign@…:

I'm attaching a revised Portfile to fix the homepage, master_sites, adjust the formatting, and add "supported_archs noarch" because it does not install any architecture-specific files.

Because the port is noarch, it does not link with any libraries, so it should not have any library dependencies. Are the listed library dependencies needed at build time, runtime or both?

Activation fails:

Error: org.macports.activate for port chemical-mime-data returned: Image error: /opt/local/share/mime/XMLnamespaces already exists and does not belong to a registered port.  Unable to activate port chemical-mime-data. Use 'port -f activate chemical-mime-data' to force the activation.

In fact there are a dozen files it installs that are already on my system as a result of other installations. I added a post-destroot block to delete them but perhaps a post-activate step is required to update those files somehow.

I'm looking through the configure script to see if I can figure this out again. I'm still getting the following error:

:info:configure 
:info:configure checking for convert... no
:info:configure checking for rsvg... no
:info:configure configure: error: Cannot find rsvg (librsvg binary) or convert $
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_sly_mac$
:info:configure Exit code: 1

... and now I remember I fixed it by just caving and installing imagemagick. There is another option:

--with-gnome-mime[=PATH]
                          enable, disable or override the installation
                          directory of the old GNOME 2.4 MIME support files
                          [default=$datadir/mime-info]

... that might be key to it. I'll try it.

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

Oh right I forgot to mention that. I noticed it was detecting ImageMagick and wanted to ask if we needed to add that dependency.

comment:6 in reply to:  5 ; Changed 11 years ago by c.herbig@…

Replying to ryandesign@…:

Oh right I forgot to mention that. I noticed it was detecting ImageMagick and wanted to ask if we needed to add that dependency.

In the config it says it can use either librsvg or Imagemagick. I can't figure out why it can't find the librsvg dependency, so perhaps for now it would be better to just use imagemagick...

comment:7 in reply to:  6 ; Changed 11 years ago by c.herbig@…

Replying to c.herbig@…:

Replying to ryandesign@…:

Oh right I forgot to mention that. I noticed it was detecting ImageMagick and wanted to ask if we needed to add that dependency.

In the config it says it can use either librsvg or Imagemagick. I can't figure out why it can't find the librsvg dependency, so perhaps for now it would be better to just use imagemagick...

I was hoping to get away with the fewest extra dependencies...

comment:8 in reply to:  7 Changed 11 years ago by c.herbig@…

Replying to c.herbig@…:

Replying to c.herbig@…:

Replying to ryandesign@…:

Oh right I forgot to mention that. I noticed it was detecting ImageMagick and wanted to ask if we needed to add that dependency.

In the config it says it can use either librsvg or Imagemagick. I can't figure out why it can't find the librsvg dependency, so perhaps for now it would be better to just use imagemagick...

I was hoping to get away with the fewest extra dependencies...

I looked in the Fedora change log, and they said this:

* 2012-07-22 Julian Sikorski <belegdol@fedoraproject.org> - 0.1.94-11
- Switched from librsvg2 to ImageMagick since rsvg binary is no more

So, yes, it appears that it needs imagemagick instead of librsvg.

comment:9 Changed 11 years ago by c.herbig@…

It seems that this is the best port file then for now, unless somebody can figure out why it wants to install duplicate files, and if there is a way to tell it that it doesn't have to. It is the same as ryandesign's portfile.2, but with librsvg changed to imagemagick.

Changed 11 years ago by c.herbig@…

Attachment: Portfile.3 added

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

Resolution: fixed
Status: assignedclosed

Added in r107593. I fixed the capitalization of the ImageMagick dependency, and added a patchfile to fix the non-POSIX usage of echo -n in the configure script.

Note: See TracTickets for help on using tickets.