ports/68025: UPDATE PORT: multimedia/mmpython

Lewis Thompson purple at lewiz.net
Thu Jun 17 14:25:40 UTC 2004


I think I messed that patch up.  Here's a proper one ;)

-lewiz.

-- 
I was so much older then, I'm younger than that now.  --Bob Dylan, 1964.
------------------------------------------------------------------------
-| msn:purple at lewiz.net | jabber:lewiz at jabber.org | url:www.lewiz.org |-
-------------- next part --------------
diff -ruN mmpython.orig/Makefile mmpython/Makefile
--- mmpython.orig/Makefile	Thu Jun 10 20:11:48 2004
+++ mmpython/Makefile	Thu Jun 17 15:19:59 2004
@@ -7,6 +7,7 @@
 
 PORTNAME=	mmpython
 PORTVERSION=	0.4.3
+PORTREVISION=	1
 CATEGORIES=	multimedia python
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -27,5 +28,9 @@
 #USE_BZIP2=	yes
 USE_PYTHON=	yes
 USE_PYDISTUTILS=yes
+USE_REINPLACE=	yes
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|gcc -ldvdread|gcc -L${LOCALBASE}/lib -ldvdread|' ${WRKSRC}/setup.py
 
 .include <bsd.port.mk>
diff -ruN mmpython.orig/files/patch-disc_discinfo.py mmpython/files/patch-disc_discinfo.py
--- mmpython.orig/files/patch-disc_discinfo.py	Thu Jun 10 20:04:24 2004
+++ mmpython/files/patch-disc_discinfo.py	Thu Jun 17 15:19:59 2004
@@ -1,9 +1,17 @@
-
-$FreeBSD: ports/multimedia/mmpython/files/patch-disc_discinfo.py,v 1.1 2004/06/10 19:04:24 krion Exp $
-
---- disc/discinfo.py.orig	Thu Jun 10 20:51:51 2004
-+++ disc/discinfo.py	Thu Jun 10 20:52:32 2004
-@@ -223,22 +223,10 @@
+--- disc/discinfo.py	Sun Feb  8 17:44:05 2004
++++ disc/discinfo.py	Thu Jun 17 00:04:48 2004
+@@ -191,7 +191,9 @@
+     
+     fd = open(device, 'rb')
+     try:
+-    	fd.seek(0x0000832d)
++	fd.seek(32768) # 2048 multiple boundary for FreeBSD
++	# FreeBSD doesn't return IOError unless we try and read:
++	fd.read(1)
+     except IOError:
+     	fd.close()
+ 	return 3
+@@ -223,22 +225,12 @@
      else:
          f = open(device,'rb')
  
@@ -23,6 +31,8 @@
 -            id = id[813:829]
 -        else:
 -            label = f.read(32)
++        # FreeBSD can only seek to 2048 multiple boundaries.
++        # Below works on Linux and FreeBSD:
 +        f.seek(32768)
 +        id = f.read(829)
 +        label = id[40:72]
diff -ruN mmpython.orig/files/patch-disc_dvdinfo.py mmpython/files/patch-disc_dvdinfo.py
--- mmpython.orig/files/patch-disc_dvdinfo.py	Thu Jun 10 20:04:24 2004
+++ mmpython/files/patch-disc_dvdinfo.py	Thu Jun 17 15:19:59 2004
@@ -9,8 +9,8 @@
          f = open(device,'rb')
 -        f.seek(32808, 0)
 -        buffer = f.read(50000)
-+        f.seek(32768, 0)
-+        buffer = f.read(50040)
++        f.seek(32768, 0) # FreeBSD requires seeking to a 2048 multiple boundary.
++        buffer = f.read(50040) # Read 40 more to compensate for above seek.
  
          if buffer.find('UDF') == -1:
              f.close()
@@ -20,8 +20,8 @@
          # brute force reading of the device to find out if it is a DVD
 -        f.seek(32808, 0)
 -        buffer = f.read(50000)
-+        f.seek(32768, 0)
-+        buffer = f.read(50040)
++        f.seek(32768, 0) # FreeBSD requires seeking to a 2048 multiple boundary.
++        buffer = f.read(50040) # Read 40 more to compensate for above seek.
  
          if buffer.find('UDF') == -1:
              return 0
diff -ruN mmpython.orig/files/patch-disc_lsdvd.py mmpython/files/patch-disc_lsdvd.py
--- mmpython.orig/files/patch-disc_lsdvd.py	Thu Jun 10 20:04:24 2004
+++ mmpython/files/patch-disc_lsdvd.py	Thu Jun 17 15:19:59 2004
@@ -9,8 +9,8 @@
          f = open(device,'rb')
 -        f.seek(32808, 0)
 -        buffer = f.read(50000)
-+        f.seek(32768, 0)
-+        buffer = f.read(50040)
++        f.seek(32768, 0) # FreeBSD requires seeking to a 2048 multiple boundary.
++        buffer = f.read(50040) # Read 40 more to compensate for above seek.
  
          if buffer.find('UDF') == -1:
              f.close()
diff -ruN mmpython.orig/files/patch-disc_vcdinfo.py mmpython/files/patch-disc_vcdinfo.py
--- mmpython.orig/files/patch-disc_vcdinfo.py	Thu Jun 10 20:04:24 2004
+++ mmpython/files/patch-disc_vcdinfo.py	Thu Jun 17 15:19:59 2004
@@ -10,9 +10,9 @@
 -        f.seek(32808, 0)
 -        buffer = f.read(50000)
 -        f.close()
-+	f.seek(32768, 0)
-+        buffer = f.read(50040)
-+	f.close()
++        f.seek(32768, 0) # FreeBSD requires seeking to a 2048 multiple boundary.
++        buffer = f.read(50040) # Read 40 more to compensate for above seek.
++        f.close()
  
          if buffer.find('SVCD') > 0 and buffer.find('TRACKS.SVD') > 0 and \
                 buffer.find('ENTRIES.SVD') > 0:
diff -ruN mmpython.orig/files/patch-video_vcdinfo.py mmpython/files/patch-video_vcdinfo.py
--- mmpython.orig/files/patch-video_vcdinfo.py	Thu Jun 10 20:04:24 2004
+++ mmpython/files/patch-video_vcdinfo.py	Thu Jun 17 15:21:24 2004
@@ -10,9 +10,9 @@
 -        f.seek(32808, 0)
 -        buffer = f.read(50000)
 -        f.close()
-+        f.seek(32768, 0)
-+        buffer = f.read(50040)
-+	f.close()
++        f.seek(32768, 0) # FreeBSD requires seeking to 2048 multiple boundary.
++        buffer = f.read(50040) # Read 40 more to compensate for above seek.)
++        f.close(
  
          if buffer.find('SVCD') > 0 and buffer.find('TRACKS.SVD') > 0 and \
                 buffer.find('ENTRIES.SVD') > 0:
diff -ruN mmpython.orig/pkg-plist mmpython/pkg-plist
--- mmpython.orig/pkg-plist	Thu Jun 10 15:16:10 2004
+++ mmpython/pkg-plist	Thu Jun 17 15:19:59 2004
@@ -66,6 +66,7 @@
 %%PYTHON_SITELIBDIR%%/mmpython/disc/dvdinfo.py
 %%PYTHON_SITELIBDIR%%/mmpython/disc/dvdinfo.pyc
 %%PYTHON_SITELIBDIR%%/mmpython/disc/dvdinfo.pyo
+%%PYTHON_SITELIBDIR%%/mmpython/disc/ifoparser.so
 %%PYTHON_SITELIBDIR%%/mmpython/disc/lsdvd.py
 %%PYTHON_SITELIBDIR%%/mmpython/disc/lsdvd.pyc
 %%PYTHON_SITELIBDIR%%/mmpython/disc/lsdvd.pyo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs/attachments/20040617/456c8a07/attachment.sig>


More information about the freebsd-ports-bugs mailing list