Bug 199689 - New port: www/rubygem-mimemagic a library to detect the mime type of a file by extension or by content
Summary: New port: www/rubygem-mimemagic a library to detect the mime type of a file b...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
Depends on:
Blocks: 199691
  Show dependency treegraph
Reported: 2015-04-25 15:46 UTC by Michael Fausten
Modified: 2015-05-02 17:03 UTC (History)
1 user (show)

See Also:

rubygem-mimemagic (7.69 KB, application/octet-stream)
2015-04-25 15:46 UTC, Michael Fausten
no flags Details
[New port] rubygem-mimemagic (1.66 KB, text/plain)
2015-05-02 08:46 UTC, Michael Fausten
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Fausten 2015-04-25 15:46:57 UTC
Created attachment 155981 [details]

It uses the mime database provided by freedesktop.org (see http://freedesktop.org/wiki/Software/shared-mime-info/).

WWW: https://github.com/minad/mimemagic
Comment 1 Po-Chuan Hsieh freebsd_committer 2015-05-01 10:12:46 UTC
I noticed at least 3 problems in the Makefile, including MASTER_SITES, DISTNAME and AUTOMATIC_PLIST.
And we do not use pkg-plist in rubygem- ports.
Please reference other rubygem- ports to correct them. Thanks!
Comment 2 Michael Fausten 2015-05-02 08:46:37 UTC
Created attachment 156231 [details]
[New port] rubygem-mimemagic

Hi, sorry for the invalid first report. I corrected the port and added the new shar file.
Comment 3 Po-Chuan Hsieh freebsd_committer 2015-05-02 09:27:45 UTC
We have misc/gnome-mime-data, misc/rubygem-mime-types and misc/shared-mime-info already. I suggest to land this port in misc category instead of www category.
Comment 4 Michael Fausten 2015-05-02 09:30:25 UTC
Hi, sounds great to me.
Comment 5 commit-hook freebsd_committer 2015-05-02 16:55:20 UTC
A commit references this bug:

Author: sunpoet
Date: Sat May  2 16:55:08 UTC 2015
New revision: 385188
URL: https://svnweb.freebsd.org/changeset/ports/385188

  - Add rubygem-mimemagic 0.3.0

  MimeMagic is a library to detect the mime type of a file by extension or by
  content. It uses the mime database provided by freedesktop.org.

  WWW: https://github.com/minad/mimemagic

  PR:		199689
  Submitted by:	Michael Fausten <ports@michael-fausten.de>

Comment 6 Po-Chuan Hsieh freebsd_committer 2015-05-02 17:03:33 UTC
New port added. Thanks!