From owner-freebsd-ports Mon Mar 18 17:10:12 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1EF7237B419 for ; Mon, 18 Mar 2002 17:10:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2J1A1J68307; Mon, 18 Mar 2002 17:10:01 -0800 (PST) (envelope-from gnats) Received: from kornet.hanirc.org (alfenheim.net [211.216.53.129]) by hub.freebsd.org (Postfix) with ESMTP id E685737B400 for ; Mon, 18 Mar 2002 17:02:01 -0800 (PST) Received: (from perky@localhost) by kornet.hanirc.org (8.11.6/8.11.5) id g2J120h87717; Tue, 19 Mar 2002 10:02:00 +0900 (KST) (envelope-from perky) Message-Id: <200203190102.g2J120h87717@kornet.hanirc.org> Date: Tue, 19 Mar 2002 10:02:00 +0900 (KST) From: Hye-Shik Chang Reply-To: Hye-Shik Chang To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/36067: New port: audio/py-xmms Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 36067 >Category: ports >Synopsis: New port: audio/py-xmms >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Mar 18 17:10:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Hye-Shik Chang >Release: FreeBSD 4.5-STABLE i386 >Organization: Yonsei University >Environment: System: FreeBSD kornet.hanirc.org 4.5-STABLE FreeBSD 4.5-STABLE #0: Mon Mar 18 17:23:59 KST 2002 root@kornet.hanirc.org:/home/src/sys/compile/HANIRC i386 >Description: New port for py-xmms, XMMS Remote Control Library for Python >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # py-xmms # py-xmms/Makefile # py-xmms/distinfo # py-xmms/pkg-comment # py-xmms/pkg-descr # py-xmms/pkg-plist # py-xmms/files # py-xmms/files/patch-setup.py # echo c - py-xmms mkdir -p py-xmms > /dev/null 2>&1 echo x - py-xmms/Makefile sed 's/^X//' >py-xmms/Makefile << 'END-of-py-xmms/Makefile' X# New ports collection makefile for: py-xmms X# Date created: 19 March 2002 X# Whom: Hye-Shik Chang X# X# $FreeBSD$ X# X XPORTNAME= xmms XPORTVERSION= 1.02 XCATEGORIES= audio python XMASTER_SITES= http://www.via.ecp.fr/~flo/2002/PyXMMS/dist/ \ X http://www3.kr.freebsd.org/~perky/distfiles/ XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} XDISTNAME= PyXMMS-${PORTVERSION} X XMAINTAINER= perky@fallin.lv X XBUILD_DEPENDS= ${XMMS_CONFIG}:${PORTSDIR}/audio/xmms XLIB_DEPENDS= xmms.3:${PORTSDIR}/audio/xmms X XUSE_PYTHON= yes XUSE_GLIB= yes XPLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} XXMMS_CONFIG?= ${X11BASE}/bin/xmms-config XMAKE_ENV= GLIB_CONFIG="${GLIB_CONFIG}" XMMS_CONFIG="${XMMS_CONFIG}" XSETUP_CMD= cd ${WRKSRC} && ${MAKE_ENV} ${PYTHON_CMD} setup.py X Xdo-build: X ${SETUP_CMD} build X Xdo-install: X ${SETUP_CMD} install -c -O1 --prefix=${PREFIX} X X.include END-of-py-xmms/Makefile echo x - py-xmms/distinfo sed 's/^X//' >py-xmms/distinfo << 'END-of-py-xmms/distinfo' XMD5 (PyXMMS-1.02.tar.gz) = 9f9ed8afc0583446c8b3440457fabbb3 END-of-py-xmms/distinfo echo x - py-xmms/pkg-comment sed 's/^X//' >py-xmms/pkg-comment << 'END-of-py-xmms/pkg-comment' XXMMS Remote Control Library for Python END-of-py-xmms/pkg-comment echo x - py-xmms/pkg-descr sed 's/^X//' >py-xmms/pkg-descr << 'END-of-py-xmms/pkg-descr' XPyXMMS is a set of Python bindings for the xmms_remote* functions Xof the libxmms library, plus some higher-level functions. In other Xwords, it is a set of functions callable from Python code that can Xbe used to control XMMS, a free multimedia (audio and video) player Xfor X-Window. X XWWW: http://www.via.ecp.fr/~flo/index.en.html#PyXMMS_and_PyXMMS-remote END-of-py-xmms/pkg-descr echo x - py-xmms/pkg-plist sed 's/^X//' >py-xmms/pkg-plist << 'END-of-py-xmms/pkg-plist' Xlib/%%PYTHON_VERSION%%/site-packages/_xmms.so Xlib/%%PYTHON_VERSION%%/site-packages/xmms.py Xlib/%%PYTHON_VERSION%%/site-packages/xmms.pyc Xlib/%%PYTHON_VERSION%%/site-packages/xmms.pyo END-of-py-xmms/pkg-plist echo c - py-xmms/files mkdir -p py-xmms/files > /dev/null 2>&1 echo x - py-xmms/files/patch-setup.py sed 's/^X//' >py-xmms/files/patch-setup.py << 'END-of-py-xmms/files/patch-setup.py' X--- setup.py.orig Mon Mar 18 01:08:13 2002 X+++ setup.py Tue Mar 19 09:42:54 2002 X@@ -34,9 +34,12 @@ X # end of the gcc command, which is useless in this case. So, I use X # "include_dirs" instead. X X+import os, re X+ X PACKAGE = "PyXMMS" X VERSION = "1.02" X-GLIB_CONFIG = "glib-config" X+GLIB_CONFIG = os.environ['GLIB_CONFIG'] X+XMMS_CONFIG = os.environ['XMMS_CONFIG'] X X def main(): X glib_opts = {} X@@ -51,6 +54,9 @@ X # Suppress the -I in each -Idir output by glib-config --cflags (ugly) X glib_include_dirs = map(lambda s: s[2:], X string.split(glib_opts["cflags"], ' ')) X+ X+ XMMSINCDIR = re.findall('-I([^ ]+)', os.popen(XMMS_CONFIG+" --cflags").read()) X+ XMMSLIBDIR = re.findall('-L([^ ]+)', os.popen(XMMS_CONFIG+" --libs").read()) X X setup(name=PACKAGE, X version=VERSION, X@@ -69,8 +75,9 @@ X keywords=["xmms"], X py_modules=["xmms"], X ext_modules=[Extension("_xmms", ["_xmmsmodule.c"], X- include_dirs=glib_include_dirs, X+ include_dirs=glib_include_dirs+XMMSINCDIR, X libraries=["xmms"], X+ library_dirs=XMMSLIBDIR, X extra_link_args=[glib_opts["libs"]])]) X X if __name__ == "__main__": main() END-of-py-xmms/files/patch-setup.py exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message