diff options
-rw-r--r-- | multimedia/mmpython/Makefile | 2 | ||||
-rw-r--r-- | multimedia/mmpython/files/patch-disc__discinfo.py | 13 | ||||
-rw-r--r-- | multimedia/mmpython/files/patch-disc__lsdvd.py | 11 |
3 files changed, 25 insertions, 1 deletions
diff --git a/multimedia/mmpython/Makefile b/multimedia/mmpython/Makefile index ca1dcf47ba9b..9e1f5a4bf498 100644 --- a/multimedia/mmpython/Makefile +++ b/multimedia/mmpython/Makefile @@ -7,6 +7,7 @@ PORTNAME= mmpython PORTVERSION= 0.4.8 +PORTREVISION= 1 CATEGORIES= multimedia python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -20,7 +21,6 @@ RUN_DEPENDS= lsdvd:${PORTSDIR}/multimedia/lsdvd USE_PYTHON= yes USE_PYDISTUTILS=yes -USE_REINPLACE= yes post-patch: @${REINPLACE_CMD} \ diff --git a/multimedia/mmpython/files/patch-disc__discinfo.py b/multimedia/mmpython/files/patch-disc__discinfo.py new file mode 100644 index 000000000000..28c735567ab2 --- /dev/null +++ b/multimedia/mmpython/files/patch-disc__discinfo.py @@ -0,0 +1,13 @@ +--- disc/discinfo.py.orig Sun Feb 26 15:51:41 2006 ++++ disc/discinfo.py Sun Feb 26 15:51:44 2006 +@@ -139,8 +139,9 @@ + # doesn't work. Suppress that warning for Linux users, + # until a better solution can be found. + if os.uname()[0] == 'FreeBSD': +- CDIOREADTOCENTRYS = 0xc0086305L ++ CDIOREADTOCENTRYS = -1073192187 + CD_MSF_FORMAT = 2 ++ CDS_NO_DISC = 1 + + try: + fd = os.open(device, os.O_RDONLY | os.O_NONBLOCK) diff --git a/multimedia/mmpython/files/patch-disc__lsdvd.py b/multimedia/mmpython/files/patch-disc__lsdvd.py new file mode 100644 index 000000000000..c7ca9244e1db --- /dev/null +++ b/multimedia/mmpython/files/patch-disc__lsdvd.py @@ -0,0 +1,11 @@ +--- disc/lsdvd.py.orig Sun Feb 26 16:08:37 2006 ++++ disc/lsdvd.py Sun Feb 26 16:32:03 2006 +@@ -96,7 +96,7 @@ + self.mime = 'video/mpeg' + + l = data[3].split(':') +- self.length = (int(l[0])*60+int(l[1]))*60+int(l[2]) ++ self.length = (int(l[0])*60+int(l[1]))*60+float(l[2]) + self.trackno = int(data[1]) + self.chapters = int(data[5]) + |