summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorPatrick Li <pat@FreeBSD.org>2002-05-04 17:24:29 +0000
committerPatrick Li <pat@FreeBSD.org>2002-05-04 17:24:29 +0000
commit857aafeab4950eeeba04f3c8e72d1d6afbe26b63 (patch)
treee6ed8c483ad67fa0a12c40291b614d67d5c92d1c /audio
parentupgrade to 0.1.9 (diff)
Update to 1.03
PR: 37752 Submitted by: maintainer
Diffstat (limited to 'audio')
-rw-r--r--audio/py-xmms/Makefile4
-rw-r--r--audio/py-xmms/distinfo2
-rw-r--r--audio/py-xmms/files/patch-setup.py37
3 files changed, 24 insertions, 19 deletions
diff --git a/audio/py-xmms/Makefile b/audio/py-xmms/Makefile
index 7fc3db69e5c8..bbfeb94eae99 100644
--- a/audio/py-xmms/Makefile
+++ b/audio/py-xmms/Makefile
@@ -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 --git a/audio/py-xmms/distinfo b/audio/py-xmms/distinfo
index 7b6acd475560..17ddedcaec72 100644
--- a/audio/py-xmms/distinfo
+++ b/audio/py-xmms/distinfo
@@ -1 +1 @@
-MD5 (PyXMMS-1.02.tar.gz) = 9f9ed8afc0583446c8b3440457fabbb3
+MD5 (pyxmms-1.03.tar.gz) = 143fc68c84e505d2d3997e25b730bafa
diff --git a/audio/py-xmms/files/patch-setup.py b/audio/py-xmms/files/patch-setup.py
index 9a090a909752..10454e70cf61 100644
--- a/audio/py-xmms/files/patch-setup.py
+++ b/audio/py-xmms/files/patch-setup.py
@@ -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()