summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrochner <drochner>2001-05-19 13:08:27 +0000
committerdrochner <drochner>2001-05-19 13:08:27 +0000
commit194f402b52ddd6a822c341c9f40a048b8f40b0ff (patch)
tree81e2826c652526bbbfebbc2cc3a15c64c20ac56e
parentac4e73630600fe7d34bfae3b837f7bd06d0b3a2c (diff)
downloadpkgsrc-194f402b52ddd6a822c341c9f40a048b8f40b0ff.tar.gz
initial import of py-cddb-1.3:
python module to access the CDDB online database
-rw-r--r--audio/py-cddb/Makefile17
-rw-r--r--audio/py-cddb/distinfo5
-rw-r--r--audio/py-cddb/patches/patch-aa58
-rw-r--r--audio/py-cddb/pkg/DESCR10
-rw-r--r--audio/py-cddb/pkg/PLIST6
5 files changed, 96 insertions, 0 deletions
diff --git a/audio/py-cddb/Makefile b/audio/py-cddb/Makefile
new file mode 100644
index 00000000000..ae5dfb00b99
--- /dev/null
+++ b/audio/py-cddb/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/05/19 13:08:27 drochner Exp $
+#
+
+DISTNAME= CDDB-1.3
+PKGNAME= py-cddb-1.3
+CATEGORIES= audio
+MASTER_SITES= http://ftp1.sourceforge.net/cddb-py/
+
+MAINTAINER= drochner@netbsd.org
+HOMEPAGE= http://cddb-py.sourceforge.net/
+COMMENT= python module to access the CDDB online database
+
+USE_PYTHON= yes
+PYDISTUTILSPKG= yes
+PYBINMODULE= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/py-cddb/distinfo b/audio/py-cddb/distinfo
new file mode 100644
index 00000000000..78ad925753f
--- /dev/null
+++ b/audio/py-cddb/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/05/19 13:08:27 drochner Exp $
+
+SHA1 (CDDB-1.3.tar.gz) = 882f9e115a5bc31d646e6e0d3f24c4e2ee524ae4
+Size (CDDB-1.3.tar.gz) = 38399 bytes
+SHA1 (patch-aa) = 76eb143ab303a413a163076912c7596113060178
diff --git a/audio/py-cddb/patches/patch-aa b/audio/py-cddb/patches/patch-aa
new file mode 100644
index 00000000000..b1a8352800c
--- /dev/null
+++ b/audio/py-cddb/patches/patch-aa
@@ -0,0 +1,58 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/05/19 13:08:27 drochner Exp $
+
+--- unix/cdrommodule.c.orig Sat Mar 10 23:34:03 2001
++++ unix/cdrommodule.c Mon Mar 12 14:28:16 2001
+@@ -28,7 +28,7 @@
+ #include <linux/cdrom.h>
+ #endif
+
+-#if defined(sun) || defined(__FreeBSD__) || defined(__OpenBSD__)
++#if defined(sun) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+ #include <sys/cdio.h>
+ #endif
+
+@@ -54,7 +54,7 @@
+ #define CDDB_DEFAULT_CDROM_DEVICE "/dev/cdrom"
+ #define CDDB_DEFAULT_CDROM_FLAGS 0
+
+-#elif defined(__OpenBSD__)
++#elif defined(__OpenBSD__) || defined(__NetBSD__)
+
+ #define CDDB_TOC_HEADER_STRUCT ioc_toc_header
+ #define CDDB_STARTING_TRACK_FIELD starting_track
+@@ -123,7 +123,7 @@
+ int cdrom_fd;
+ unsigned char track;
+
+-#if defined(__OpenBSD__)
++#if defined(__OpenBSD__) || defined(__NetBSD__)
+ struct cd_toc_entry data;
+ #endif
+
+@@ -135,7 +135,7 @@
+ entry.CDDB_TRACK_FIELD = track;
+ entry.CDDB_FORMAT_FIELD = CDDB_MSF_FORMAT;
+
+-#if defined(__OpenBSD__)
++#if defined(__OpenBSD__) || defined(__NetBSD__)
+ entry.data = &data;
+ entry.data_len = sizeof(data);
+ #endif
+@@ -156,7 +156,7 @@
+ PyObject *cdrom_fileobj;
+ int cdrom_fd;
+
+-#if defined(__OpenBSD__)
++#if defined(__OpenBSD__) || defined(__NetBSD__)
+ struct cd_toc_entry data;
+ #endif
+
+@@ -168,7 +168,7 @@
+ entry.CDDB_TRACK_FIELD = CDDB_CDROM_LEADOUT;
+ entry.CDDB_FORMAT_FIELD = CDDB_MSF_FORMAT;
+
+-#if defined(__OpenBSD__)
++#if defined(__OpenBSD__) || defined(__NetBSD__)
+ entry.data = &data;
+ entry.data_len = sizeof(data);
+ #endif
diff --git a/audio/py-cddb/pkg/DESCR b/audio/py-cddb/pkg/DESCR
new file mode 100644
index 00000000000..c5cf1aa2721
--- /dev/null
+++ b/audio/py-cddb/pkg/DESCR
@@ -0,0 +1,10 @@
+The dynamic duo of CDDB.py and DiscID.py, along with their side-kick C
+module cdrommodule.so, provide an easy way for Python programs to
+fetch information on audio CDs from CDDB (http://www.cddb.com/) -- a
+very large online database of track listings and other information on
+audio CDs.
+Note that for CDDB.py version 1.3 and later, the default CDDB servers
+have changed to FreeDB, as GraceNote, the owners of the
+previously-free CDDB archives, have become unreasonably restrictive
+with access to their database. See http://www.freedb.org/ for more
+information on FreeDB.
diff --git a/audio/py-cddb/pkg/PLIST b/audio/py-cddb/pkg/PLIST
new file mode 100644
index 00000000000..badf3f5c849
--- /dev/null
+++ b/audio/py-cddb/pkg/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/05/19 13:08:27 drochner Exp $
+PYSITELIB/CDDB.py
+PYSITELIB/CDDB.pyc
+PYSITELIB/DiscID.py
+PYSITELIB/DiscID.pyc
+PYSITELIB/cdrom.so