aboutsummaryrefslogtreecommitdiff
path: root/audio/py-xmms
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-11-10 12:04:43 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-11-10 12:04:43 +0000
commite08725286c627c6d95610741207a800df9abc9eb (patch)
treeb6df792382f5b0e4aaf8b9b755fff919eada3e06 /audio/py-xmms
parent70aed6f7a4224fe453a22707a1bb07a9ccddb0a8 (diff)
downloadports-e08725286c627c6d95610741207a800df9abc9eb.tar.gz
ports-e08725286c627c6d95610741207a800df9abc9eb.zip
Notes
Diffstat (limited to 'audio/py-xmms')
-rw-r--r--audio/py-xmms/Makefile5
-rw-r--r--audio/py-xmms/distinfo2
-rw-r--r--audio/py-xmms/files/patch-setup.py68
-rw-r--r--audio/py-xmms/pkg-plist19
4 files changed, 58 insertions, 36 deletions
diff --git a/audio/py-xmms/Makefile b/audio/py-xmms/Makefile
index 6dbad123c561..6e1a81038a95 100644
--- a/audio/py-xmms/Makefile
+++ b/audio/py-xmms/Makefile
@@ -6,9 +6,9 @@
#
PORTNAME= xmms
-PORTVERSION= 1.07
+PORTVERSION= 2.00
CATEGORIES= audio python
-MASTER_SITES= http://www.via.ecp.fr/~flo/2002/PyXMMS/dist/
+MASTER_SITES= http://people.via.ecp.fr/~flo/2002/PyXMMS/dist/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pyxmms-${PORTVERSION}
@@ -20,6 +20,7 @@ LIB_DEPENDS= xmms.4:${PORTSDIR}/multimedia/xmms
USE_PYTHON= yes
USE_PYDISTUTILS= yes
+USE_BZIP2= yes
USE_GNOME= glib12
XMMS_CONFIG?= ${X11BASE}/bin/xmms-config
MAKE_ENV= GLIB_CONFIG="${GLIB_CONFIG}" XMMS_CONFIG="${XMMS_CONFIG}"
diff --git a/audio/py-xmms/distinfo b/audio/py-xmms/distinfo
index 35eab87bf689..561b89929191 100644
--- a/audio/py-xmms/distinfo
+++ b/audio/py-xmms/distinfo
@@ -1 +1 @@
-MD5 (pyxmms-1.07.tar.gz) = 388c9d194923fb38d0244431f5153431
+MD5 (pyxmms-2.00.tar.bz2) = 42540506b82381a48219f3e1cb90a049
diff --git a/audio/py-xmms/files/patch-setup.py b/audio/py-xmms/files/patch-setup.py
index 82b831232e50..779a41da0d69 100644
--- a/audio/py-xmms/files/patch-setup.py
+++ b/audio/py-xmms/files/patch-setup.py
@@ -1,17 +1,17 @@
---- setup.py.orig Sun May 12 22:37:06 2002
-+++ setup.py Sat May 18 23:03:58 2002
+--- setup.py.orig Sun Nov 9 12:15:24 2003
++++ setup.py Mon Nov 10 20:55:24 2003
@@ -20,7 +20,7 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
--import os, string, sys
-+import os, string, sys, re
+-import os, string, sys, distutils.dist
++import os, string, sys, re, distutils.dist
from distutils.core import setup, Extension
- # Notes:
-@@ -34,9 +34,21 @@
- # end of the gcc command, which is useless in this case. So, I use
- # "include_dirs" instead.
+ # Note:
+@@ -30,9 +30,21 @@
+ # run the Distutils from Python 2.1, you will get License: UNKNOWN. This
+ # problem does not appear with the versions included in Python 2.2 and 2.3.
+def patch4gcc3(fname):
+ instr = 0
@@ -21,35 +21,45 @@
+ instr = (instr+len(re.findall(r'(^")|([^\\]")', l))) % 2
+ print >>of, l[:-1] + ((not l.startswith('/*') and instr) and "\\n\\" or "")
+if 'patch' in sys.argv:
-+ patch4gcc3('_xmmsmodule.c')
++ patch4gcc3('src/_xmmscontrolmodule.c')
+ raise SystemExit
+
PACKAGE = "pyxmms"
- VERSION = "1.07"
+ VERSION = "2.00"
-GLIB_CONFIG = "glib-config"
+GLIB_CONFIG = os.environ['GLIB_CONFIG']
+XMMS_CONFIG = os.environ['XMMS_CONFIG']
- def main():
- glib_opts = {}
-@@ -52,6 +64,9 @@
- glib_include_dirs = map(lambda s: s[2:],
- string.split(glib_opts["cflags"], ' '))
+ def get_glib_config():
+@@ -70,13 +82,16 @@
+ def setup_args():
+ """Craft appropriate arguments for distutils.setup."""
+ (glib_include_dirs, glib_compile_args, glib_link_args) = get_glib_config()
++
+ XMMSINCDIR = re.findall('-I([^ ]+)', os.popen(XMMS_CONFIG+" --cflags").read())
+ XMMSLIBDIR = re.findall('-L([^ ]+)', os.popen(XMMS_CONFIG+" --libs").read())
-+
- setup(name=PACKAGE,
- version=VERSION,
- description="A Python interface to XMMS",
-@@ -69,8 +84,8 @@
- keywords=["xmms"],
- py_modules=["xmms"],
- ext_modules=[Extension("_xmms", ["_xmmsmodule.c"],
-- include_dirs=glib_include_dirs,
-- libraries=["xmms"],
-+ include_dirs=glib_include_dirs+XMMSINCDIR,
-+ libraries=["xmms"], library_dirs=XMMSLIBDIR,
- extra_link_args=[glib_opts["libs"]])])
+
+ # Modules built whatever the version of the running Python
+ ext_modules = [Extension("xmms._xmmscontrol",
+ ["src/_xmmscontrolmodule.c"],
+- include_dirs=glib_include_dirs,
++ include_dirs=glib_include_dirs+XMMSINCDIR,
+ extra_compile_args=glib_compile_args,
+- libraries=["xmms"],
++ libraries=["xmms"], library_dirs=XMMSLIBDIR,
+ extra_link_args=glib_link_args)]
+
+ if sys.hexversion < 0x02020000:
+@@ -92,9 +107,9 @@
+ # This module requires Python >= 2.2
+ ext_modules.append(Extension("xmms._xmmsconfig",
+ ["src/_xmmsconfigmodule.c"],
+- include_dirs=glib_include_dirs,
++ include_dirs=glib_include_dirs+XMMSINCDIR,
+ extra_compile_args=glib_compile_args,
+- libraries=["xmms"],
++ libraries=["xmms"], library_dirs=XMMSLIBDIR,
+ extra_link_args=glib_link_args))
- if __name__ == "__main__": main()
+ # Trove classifiers picked up from the list at
diff --git a/audio/py-xmms/pkg-plist b/audio/py-xmms/pkg-plist
index 9d05384fe85b..cabcd3049282 100644
--- a/audio/py-xmms/pkg-plist
+++ b/audio/py-xmms/pkg-plist
@@ -1,4 +1,15 @@
-%%PYTHON_SITELIBDIR%%/_xmms.so
-%%PYTHON_SITELIBDIR%%/xmms.py
-%%PYTHON_SITELIBDIR%%/xmms.pyc
-%%PYTHON_SITELIBDIR%%/xmms.pyo
+%%PYTHON_SITELIBDIR%%/xmms/__init__.py
+%%PYTHON_SITELIBDIR%%/xmms/__init__.pyc
+%%PYTHON_SITELIBDIR%%/xmms/__init__.pyo
+%%PYTHON_SITELIBDIR%%/xmms/_xmmsconfig.so
+%%PYTHON_SITELIBDIR%%/xmms/_xmmscontrol.so
+%%PYTHON_SITELIBDIR%%/xmms/common.py
+%%PYTHON_SITELIBDIR%%/xmms/common.pyc
+%%PYTHON_SITELIBDIR%%/xmms/common.pyo
+%%PYTHON_SITELIBDIR%%/xmms/config.py
+%%PYTHON_SITELIBDIR%%/xmms/config.pyc
+%%PYTHON_SITELIBDIR%%/xmms/config.pyo
+%%PYTHON_SITELIBDIR%%/xmms/control.py
+%%PYTHON_SITELIBDIR%%/xmms/control.pyc
+%%PYTHON_SITELIBDIR%%/xmms/control.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/xmms