Bug 199689

Summary: New port: www/rubygem-mimemagic a library to detect the mime type of a file by extension or by content
Product: Ports & Packages Reporter: Michael Fausten <ports>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Only Me CC: ports
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 199691    
Attachments:
Description Flags
rubygem-mimemagic
none
[New port] rubygem-mimemagic none

Description Michael Fausten 2015-04-25 15:46:57 UTC
Created attachment 155981 [details]
rubygem-mimemagic

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 freebsd_triage 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 freebsd_triage 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 freebsd_triage 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

Log:
  - 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>

Changes:
  head/misc/Makefile
  head/misc/rubygem-mimemagic/
  head/misc/rubygem-mimemagic/Makefile
  head/misc/rubygem-mimemagic/distinfo
  head/misc/rubygem-mimemagic/pkg-descr
Comment 6 Po-Chuan Hsieh freebsd_committer freebsd_triage 2015-05-02 17:03:33 UTC
New port added. Thanks!