[32568] trunk/dports/perl
ricci at macports.org
ricci at macports.org
Mon Jan 7 18:38:49 PST 2008
Revision: 32568
http://trac.macosforge.org/projects/macports/changeset/32568
Author: ricci at macports.org
Date: 2008-01-07 18:38:48 -0800 (Mon, 07 Jan 2008)
Log Message:
-----------
new port
Added Paths:
-----------
trunk/dports/perl/p5-file-mimeinfo/
trunk/dports/perl/p5-file-mimeinfo/Portfile
trunk/dports/perl/p5-file-mimeinfo/files/
trunk/dports/perl/p5-file-mimeinfo/files/patch-lib-File-MimeInfo.pm.diff
Added: trunk/dports/perl/p5-file-mimeinfo/Portfile
===================================================================
--- trunk/dports/perl/p5-file-mimeinfo/Portfile (rev 0)
+++ trunk/dports/perl/p5-file-mimeinfo/Portfile 2008-01-08 02:38:48 UTC (rev 32568)
@@ -0,0 +1,26 @@
+# $Id$
+
+PortSystem 1.0
+
+PortGroup perl5 1.0
+
+version 0.14
+perl5.setup File-MimeInfo ${version}
+revision 0
+maintainers ricci
+description This module can be used to determine the mime type of a file. \
+ It tries to implement the freedesktop specification for a shared MIME database.
+long_description ${description}
+
+checksums md5 b4cb0ea1a30730c24747199784d90968 \
+ sha1 5a375be72c3b9107cdb4ada65b3973bb33e4f474
+platforms darwin
+
+depends_lib port:shared-mime-info
+
+
+patchfiles patch-lib-File-MimeInfo.pm.diff
+post-patch {
+ reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/lib/File/MimeInfo.pm
+}
+
Property changes on: trunk/dports/perl/p5-file-mimeinfo/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/perl/p5-file-mimeinfo/files/patch-lib-File-MimeInfo.pm.diff
===================================================================
--- trunk/dports/perl/p5-file-mimeinfo/files/patch-lib-File-MimeInfo.pm.diff (rev 0)
+++ trunk/dports/perl/p5-file-mimeinfo/files/patch-lib-File-MimeInfo.pm.diff 2008-01-08 02:38:48 UTC (rev 32568)
@@ -0,0 +1,11 @@
+--- lib/File/MimeInfo.pm.orig 2008-01-07 16:15:31.000000000 -0800
++++ lib/File/MimeInfo.pm 2008-01-07 16:18:02.000000000 -0800
+@@ -23,6 +23,8 @@
+ # $LANG can be used to set a default language for the comments
+ # @DIRS can be used to specify custom database directories
+
++## setup @DIRS to point to the DB that MacPorts installed, thus users don't have to set ENV vars and such.
++push @DIRS, '__PREFIX__/share/mime';
+ rehash(); # initialise data
+
+ sub new { bless \$VERSION, shift } # what else is there to bless ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080107/a3dd260b/attachment.html
More information about the macports-changes
mailing list