diff -ruN py-xmms.orig/Makefile py-xmms/Makefile --- py-xmms.orig/Makefile Tue Apr 30 03:07:07 2002 +++ py-xmms/Makefile Sat May 4 23:59:21 2002 @@ -6,12 +6,12 @@ # PORTNAME= xmms -PORTVERSION= 1.02 +PORTVERSION= 1.03 CATEGORIES= audio python MASTER_SITES= http://www.via.ecp.fr/~flo/2002/PyXMMS/dist/ \ http://www3.kr.freebsd.org/~perky/distfiles/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -DISTNAME= PyXMMS-${PORTVERSION} +DISTNAME= pyxmms-${PORTVERSION} MAINTAINER= perky@fallin.lv diff -ruN py-xmms.orig/distinfo py-xmms/distinfo --- py-xmms.orig/distinfo Sat Mar 23 17:55:37 2002 +++ py-xmms/distinfo Sat May 4 23:59:36 2002 @@ -1 +1 @@ -MD5 (PyXMMS-1.02.tar.gz) = 9f9ed8afc0583446c8b3440457fabbb3 +MD5 (pyxmms-1.03.tar.gz) = 143fc68c84e505d2d3997e25b730bafa diff -ruN py-xmms.orig/files/patch-setup.py py-xmms/files/patch-setup.py --- py-xmms.orig/files/patch-setup.py Sat Mar 23 17:55:39 2002 +++ py-xmms/files/patch-setup.py Sun May 5 00:02:49 2002 @@ -1,37 +1,42 @@ ---- setup.py.orig Mon Mar 18 01:08:13 2002 -+++ setup.py Tue Mar 19 09:42:54 2002 -@@ -34,9 +34,12 @@ - # end of the gcc command, which is useless in this case. So, I use - # "include_dirs" instead. +--- setup.py.orig Sun Apr 7 22:52:01 2002 ++++ setup.py Sun May 5 00:02:33 2002 +@@ -20,7 +20,7 @@ + # Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + # MA 02111-1307, USA. -+import os, re -+ - PACKAGE = "PyXMMS" - VERSION = "1.02" +-import os, string, sys ++import os, string, sys, re + from distutils.core import setup, Extension + + # Notes: +@@ -36,7 +36,8 @@ + + PACKAGE = "pyxmms" + VERSION = "1.03" -GLIB_CONFIG = "glib-config" +GLIB_CONFIG = os.environ['GLIB_CONFIG'] +XMMS_CONFIG = os.environ['XMMS_CONFIG'] def main(): glib_opts = {} -@@ -51,6 +54,9 @@ - # Suppress the -I in each -Idir output by glib-config --cflags (ugly) +@@ -52,6 +53,9 @@ glib_include_dirs = map(lambda s: s[2:], string.split(glib_opts["cflags"], ' ')) -+ + + 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, -@@ -69,8 +75,9 @@ + description="A Python interface to XMMS", +@@ -69,8 +73,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, ++ libraries=["xmms"], library_dirs=XMMSLIBDIR, extra_link_args=[glib_opts["libs"]])]) if __name__ == "__main__": main()