FreeBSD Bugzilla – Attachment 57162 Details for
Bug 86269
Update port: games/xshisen to 1.51
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 21.55 KB, created by
tkato432
on 2005-09-17 19:10:06 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
tkato432
Created:
2005-09-17 19:10:06 UTC
Size:
21.55 KB
patch
obsolete
>diff -urN /usr/ports/games/xshisen/Makefile games/xshisen/Makefile >--- /usr/ports/games/xshisen/Makefile Wed Jan 12 13:43:00 2005 >+++ games/xshisen/Makefile Thu Sep 15 15:31:24 2005 >@@ -6,41 +6,50 @@ > # > > PORTNAME= xshisen >-PORTVERSION= 1.36 >-PORTREVISION= 1 >+PORTVERSION= 1.51 > CATEGORIES= games > MASTER_SITES= http://www.techfirm.co.jp/~masaoki/ > > MAINTAINER= ports@FreeBSD.org > COMMENT= Shisen-sho puzzle game for X11 > >-BUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf >- >-# runs fine on ssh connection >-#IS_INTERACTIVE= YES # Has to create an app-defaults file > USE_X_PREFIX= yes > USE_XPM= yes >+USE_REINPLACE= yes > GNU_CONFIGURE= yes >-CONFIGURE_ARGS= --datadir="${X11BASE}/lib/X11" \ >- --enable-japanese=euc #Japanese char set euc, jis sjis >- >-.include <bsd.port.pre.mk> >+CONFIGURE_ARGS= --sharedstatedir="${DATADIR}" >+INSTALL_TARGET= install-prog > > MANLANG= "" ja > MAN6= xshisen.6 > >+.if !defined(WITHOUT_MOTIF) >+USE_MOTIF= yes >+CONFIGURE_ARGS+= --with-motif >+.endif >+ >+post-patch: >+ @${REINPLACE_CMD} -e \ >+ 's|XSHISEN_VERSION|${PORTVERSION}|g' ${WRKSRC}/lang/XShisen.ad* >+ > post-install: > @${CHOWN} root:games ${PREFIX}/bin/xshisen > @${CHMOD} 2555 ${PREFIX}/bin/xshisen >- @${CHOWN} root:games ${PREFIX}/lib/X11/xshisen/xshisen-scores >- @${CHMOD} 0660 ${PREFIX}/lib/X11/xshisen/xshisen-scores >- ${INSTALL_MAN} ${WRKSRC}/xshisen.man ${PREFIX}/man/man6/xshisen.6 >- @nkf -e < ${WRKSRC}/xshisen.jman-jis \ >- > ${WRKSRC}/xshisen.jman >- ${INSTALL_MAN} ${WRKSRC}/xshisen.jman ${PREFIX}/man/ja/man6/xshisen.6 >- -test -d ${PREFIX}/lib/X11/ja_JP.EUC/ -a \ >+ @${CHOWN} root:games ${DATADIR}/xshisen.scores >+ @${CHMOD} 0660 ${DATADIR}/xshisen.scores >+ ${INSTALL_MAN} ${WRKSRC}/man/xshisen.6 \ >+ ${MAN6PREFIX}/man/man6/xshisen.6 >+ ${INSTALL_MAN} ${WRKSRC}/man/xshisen.6.ja_JP.eucJP \ >+ ${MAN6PREFIX}/man/ja/man6/xshisen.6 >+ @${MKDIR} ${PREFIX}/lib/X11/app-defaults >+ ${INSTALL_DATA} ${WRKSRC}/lang/XShisen.ad \ >+ ${PREFIX}/lib/X11/app-defaults/XShisen >+ @${MKDIR} ${PREFIX}/lib/X11/ja_JP.eucJP/app-defaults >+ ${INSTALL_DATA} ${WRKSRC}/lang/XShisen.ad.ja_JP.eucJP \ >+ ${PREFIX}/lib/X11/ja_JP.eucJP/app-defaults/XShisen >+ -${TEST} -d ${PREFIX}/lib/X11/ja_JP.EUC/ -a \ > -d ${PREFIX}/lib/X11/ja_JP.EUC/app-defaults && \ > ${LN} -s ${PREFIX}/lib/X11/ja_JP.eucJP/app-defaults/XShisen \ >- ${PREFIX}/lib/X11/ja_JP.EUC/app-defaults && \ >+ ${PREFIX}/lib/X11/ja_JP.EUC/app-defaults || ${TRUE} > >-.include <bsd.port.post.mk> >+.include <bsd.port.mk> >diff -urN /usr/ports/games/xshisen/distinfo games/xshisen/distinfo >--- /usr/ports/games/xshisen/distinfo Thu Jan 29 20:25:35 2004 >+++ games/xshisen/distinfo Thu Sep 15 13:48:30 2005 >@@ -1,2 +1,2 @@ >-MD5 (xshisen-1.36.tar.gz) = 3c3904ff99075012201a2f6a8d6a5beb >-SIZE (xshisen-1.36.tar.gz) = 62768 >+MD5 (xshisen-1.51.tar.gz) = 5f0ef1d7811401876de717fd6771fe47 >+SIZE (xshisen-1.51.tar.gz) = 85350 >diff -urN /usr/ports/games/xshisen/files/patch-aa games/xshisen/files/patch-aa >--- /usr/ports/games/xshisen/files/patch-aa Mon Nov 25 22:18:52 2002 >+++ games/xshisen/files/patch-aa Thu Jan 1 09:00:00 1970 >@@ -1,11 +0,0 @@ >---- configure.orig Tue Feb 27 21:29:29 1996 >-+++ configure Sun Oct 10 17:49:35 1999 >-@@ -1593,7 +1593,7 @@ >- CPPFLAGS="${CPPFLAGS} -DLIB_DIR=\\\"\$(XSHISENLIB)\\\"" >- >- for i in ${mandir} /usr/share/man /usr/man /usr/local/man; do >-- for j in japanese japan ja ja_JP ja_JP.eucJP ja_JP.SJIS; do >-+ for j in a_JP.EUC ja_JP.SJIS ja_JP.JIS7; do >- if [ -d "$i/$j" ]; then >- JAPANESE="$j" >- break 2; >diff -urN /usr/ports/games/xshisen/files/patch-ac games/xshisen/files/patch-ac >--- /usr/ports/games/xshisen/files/patch-ac Mon Nov 25 22:18:52 2002 >+++ games/xshisen/files/patch-ac Thu Jan 1 09:00:00 1970 >@@ -1,21 +0,0 @@ >---- Makefile.in.orig Tue Jan 23 17:35:21 1996 >-+++ Makefile.in Sat Nov 9 17:18:47 2002 >-@@ -39,7 +39,7 @@ >- SCF = xshisen-scores >- >- LIBS = @LIBS@ >--CODECONV = ./$(exec_name) -KCONV jis >-+CODECONV = (nkf -e | sed 's/XSHISEN_VERSION/1.36/') >- >- all: $(PROGS) >- >-@@ -64,6 +64,9 @@ >- $(INSTALLD) $$file $(XSHISENLIB)/`basename $$file`; \ >- done >- $(INSTALLD) $(AD) $(XAD_DIR)/$(class_name) >-+ @if [ ! -f $(JXAD_DIR) ]; then \ >-+ $(MKDIR) $(JXAD_DIR); \ >-+ fi >- $(INSTALLD) $(ADJ) $(JXAD_DIR)/$(class_name) >- >- install.man: $(exec_name).jman $(exec_name).man >diff -urN /usr/ports/games/xshisen/files/patch-ad games/xshisen/files/patch-ad >--- /usr/ports/games/xshisen/files/patch-ad Wed Jan 12 13:43:00 2005 >+++ games/xshisen/files/patch-ad Thu Jan 1 09:00:00 1970 >@@ -1,95 +0,0 @@ >- >-$FreeBSD: ports/games/xshisen/files/patch-ad,v 1.2 2005/01/11 21:31:48 naddy Exp $ >- >---- main.C.orig >-+++ main.C >-@@ -44,53 +44,53 @@ >- >- static XtResource gres[] = { >- { "aboutString", "AboutString", XtRString, sizeof (char *), >-- 0, XtRString, "XShisen " XSHISEN_VERSION " by Masaoki Kobayashi" }, >-+ 0, XtRString, (XtPointer)"XShisen " XSHISEN_VERSION " by Masaoki Kobayashi" }, >- { "tedumari", "Tedumari", XtRString, sizeof (char *), >-- offsetof(GlobRes, tedumari), XtRString, "You can get no more pieces." }, >-+ offsetof(GlobRes, tedumari), XtRString, (XtPointer)"You can get no more pieces." }, >- { "width", "Width", XtRInt, sizeof (int), >-- offsetof(GlobRes, Width), XtRString, "640" }, >-+ offsetof(GlobRes, Width), XtRString, (XtPointer)"640" }, >- { "height", "Height", XtRInt, sizeof (int), >-- offsetof(GlobRes, Height), XtRString, "400" }, >-+ offsetof(GlobRes, Height), XtRString, (XtPointer)"400" }, >- { "timeFormat", "TimeFormat", XtRString, sizeof (char *), >-- offsetof(GlobRes, timeFormat), XtRString, "Your time is %2.2d:%2.2d." }, >-+ offsetof(GlobRes, timeFormat), XtRString, (XtPointer)"Your time is %2.2d:%2.2d." }, >- { "displayFormat1", "DisplayFormat1", XtRString, sizeof (char *), >-- offsetof(GlobRes, displayFormat1), XtRString, "Rest: " }, >-+ offsetof(GlobRes, displayFormat1), XtRString, (XtPointer)"Rest: " }, >- { "displayFormat2", "DisplayFormat2", XtRString, sizeof (char *), >-- offsetof(GlobRes, displayFormat2), XtRString, "Time: " }, >-+ offsetof(GlobRes, displayFormat2), XtRString, (XtPointer)"Time: " }, >- { "scoreFile", "ScoreFile", XtRString, sizeof (char *), >-- offsetof(GlobRes, scoreFile), XtRString, "%s/xshisen-scores" }, >-+ offsetof(GlobRes, scoreFile), XtRString, (XtPointer)"%s/xshisen-scores" }, >- { "personalScore", "PersonalScore", XtRString, sizeof (char *), >-- offsetof(GlobRes, personalScoreFile), XtRString, ".xshisen-scores" }, >-+ offsetof(GlobRes, personalScoreFile), XtRString, (XtPointer)".xshisen-scores" }, >- { "scoreOnly", "ScoreOnly", XtRBoolean, sizeof (Boolean), >-- offsetof(GlobRes, scoreOnly), XtRString, "False" }, >-+ offsetof(GlobRes, scoreOnly), XtRString, (XtPointer)"False" }, >- { "connectLineColor", "ConnectLineColor", XtRPixel, sizeof (Pixel), >-- offsetof(GlobRes, connLineColor), XtRString, "blue" }, >-+ offsetof(GlobRes, connLineColor), XtRString, (XtPointer)"blue" }, >- { "connectLineTime", "ConnectLineTime", XtRInt, sizeof (int), >-- offsetof(GlobRes, connLineTime), XtRString, "1000" }, >-+ offsetof(GlobRes, connLineTime), XtRString, (XtPointer)"1000" }, >- { "connectLineWidth", "ConnectLineWidth", XtRInt, sizeof (int), >-- offsetof(GlobRes, connLineWidth), XtRString, "6" }, >-+ offsetof(GlobRes, connLineWidth), XtRString, (XtPointer)"6" }, >- { "autoDemo", "AutoDemo", XtRBoolean, sizeof (Boolean), >-- offsetof(GlobRes, autoDemo), XtRString, "False" }, >-+ offsetof(GlobRes, autoDemo), XtRString, (XtPointer)"False" }, >- { "libraryDirectory", "LibraryDirectory", XtRString, sizeof (char *), >-- offsetof(GlobRes, libDir), XtRString, LIB_DIR }, >-+ offsetof(GlobRes, libDir), XtRString, (XtPointer)LIB_DIR }, >- { "magnifyFactor", "MagnifyFactor", XtRFloat, sizeof (float), >-- offsetof(GlobRes, magFactor), XtRString, "1.0" }, >-+ offsetof(GlobRes, magFactor), XtRString, (XtPointer)"1.0" }, >- { "fitPixmap", "FitPixmap", XtRBoolean, sizeof (Boolean), >-- offsetof(GlobRes, fitPixmap), XtRString, "True" }, >-+ offsetof(GlobRes, fitPixmap), XtRString, (XtPointer)"True" }, >- { "colorCloseness", "ColorCloseness", XtRInt, sizeof (int), >-- offsetof(GlobRes, colorCloseness), XtRString, "40000" }, >-+ offsetof(GlobRes, colorCloseness), XtRString, (XtPointer)"40000" }, >- { "gameSize", "GameSize", XtRInt, sizeof (int), >-- offsetof(GlobRes, gameSize), XtRString, "0" }, >-+ offsetof(GlobRes, gameSize), XtRString, (XtPointer)"0" }, >- { "trialMode", "TrialMode", XtRBoolean, sizeof (Boolean), >-- offsetof(GlobRes, trialMode), XtRString, "False" }, >-+ offsetof(GlobRes, trialMode), XtRString, (XtPointer)"False" }, >- { "gravityMode", "GravityMode", XtRBoolean, sizeof (Boolean), >-- offsetof(GlobRes, gravityMode), XtRString, "False" }, >-+ offsetof(GlobRes, gravityMode), XtRString, (XtPointer)"False" }, >- { "idleTime", "IdleTime", XtRInt, sizeof (int), >-- offsetof(GlobRes, idleTime), XtRString, "100000" }, >-+ offsetof(GlobRes, idleTime), XtRString, (XtPointer)"100000" }, >- { "kanjiCode", "KanjiCode", XtRString, sizeof (char *), >-- offsetof(GlobRes, kanjiCode), XtRString, KANJICODE }, >-+ offsetof(GlobRes, kanjiCode), XtRString, (XtPointer)KANJICODE }, >- { "kanjiConvert", "KanjiConvert", XtRBoolean, sizeof (Boolean), >-- offsetof(GlobRes, kanjiConv), XtRString, "False" } >-+ offsetof(GlobRes, kanjiConv), XtRString, (XtPointer)"False" } >- }; >- GlobRes globRes; >- >-@@ -194,9 +194,9 @@ >- char buffer[100], *p; >- char *(*codeconv)(const char*); >- >-- strcpy(buffer, operation); >-+ strlcpy(buffer, operation, sizeof(buffer)); >- if (strchr(buffer, '-') == NULL) { >-- strcat(buffer, "-" KANJICODE); >-+ strlcat(buffer, "-" KANJICODE, sizeof(buffer)); >- } >- if (strncasecmp(buffer, "jis-euc", 7) == 0) >- codeconv = jis_to_euc; >diff -urN /usr/ports/games/xshisen/files/patch-ae games/xshisen/files/patch-ae >--- /usr/ports/games/xshisen/files/patch-ae Fri Dec 24 06:16:26 1999 >+++ games/xshisen/files/patch-ae Thu Jan 1 09:00:00 1970 >@@ -1,11 +0,0 @@ >---- body.C.orig Sun Dec 12 14:40:15 1999 >-+++ body.C Sun Dec 12 14:40:55 1999 >-@@ -224,7 +224,7 @@ >- int max_c; >- >- max_c = xsize*ysize*(xsize*ysize/PKIND - 1)/2; >-- p = new (Point [max_c][2]); >-+ p = new Point[max_c][2]; >- t = new Point[xsize*ysize/PKIND]; >- >- if (hintNum == 0) >diff -urN /usr/ports/games/xshisen/files/patch-af games/xshisen/files/patch-af >--- /usr/ports/games/xshisen/files/patch-af Wed Jan 12 13:43:01 2005 >+++ games/xshisen/files/patch-af Thu Jan 1 09:00:00 1970 >@@ -1,159 +0,0 @@ >- >-$FreeBSD: ports/games/xshisen/files/patch-af,v 1.3 2005/01/11 21:31:48 naddy Exp $ >- >---- score.C.orig >-+++ score.C >-@@ -4,31 +4,31 @@ >- >- XtResource Score::resources[] = { >- { "scoreTitle", "ScoreTitle", XtRString, sizeof(char *), >-- 0*sizeof(char *), XtRString, "XShisen High Score\n\n" }, >-+ 0*sizeof(char *), XtRString, (XtPointer)"XShisen High Score\n\n" }, >- { "scoreFormat", "ScoreFormat", XtRString, sizeof(char *), >-- 1*sizeof(char *), XtRString, "%2d %2.2d:%2.2d:%2.2d %-28s %s %s\n" }, >-+ 1*sizeof(char *), XtRString, (XtPointer)"%2d %2.2d:%2.2d:%2.2d %-28s %s %s\n" }, >- { "strPeriod", "StrPeriod", XtRString, sizeof(char *), >-- 2*sizeof(char *), XtRString, "Last %d days" }, >-+ 2*sizeof(char *), XtRString, (XtPointer)"Last %d days" }, >- { "averagePeriod", "AveragePeriod", XtRString, sizeof(char *), >-- 3*sizeof(char *), XtRString, "14" }, >-+ 3*sizeof(char *), XtRString, (XtPointer)"14" }, >- { "strPlayed", "StrPlayed", XtRString, sizeof(char *), >-- 4*sizeof(char *), XtRString, "Played" }, >-+ 4*sizeof(char *), XtRString, (XtPointer)"Played" }, >- { "strCompleted", "StrCompleted", XtRString, sizeof(char *), >-- 5*sizeof(char *), XtRString, "Completed" }, >-+ 5*sizeof(char *), XtRString, (XtPointer)"Completed" }, >- { "strTedumari", "StrTedumari", XtRString, sizeof(char *), >-- 6*sizeof(char *), XtRString, "Deadlocked" }, >-+ 6*sizeof(char *), XtRString, (XtPointer)"Deadlocked" }, >- { "strSearched", "StrSearched", XtRString, sizeof(char *), >-- 7*sizeof(char *), XtRString, "Seach used" }, >-+ 7*sizeof(char *), XtRString, (XtPointer)"Search used" }, >- { "strGiveUp", "StrGiveUp", XtRString, sizeof(char *), >-- 8*sizeof(char *), XtRString, "Gaven up" }, >-+ 8*sizeof(char *), XtRString, (XtPointer)"Given up" }, >- { "strTotal", "StrTotal", XtRString, sizeof(char *), >-- 9*sizeof(char *), XtRString, "Total" }, >-+ 9*sizeof(char *), XtRString, (XtPointer)"Total" }, >- { "strAverage", "StrAverage", XtRString, sizeof(char *), >-- 10*sizeof(char *), XtRString, "Whole Average" }, >-+ 10*sizeof(char *), XtRString, (XtPointer)"Whole Average" }, >- { "strGames", "StrGames", XtRString, sizeof(char *), >-- 11*sizeof(char *), XtRString, "games" }, >-+ 11*sizeof(char *), XtRString, (XtPointer)"games" }, >- { "personalTitle", "PersonalTitle", XtRString, sizeof(char *), >-- 12*sizeof(char *), XtRString, "Personal Statistics for %s" } >-+ 12*sizeof(char *), XtRString, (XtPointer)"Personal Statistics for %s" } >- }; >- >- void >-@@ -73,6 +73,12 @@ >- date[8] = '\0'; >- strncpy(time, &buffer[53], 8); >- time[8] = '\0'; >-+ if (date[0] == '1') { >-+ for(int i=1; i<8; i++) { >-+ date[i-1] = date[i]; >-+ } >-+ date[7] = date[6] == '0' ? '1' : '0'; >-+ } >- } >- >- void >-@@ -371,10 +377,10 @@ >- s1 = scoreToRegister / 1000; >- ms_to_hms(scoreToRegister, h, m, s); >- pw = getpwuid(getuid()); >-- strcpy(gecos, pw->pw_gecos); >-+ strlcpy(gecos, pw->pw_gecos, sizeof(gecos)); >- if ((po = strchr(gecos, ',')) != NULL) >- *po = 0; >-- sprintf(namebuf, "%-8.8s (%s)", pw->pw_name, gecos); >-+ snprintf(namebuf, sizeof(namebuf), "%-8.8s (%s)", pw->pw_name, gecos); >- sprintf(myname, "%-28.28s", namebuf); >- // Always read the latest high score >- readfile(); >-@@ -414,7 +420,7 @@ >- strcpy(rec[inspos].name, myname); >- time(&t); >- tp = localtime(&t); >-- sprintf(rec[i].date, "%2.2d-%2.2d-%2.2d", tp->tm_year, tp->tm_mon+1, tp->tm_mday); >-+ sprintf(rec[i].date, "%2.2d-%2.2d-%2.2d", tp->tm_year%100, tp->tm_mon+1, tp->tm_mday); >- sprintf(rec[i].time, "%2.2d:%2.2d:%2.2d", tp->tm_hour, tp->tm_min, tp->tm_sec); >- if (writefile() == 0) >- DisplayScore(game); >-@@ -434,12 +440,12 @@ >- return; /* Just do not record, no notifying */ >- time(&t); >- tp = localtime(&t); >-- check_digit = flag*3 + gamesize + level*7 + tp->tm_year*3 + rest*7 >-+ check_digit = flag*3 + gamesize + level*7 + (tp->tm_year%100)*3 + rest*7 >- + tp->tm_mon*7 + tp->tm_mday*3 + tp->tm_hour*7 + tp->tm_min*3 + tp->tm_sec; >- check_digit %= 857; >- fprintf(stream, "%2.2d%2.2d%8.8d%2.2d%1.1d%2.2d%4.4d%2.2d%3.3d%3.3d%2.2d%2.2d\n", >- flag, >-- tp->tm_sec, result, tp->tm_min, gamesize, tp->tm_year, level, tp->tm_mon, >-+ tp->tm_sec, result, tp->tm_min, gamesize, tp->tm_year%100, level, tp->tm_mon, >- check_digit, rest, tp->tm_mday, tp->tm_hour); >- fclose(stream); >- } >-@@ -492,7 +498,24 @@ >- rest = -1; >- c2 = f*3 + g + l*7 + year*3 + month*7 + day*3 + hour*7 + min*3 + sec; >- break; >-- case 34: >-+ case 32: >-+ // Just for compatibility with xshisen 1.10, Y2K >-+ f = atoiSubstring(buf + 0, 2); >-+ sec = atoiSubstring(buf + 2, 2); >-+ t = atoiSubstring(buf + 4, 8); >-+ min = atoiSubstring(buf + 12, 2); >-+ g = atoiSubstring(buf + 14, 1); >-+ year = atoiSubstring(buf + 15, 3) - 100; >-+ l = atoiSubstring(buf + 18, 4); >-+ month = atoiSubstring(buf + 22, 2); >-+ c1 = atoiSubstring(buf + 24, 3); >-+ day = atoiSubstring(buf + 27, 2); >-+ hour = atoiSubstring(buf + 29, 2); >-+ rest = -1; >-+ c2 = f*3 + g + l*7 + (year+100)*3 + month*7 + day*3 + hour*7 + min*3 + sec >-+; >-+ break; >-+ case 34: >- // This is usual format >- f = atoiSubstring(buf + 0, 2); >- sec = atoiSubstring(buf + 2, 2); >-@@ -509,6 +532,23 @@ >- c2 = f*3 + g + l*7 + year*3 + month*7 + day*3 + hour*7 + min*3 >- + sec + rest*7; >- break; >-+ case 35: >-+ // This is usual format, Y2K >-+ f = atoiSubstring(buf + 0, 2); >-+ sec = atoiSubstring(buf + 2, 2); >-+ t = atoiSubstring(buf + 4, 8); >-+ min = atoiSubstring(buf + 12, 2); >-+ g = atoiSubstring(buf + 14, 1); >-+ year = atoiSubstring(buf + 15, 3) - 100; >-+ l = atoiSubstring(buf + 18, 4); >-+ month = atoiSubstring(buf + 22, 2); >-+ c1 = atoiSubstring(buf + 24, 3); >-+ rest = atoiSubstring(buf + 27, 3); >-+ day = atoiSubstring(buf + 30, 2); >-+ hour = atoiSubstring(buf + 32, 2); >-+ c2 = f*3 + g + l*7 + (year+100)*3 + month*7 + day*3 + hour*7 + min*3 >-+ + sec + rest*7; >-+ break; >- default: >- // Someone edited this file? >- continue; >-@@ -537,7 +577,7 @@ >- tb.tm_hour = hour; >- tb.tm_mday = day; >- tb.tm_mon = month; >-- tb.tm_year = year; >-+ tb.tm_year = year > 69 ? year : year + 100; >- tm1 = mktime(&tb); // Time of the score >- w1[0][f] += t; >- w2[0][f]++; >diff -urN /usr/ports/games/xshisen/files/patch-readxpm.C games/xshisen/files/patch-readxpm.C >--- /usr/ports/games/xshisen/files/patch-readxpm.C Wed Jan 12 06:31:48 2005 >+++ games/xshisen/files/patch-readxpm.C Thu Sep 15 13:56:54 2005 >@@ -1,14 +1,14 @@ > > $FreeBSD: ports/games/xshisen/files/patch-readxpm.C,v 1.1 2005/01/11 21:31:48 naddy Exp $ > >---- readxpm.C.orig >-+++ readxpm.C >+--- readxpm.C.orig Sun Jul 7 01:34:47 2002 >++++ readxpm.C Thu Sep 15 13:56:38 2005 > @@ -12,7 +12,7 @@ > char buffer[1024]; > > for(int i=0; i<PKIND; i++) { >-- sprintf(buffer, "%s/%s.xpm", directory, files[i]); >-+ snprintf(buffer, sizeof(buffer), "%s/%s.xpm", directory, files[i]); >+- sprintf(buffer, "%s/%s/%s.xpm", directory, subdir, files[i]); >++ snprintf(buffer, sizeof(buffer), "%s/%s/%s.xpm", directory, subdir, files[i]); > Mp[i].ReadFile(w, buffer, i, globRes.colorCloseness); > } > } >diff -urN /usr/ports/games/xshisen/pkg-plist games/xshisen/pkg-plist >--- /usr/ports/games/xshisen/pkg-plist Mon Nov 25 22:18:52 2002 >+++ games/xshisen/pkg-plist Thu Sep 15 15:03:11 2005 >@@ -1,45 +1,83 @@ > bin/xshisen >-lib/X11/xshisen/xshisen-scores >-lib/X11/xshisen/chun.xpm >-lib/X11/xshisen/haku.xpm >-lib/X11/xshisen/hana.xpm >-lib/X11/xshisen/hatsu.xpm >-lib/X11/xshisen/hishi.xpm >-lib/X11/xshisen/m1.xpm >-lib/X11/xshisen/m2.xpm >-lib/X11/xshisen/m3.xpm >-lib/X11/xshisen/m4.xpm >-lib/X11/xshisen/m5.xpm >-lib/X11/xshisen/m6.xpm >-lib/X11/xshisen/m7.xpm >-lib/X11/xshisen/m8.xpm >-lib/X11/xshisen/m9.xpm >-lib/X11/xshisen/nan.xpm >-lib/X11/xshisen/p1.xpm >-lib/X11/xshisen/p2.xpm >-lib/X11/xshisen/p3.xpm >-lib/X11/xshisen/p4.xpm >-lib/X11/xshisen/p5.xpm >-lib/X11/xshisen/p6.xpm >-lib/X11/xshisen/p7.xpm >-lib/X11/xshisen/p8.xpm >-lib/X11/xshisen/p9.xpm >-lib/X11/xshisen/pei.xpm >-lib/X11/xshisen/s1.xpm >-lib/X11/xshisen/s2.xpm >-lib/X11/xshisen/s3.xpm >-lib/X11/xshisen/s4.xpm >-lib/X11/xshisen/s5.xpm >-lib/X11/xshisen/s6.xpm >-lib/X11/xshisen/s7.xpm >-lib/X11/xshisen/s8.xpm >-lib/X11/xshisen/s9.xpm >-lib/X11/xshisen/sha.xpm >-lib/X11/xshisen/ton.xpm > lib/X11/app-defaults/XShisen > lib/X11/ja_JP.eucJP/app-defaults/XShisen >+%%DATADIR%%/s1/chun.xpm >+%%DATADIR%%/s1/haku.xpm >+%%DATADIR%%/s1/hana.xpm >+%%DATADIR%%/s1/hatsu.xpm >+%%DATADIR%%/s1/hishi.xpm >+%%DATADIR%%/s1/m1.xpm >+%%DATADIR%%/s1/m2.xpm >+%%DATADIR%%/s1/m3.xpm >+%%DATADIR%%/s1/m4.xpm >+%%DATADIR%%/s1/m5.xpm >+%%DATADIR%%/s1/m6.xpm >+%%DATADIR%%/s1/m7.xpm >+%%DATADIR%%/s1/m8.xpm >+%%DATADIR%%/s1/m9.xpm >+%%DATADIR%%/s1/nan.xpm >+%%DATADIR%%/s1/p1.xpm >+%%DATADIR%%/s1/p2.xpm >+%%DATADIR%%/s1/p3.xpm >+%%DATADIR%%/s1/p4.xpm >+%%DATADIR%%/s1/p5.xpm >+%%DATADIR%%/s1/p6.xpm >+%%DATADIR%%/s1/p7.xpm >+%%DATADIR%%/s1/p8.xpm >+%%DATADIR%%/s1/p9.xpm >+%%DATADIR%%/s1/pei.xpm >+%%DATADIR%%/s1/s1.xpm >+%%DATADIR%%/s1/s2.xpm >+%%DATADIR%%/s1/s3.xpm >+%%DATADIR%%/s1/s4.xpm >+%%DATADIR%%/s1/s5.xpm >+%%DATADIR%%/s1/s6.xpm >+%%DATADIR%%/s1/s7.xpm >+%%DATADIR%%/s1/s8.xpm >+%%DATADIR%%/s1/s9.xpm >+%%DATADIR%%/s1/sha.xpm >+%%DATADIR%%/s1/ton.xpm >+%%DATADIR%%/s2/chun.xpm >+%%DATADIR%%/s2/haku.xpm >+%%DATADIR%%/s2/hana.xpm >+%%DATADIR%%/s2/hatsu.xpm >+%%DATADIR%%/s2/hishi.xpm >+%%DATADIR%%/s2/m1.xpm >+%%DATADIR%%/s2/m2.xpm >+%%DATADIR%%/s2/m3.xpm >+%%DATADIR%%/s2/m4.xpm >+%%DATADIR%%/s2/m5.xpm >+%%DATADIR%%/s2/m6.xpm >+%%DATADIR%%/s2/m7.xpm >+%%DATADIR%%/s2/m8.xpm >+%%DATADIR%%/s2/m9.xpm >+%%DATADIR%%/s2/nan.xpm >+%%DATADIR%%/s2/p1.xpm >+%%DATADIR%%/s2/p2.xpm >+%%DATADIR%%/s2/p3.xpm >+%%DATADIR%%/s2/p4.xpm >+%%DATADIR%%/s2/p5.xpm >+%%DATADIR%%/s2/p6.xpm >+%%DATADIR%%/s2/p7.xpm >+%%DATADIR%%/s2/p8.xpm >+%%DATADIR%%/s2/p9.xpm >+%%DATADIR%%/s2/pei.xpm >+%%DATADIR%%/s2/s1.xpm >+%%DATADIR%%/s2/s2.xpm >+%%DATADIR%%/s2/s3.xpm >+%%DATADIR%%/s2/s4.xpm >+%%DATADIR%%/s2/s5.xpm >+%%DATADIR%%/s2/s6.xpm >+%%DATADIR%%/s2/s7.xpm >+%%DATADIR%%/s2/s8.xpm >+%%DATADIR%%/s2/s9.xpm >+%%DATADIR%%/s2/sha.xpm >+%%DATADIR%%/s2/ton.xpm >+%%DATADIR%%/xshisen.scores >+@dirrm %%DATADIR%%/s2 >+@dirrm %%DATADIR%%/s1 >+@dirrm %%DATADIR%% > @unexec rmdir %D/lib/X11/ja_JP.eucJP/app-defaults 2>/dev/null || true > @unexec rmdir %D/lib/X11/ja_JP.eucJP 2>/dev/null || true >-@dirrm lib/X11/xshisen > @exec [ -d %D/lib/X11/ja_JP.EUC/ -a -d %D/lib/X11/ja_JP.EUC/app-defaults ] && ln -s %D/lib/X11/ja_JP.eucJP/app-defaults/XShisen %D/lib/X11/ja_JP.EUC/app-defaults || true > @unexec rm %D/lib/X11/ja_JP.EUC/app-defaults/XShisen 2>/dev/null || true
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 86269
: 57162