- update pms to 0.42

- add missing module
This commit is contained in:
jasper 2010-08-18 13:56:03 +00:00
parent a816d02390
commit ba25f40b56
4 changed files with 28 additions and 23 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.2 2009/10/16 22:16:44 edd Exp $
# $OpenBSD: Makefile,v 1.3 2010/08/18 13:56:03 jasper Exp $
COMMENT= curses based frontend for mpd
DISTNAME= pms-0.41
DISTNAME= pms-0.42
EXTRACT_SUFX = .tar.bz2
CATEGORIES= audio
@ -14,10 +14,11 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m ncurses stdc++
LIB_DEPENDS= glib-2.0::devel/glib2
WANTLIB= c glib-2.0 m ncurses stdc++
LIB_DEPENDS= ::devel/glib2
MODULES= textproc/intltool devel/gettext
MODULES= devel/gettext \
textproc/intltool
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pms/}

View File

@ -1,5 +1,5 @@
MD5 (pms-0.41.tar.bz2) = bWcF82/OiYpOVRFJ73NGQQ==
RMD160 (pms-0.41.tar.bz2) = H5WUdguGLtN/ZepmijjIXeQtH74=
SHA1 (pms-0.41.tar.bz2) = s1MxSoEOFtwaCeD8gCuesCUDLNY=
SHA256 (pms-0.41.tar.bz2) = j933+1PDPLwXU6hjgVia6YPY4KIdpo5UL5L3dxOQc60=
SIZE (pms-0.41.tar.bz2) = 182193
MD5 (pms-0.42.tar.bz2) = jr1lxebjPNDKeYF6XoI4BQ==
RMD160 (pms-0.42.tar.bz2) = HvYmRtVmt7TR3eYDPY5G2QBVCDI=
SHA1 (pms-0.42.tar.bz2) = NEodIR11LjLTL0KjrQ6lE/zEL4E=
SHA256 (pms-0.42.tar.bz2) = lr+UKwjLoQ7okaY+7MrTB/0ILvO9IL6HnxieGVnndaY=
SIZE (pms-0.42.tar.bz2) = 196053

View File

@ -1,14 +1,17 @@
$OpenBSD: patch-src_config_cpp,v 1.2 2009/10/16 22:16:44 edd Exp $
don't bail out when the default configuration file is not found,
$OpenBSD: patch-src_config_cpp,v 1.3 2010/08/18 13:56:04 jasper Exp $
Don't bail out when the default configuration file is not found,
defaults just works fine.
--- src/config.cpp.orig Sun Aug 23 09:47:51 2009
+++ src/config.cpp Fri Oct 16 11:45:38 2009
@@ -402,6 +402,8 @@ bool Configurator::source(string fn, Error & err)
--- src/config.cpp.orig Tue Aug 10 00:06:16 2010
+++ src/config.cpp Tue Aug 10 00:06:39 2010
@@ -407,6 +407,9 @@ bool Configurator::source(string fn)
if (fd == NULL)
{
+ if (fn.substr(fn.length() - 7,7) == ".pms/rc")
+ return true;
err.code = CERR_NO_FILE;
err.str = fn + ": could not open file.";
+
pms->msg->code = CERR_NO_FILE;
pms->msg->str = fn + _(": could not open file.\n");
return false;

View File

@ -1,11 +1,12 @@
$OpenBSD: patch-src_pms_cpp,v 1.1 2009/10/16 22:16:44 edd Exp $
--- src/pms.cpp.orig Fri Oct 16 12:36:18 2009
+++ src/pms.cpp Fri Oct 16 12:36:33 2009
@@ -22,6 +22,7 @@
$OpenBSD: patch-src_pms_cpp,v 1.2 2010/08/18 13:56:04 jasper Exp $
--- src/pms.cpp.orig Tue Aug 10 00:05:27 2010
+++ src/pms.cpp Tue Aug 10 00:06:10 2010
@@ -21,6 +21,8 @@
*
*/
#include "pms.h"
+#include <sys/wait.h>
+
#include "pms.h"
using namespace std;