ports/64715: [MAINTAINER] audio/mpc: update to 0.10.2
Mark Daniel Reidel
ports at mark.reidel.info
Thu Mar 25 15:50:01 UTC 2004
>Number: 64715
>Category: ports
>Synopsis: [MAINTAINER] audio/mpc: update to 0.10.2
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu Mar 25 07:50:00 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Mark Daniel Reidel
>Release: FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD alu.reidel.info 5.2-CURRENT FreeBSD 5.2-CURRENT #10: Fri Mar 5 17:22:58 CET
>Description:
- Update to 0.10.2
Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:
--- mpc-0.10.2.patch begins here ---
diff -ruN --exclude=CVS /tmp/portbk/audio/mpc/Makefile /usr/ports/audio/mpc/Makefile
--- /tmp/portbk/audio/mpc/Makefile Wed Mar 3 21:51:37 2004
+++ /usr/ports/audio/mpc/Makefile Thu Mar 25 16:42:59 2004
@@ -6,7 +6,7 @@
#
PORTNAME= mpc
-PORTVERSION= 0.10.0
+PORTVERSION= 0.10.2
CATEGORIES= audio ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= musicpd
diff -ruN --exclude=CVS /tmp/portbk/audio/mpc/distinfo /usr/ports/audio/mpc/distinfo
--- /tmp/portbk/audio/mpc/distinfo Wed Mar 3 18:05:46 2004
+++ /usr/ports/audio/mpc/distinfo Thu Mar 25 16:43:30 2004
@@ -1,2 +1,2 @@
-MD5 (mpc-0.10.0.tar.gz) = 59e9d1af5644140857132e6b9ebad57e
-SIZE (mpc-0.10.0.tar.gz) = 212562
+MD5 (mpc-0.10.2.tar.gz) = 3ca8b537d164897a376fd1abcd5514d1
+SIZE (mpc-0.10.2.tar.gz) = 209538
diff -ruN --exclude=CVS /tmp/portbk/audio/mpc/files/patch-src-command.c /usr/ports/audio/mpc/files/patch-src-command.c
--- /tmp/portbk/audio/mpc/files/patch-src-command.c Wed Mar 3 19:06:23 2004
+++ /usr/ports/audio/mpc/files/patch-src-command.c Thu Jan 1 01:00:00 1970
@@ -1,64 +0,0 @@
---- src/command.c Wed Mar 3 19:05:02 2004
-+++ src/command.c Wed Mar 3 19:05:47 2004
-@@ -243,16 +243,23 @@
- int cmd_seek ( int argc, char ** argv, mpd_Connection * conn )
- {
- mpd_Status * status = mpd_getStatus(conn);
-+ char * arg = argv[0];
-+ int seekmode;
-+ char * test;
-+ int seekchange;
-+ char * last_char;
-+ int sec;
-+ float perc;
-+ int seekto;
-+
- my_finishCommand(conn);
- if(status->state==MPD_STATUS_STATE_STOP)
- DIE("not currently playing\n");
-
-- char * arg = argv[0];
--
- if(!strlen(arg))
- DIE("\"%s\" is not a positive number\n", arg);
-
-- int seekmode = Absolute;
-+ seekmode = Absolute;
-
- if(arg[0] == '+') {
- seekmode = RelForward;
-@@ -262,15 +269,13 @@
- arg++;
- }
-
-- char * test;
-- int seekchange;
-
-- char * last_char = &arg[strlen(arg)-1];
-+ last_char = &arg[strlen(arg)-1];
- if(*last_char == 's') {
- /* absolute seek (in seconds) */
-
- *last_char = '\0'; /* chop off the s */
-- int sec = strtol(arg,&test,10); /* get the # of seconds */
-+ sec = strtol(arg,&test,10); /* get the # of seconds */
-
- if(*test!='\0' || sec<0)
- DIE("\"%s\" is not a positive number\n", arg);
-@@ -280,14 +285,14 @@
- } else {
- /* percent seek */
-
-- float perc = strtod(arg,&test);
-+ perc = strtod(arg,&test);
- if(*test!='\0' || perc<0 || perc>100)
- DIE("\"%s\" is not an number between 0 and 100\n",arg);
-
- seekchange = perc*status->totalTime/100+0.5;
- }
-
-- int seekto = calculate_seek(status->elapsedTime, seekchange, seekmode);
-+ seekto = calculate_seek(status->elapsedTime, seekchange, seekmode);
-
- if(seekto > status->totalTime)
- DIE("seek amount would seek past the end of the song\n");
--- mpc-0.10.2.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list