[38396] trunk/dports/python

jmr at macports.org jmr at macports.org
Fri Jul 18 07:07:57 PDT 2008


Revision: 38396
          http://trac.macosforge.org/projects/macports/changeset/38396
Author:   jmr at macports.org
Date:     2008-07-18 07:07:56 -0700 (Fri, 18 Jul 2008)
Log Message:
-----------
New port: py25-id3lib (#14745)

Added Paths:
-----------
    trunk/dports/python/py25-id3lib/
    trunk/dports/python/py25-id3lib/Portfile
    trunk/dports/python/py25-id3lib/files/
    trunk/dports/python/py25-id3lib/files/patch-pyid3lib.py.diff
    trunk/dports/python/py25-id3lib/files/patch-setup.py.diff

Added: trunk/dports/python/py25-id3lib/Portfile
===================================================================
--- trunk/dports/python/py25-id3lib/Portfile	                        (rev 0)
+++ trunk/dports/python/py25-id3lib/Portfile	2008-07-18 14:07:56 UTC (rev 38396)
@@ -0,0 +1,23 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup python25 1.0
+
+name			py25-id3lib
+version			0.5.1
+categories		python audio
+platforms		darwin
+maintainers		maubi.net:waterson
+description		Python module for reading and writing id3v2 tags
+long_description	${description}
+
+homepage		http://pyid3lib.sourceforge.net/
+master_sites		sourceforge:pyid3lib
+distname		pyid3lib-${version}
+checksums		md5 5fd37a7dda7c540f665ca5d428a28f5e
+
+
+depends_lib-append	port:id3lib port:zlib
+
+patchfiles		patch-setup.py.diff patch-pyid3lib.py.diff


Property changes on: trunk/dports/python/py25-id3lib/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/python/py25-id3lib/files/patch-pyid3lib.py.diff
===================================================================
--- trunk/dports/python/py25-id3lib/files/patch-pyid3lib.py.diff	                        (rev 0)
+++ trunk/dports/python/py25-id3lib/files/patch-pyid3lib.py.diff	2008-07-18 14:07:56 UTC (rev 38396)
@@ -0,0 +1,30 @@
+--- pyid3lib.cc~	2003-02-16 15:50:20.000000000 -0800
++++ pyid3lib.cc	2008-03-21 14:27:32.000000000 -0700
+@@ -80,13 +80,13 @@
+ 
+ 
+ static PySequenceMethods tag_as_sequence = {
+-    (inquiry)id3_length,
++    (lenfunc)id3_length,
+     NULL,
+     NULL,
+-    (intargfunc)id3_item,
+-    (intintargfunc)id3_slice,
+-    (intobjargproc)id3_ass_item,
+-    (intintobjargproc)id3_ass_slice,
++    (ssizeargfunc)id3_item,
++    (ssizessizeargfunc)id3_slice,
++    (ssizeobjargproc)id3_ass_item,
++    (ssizessizeobjargproc)id3_ass_slice,
+     (objobjproc)id3_contains,
+     NULL,
+     NULL,
+@@ -824,7 +824,7 @@
+ static ID3_Frame* frame_from_dict( ID3_FrameID fid, PyObject* dict )
+ {
+     char* data;
+-    int size;
++    Py_ssize_t size;
+     
+     ID3_Field* field;
+     ID3_FieldID flid;

Added: trunk/dports/python/py25-id3lib/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py25-id3lib/files/patch-setup.py.diff	                        (rev 0)
+++ trunk/dports/python/py25-id3lib/files/patch-setup.py.diff	2008-07-18 14:07:56 UTC (rev 38396)
@@ -0,0 +1,13 @@
+--- setup.py	2003-02-16 15:48:01.000000000 -0800
++++ new/setup.py	2007-02-11 20:22:02.000000000 -0800
+@@ -10,7 +10,9 @@
+ 
+        ext_modules = [Extension( 'pyid3lib',
+                                  ['pyid3lib.cc'],
+-                                 libraries=['stdc++','id3','z'] )]
++                                 libraries=['stdc++','id3','z'],
++                                 include_dirs = [ "/opt/local/include/" ],
++                                 library_dirs=[ "/opt/local/lib/" ],  )]
+        )
+ 
+        
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080718/a7df2e41/attachment.html 


More information about the macports-changes mailing list