diff options
author | bland <bland@FreeBSD.org> | 2006-03-31 09:58:03 +0800 |
---|---|---|
committer | bland <bland@FreeBSD.org> | 2006-03-31 09:58:03 +0800 |
commit | 2444bf6dc670d8c4ab7665c0c372d09b78768065 (patch) | |
tree | 576fd7efcbd7cdddc086a99e140d75acb11d7b89 /multimedia/mmpython | |
parent | a4684357d133c0093f630363cfbb9f715be9f42a (diff) | |
download | freebsd-ports-gnome-2444bf6dc670d8c4ab7665c0c372d09b78768065.tar.gz freebsd-ports-gnome-2444bf6dc670d8c4ab7665c0c372d09b78768065.tar.zst freebsd-ports-gnome-2444bf6dc670d8c4ab7665c0c372d09b78768065.zip |
- Workaround Pythons ioctl() wrapper deficency.
- Add CDS constant missed on FreeBSD.
- Catch up with lsdvd output format changes.
- Remove obsolete USE_REINPLACE.
Approved by: maintainer
Diffstat (limited to 'multimedia/mmpython')
-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]) + |