Date: Sun, 4 Nov 2012 10:40:01 GMT From: nemysis <nemysis@gmx.ch> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/173335: [PATCH] games/xarchon: OptionsNG, changed Makefile, pkg-descr, Desktop entries, take maintainership Message-ID: <201211041040.qA4Ae1XR035003@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/173335; it has been noted by GNATS. From: nemysis <nemysis@gmx.ch> To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/173335: [PATCH] games/xarchon: OptionsNG, changed Makefile, pkg-descr, Desktop entries, take maintainership Date: Sun, 4 Nov 2012 11:37:45 +0100 --MP_/z.QpKcZcfn9Ub/mX8dfCGnS Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Removed PORTDATA= * and restored pkg-plist --MP_/z.QpKcZcfn9Ub/mX8dfCGnS Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=xarchon.diff ===> Generating patch ===> Viewing diff with more diff -ruN --exclude=CVS /usr/ports/games/xarchon/Makefile ./Makefile --- /usr/ports/games/xarchon/Makefile 2012-01-19 11:13:17.000000000 +0100 +++ ./Makefile 2012-11-04 11:36:08.000000000 +0100 @@ -7,13 +7,17 @@ PORTNAME= xarchon PORTVERSION= 0.50 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= games MASTER_SITES= ftp://ftp.seul.org/pub/xarchon/ \ http://xarchon.seul.org/ -MAINTAINER= ports@FreeBSD.org -COMMENT= A chess-like strategy game with battle options +MAINTAINER= nemysis@gmx.ch +COMMENT= Chess-like strategy game with battle options + +LICENSE= GPLv2 + +BUILD_DEPENDS= xpmtoppm:${PORTSDIR}/graphics/netpbm USE_GNOME= esound gtk12 USE_GMAKE= yes @@ -22,13 +26,38 @@ MAN6= xarchon.6 +PLIST_FILES= bin/${PORTNAME} \ + share/pixmaps/${PORTNAME}.png + +PORTDOCS= AUTHORS ChangeLog README + +DESKTOP_ENTRIES="XArchon" "${COMMENT}" "${PORTNAME}" \ + "${PORTNAME}" "Game;BoardGame;" ${FALSE} + +.include <bsd.port.options.mk> + post-patch: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ - ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} + ${WRKSRC}/configure @${REINPLACE_CMD} -e '169s|^static ||' ${WRKSRC}/src/board.c @${REINPLACE_CMD} -e 's|Xarchon_Evolution::||' \ ${WRKSRC}/src/Xarchon_Genetic.hpp +# For XArchon 0.60 that find libglade +# @${REINPLACE_CMD} -e 's|set dummy glade|set dummy libglade-config|' ${WRKSRC}/configure + +post-build: + @(cd ${WRKSRC}/data && ${LOCALBASE}/bin/xpmtoppm icon.xpm | \ + ${LOCALBASE}/bin/pamscale 1.5 | ${LOCALBASE}/bin/pnmtopng > ${PORTNAME}.png) + +post-install: + ${INSTALL_DATA} ${WRKSRC}/data/${PORTNAME}.png ${PREFIX}/share/pixmaps + +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} +.endif + NOT_FOR_ARCHS= sparc64 .include <bsd.port.mk> diff -ruN --exclude=CVS /usr/ports/games/xarchon/files/patch-src-Genetic.hpp ./files/patch-src-Genetic.hpp --- /usr/ports/games/xarchon/files/patch-src-Genetic.hpp 1970-01-01 01:00:00.000000000 +0100 +++ ./files/patch-src-Genetic.hpp 2004-10-03 15:49:13.000000000 +0200 @@ -0,0 +1,33 @@ +--- src/Genetic.hpp.orig Fri Oct 1 10:06:20 2004 ++++ src/Genetic.hpp Fri Oct 1 10:08:12 2004 +@@ -216,9 +216,9 @@ + virtual Genetic_Operator<T> *Choose_Operator(void) + { + int max=(int)total_op_weight; +- list<Genetic_Operator<T> *>::iterator start=operators.begin(); +- list<Genetic_Operator<T> *>::iterator end=operators.end(); +- list<Genetic_Operator<T> *>::iterator iter; ++ typename list<Genetic_Operator<T> *>::iterator start=operators.begin(); ++ typename list<Genetic_Operator<T> *>::iterator end=operators.end(); ++ typename list<Genetic_Operator<T> *>::iterator iter; + int r=rand()%max; + int count=0; + for (iter=start;iter!=end;iter++) { +@@ -249,7 +249,7 @@ + Genetic_Population<T> *newpop=new Genetic_Population<T>(p->size); + int cur_size=0; + while (cur_size<newpop->size) { +- Genetic_Operator<T> *op=Choose_Operator(); ++ Genetic_Operator<T> *op=this->Choose_Operator(); + if ( (cur_size+op->NumOfResults())>newpop->size) + continue; + for (i=0;i<op->NumOfOperands();i++) { +@@ -264,7 +264,7 @@ + cur_size++; + } + } +- newpop->Eval_Fitness(fit_func); ++ newpop->Eval_Fitness(this->fit_func); + return newpop; + } + diff -ruN --exclude=CVS /usr/ports/games/xarchon/files/patch-src-Problem.hpp ./files/patch-src-Problem.hpp --- /usr/ports/games/xarchon/files/patch-src-Problem.hpp 1970-01-01 01:00:00.000000000 +0100 +++ ./files/patch-src-Problem.hpp 2004-10-03 15:49:13.000000000 +0200 @@ -0,0 +1,50 @@ +--- src/Problem.hpp.orig Fri Oct 1 10:00:09 2004 ++++ src/Problem.hpp Fri Oct 1 10:05:48 2004 +@@ -306,14 +306,14 @@ + virtual G Goal_Value(T *a) + { + if (depth==0) +- return tester->Goal_Value(a); ++ return this->tester->Goal_Value(a); + +- Goal_Test<G,T> *endtester=tester; +- tester=new Minimax_Goal_Test(depth-1,generator,other_acc,goal_acc,tester); ++ Goal_Test<G,T> *endtester=this->tester; ++ this->tester=new Minimax_Goal_Test(depth-1,this->generator,other_acc,this->goal_acc,this->tester); + G ret_val=Successor_Goal_Test<G,T>::Goal_Value(a); +- delete tester; +- tester=endtester; +- delete next; ++ delete this->tester; ++ this->tester=endtester; ++ delete this->next; + + return ret_val; + } +@@ -340,19 +340,19 @@ + + virtual G Goal_Value(T *a) + { +- Goal_Accumulator <G,T> *old=goal_acc; ++ Goal_Accumulator <G,T> *old=this->goal_acc; + Multi_Goal_Accumulator <G,T,greater<G> > *mga=new Multi_Goal_Accumulator<G,T,greater<G> >(branch); +- goal_acc=mga; ++ this->goal_acc=mga; + Successor_Goal_Test<G,T>::Goal_Value(a); +- goal_acc=old; ++ this->goal_acc=old; + for (mga->Init();!mga->IsEnd();mga->Next()) { + T *state=mga->Get_State(); +- Multi_Minimax_Goal_Test *next=new Multi_Minimax_Goal_Test(d-1,b,gen,other,goal_acc,tester); ++ Multi_Minimax_Goal_Test *next=new Multi_Minimax_Goal_Test(this->d-1,this->b,this->gen,other,this->goal_acc,this->tester); + next->Goal_Value(state); +- goal_acc->Put(accumulator->value,acc->state,acc->op); ++ this->goal_acc->Put(this->accumulator->value,this->acc->state,this->acc->op); + } +- goal_acc->Put(mga->Get_State(),mga->Get_Operator(),mga->Get_Result()); +- return goal_acc->Get_Value(); ++ this->goal_acc->Put(mga->Get_State(),mga->Get_Operator(),mga->Get_Result()); ++ return this->goal_acc->Get_Value(); + } + }; + diff -ruN --exclude=CVS /usr/ports/games/xarchon/files/patch-src::Genetic.hpp ./files/patch-src::Genetic.hpp --- /usr/ports/games/xarchon/files/patch-src::Genetic.hpp 2004-10-03 15:49:13.000000000 +0200 +++ ./files/patch-src::Genetic.hpp 1970-01-01 01:00:00.000000000 +0100 @@ -1,33 +0,0 @@ ---- src/Genetic.hpp.orig Fri Oct 1 10:06:20 2004 -+++ src/Genetic.hpp Fri Oct 1 10:08:12 2004 -@@ -216,9 +216,9 @@ - virtual Genetic_Operator<T> *Choose_Operator(void) - { - int max=(int)total_op_weight; -- list<Genetic_Operator<T> *>::iterator start=operators.begin(); -- list<Genetic_Operator<T> *>::iterator end=operators.end(); -- list<Genetic_Operator<T> *>::iterator iter; -+ typename list<Genetic_Operator<T> *>::iterator start=operators.begin(); -+ typename list<Genetic_Operator<T> *>::iterator end=operators.end(); -+ typename list<Genetic_Operator<T> *>::iterator iter; - int r=rand()%max; - int count=0; - for (iter=start;iter!=end;iter++) { -@@ -249,7 +249,7 @@ - Genetic_Population<T> *newpop=new Genetic_Population<T>(p->size); - int cur_size=0; - while (cur_size<newpop->size) { -- Genetic_Operator<T> *op=Choose_Operator(); -+ Genetic_Operator<T> *op=this->Choose_Operator(); - if ( (cur_size+op->NumOfResults())>newpop->size) - continue; - for (i=0;i<op->NumOfOperands();i++) { -@@ -264,7 +264,7 @@ - cur_size++; - } - } -- newpop->Eval_Fitness(fit_func); -+ newpop->Eval_Fitness(this->fit_func); - return newpop; - } - diff -ruN --exclude=CVS /usr/ports/games/xarchon/files/patch-src::Problem.hpp ./files/patch-src::Problem.hpp --- /usr/ports/games/xarchon/files/patch-src::Problem.hpp 2004-10-03 15:49:13.000000000 +0200 +++ ./files/patch-src::Problem.hpp 1970-01-01 01:00:00.000000000 +0100 @@ -1,50 +0,0 @@ ---- src/Problem.hpp.orig Fri Oct 1 10:00:09 2004 -+++ src/Problem.hpp Fri Oct 1 10:05:48 2004 -@@ -306,14 +306,14 @@ - virtual G Goal_Value(T *a) - { - if (depth==0) -- return tester->Goal_Value(a); -+ return this->tester->Goal_Value(a); - -- Goal_Test<G,T> *endtester=tester; -- tester=new Minimax_Goal_Test(depth-1,generator,other_acc,goal_acc,tester); -+ Goal_Test<G,T> *endtester=this->tester; -+ this->tester=new Minimax_Goal_Test(depth-1,this->generator,other_acc,this->goal_acc,this->tester); - G ret_val=Successor_Goal_Test<G,T>::Goal_Value(a); -- delete tester; -- tester=endtester; -- delete next; -+ delete this->tester; -+ this->tester=endtester; -+ delete this->next; - - return ret_val; - } -@@ -340,19 +340,19 @@ - - virtual G Goal_Value(T *a) - { -- Goal_Accumulator <G,T> *old=goal_acc; -+ Goal_Accumulator <G,T> *old=this->goal_acc; - Multi_Goal_Accumulator <G,T,greater<G> > *mga=new Multi_Goal_Accumulator<G,T,greater<G> >(branch); -- goal_acc=mga; -+ this->goal_acc=mga; - Successor_Goal_Test<G,T>::Goal_Value(a); -- goal_acc=old; -+ this->goal_acc=old; - for (mga->Init();!mga->IsEnd();mga->Next()) { - T *state=mga->Get_State(); -- Multi_Minimax_Goal_Test *next=new Multi_Minimax_Goal_Test(d-1,b,gen,other,goal_acc,tester); -+ Multi_Minimax_Goal_Test *next=new Multi_Minimax_Goal_Test(this->d-1,this->b,this->gen,other,this->goal_acc,this->tester); - next->Goal_Value(state); -- goal_acc->Put(accumulator->value,acc->state,acc->op); -+ this->goal_acc->Put(this->accumulator->value,this->acc->state,this->acc->op); - } -- goal_acc->Put(mga->Get_State(),mga->Get_Operator(),mga->Get_Result()); -- return goal_acc->Get_Value(); -+ this->goal_acc->Put(mga->Get_State(),mga->Get_Operator(),mga->Get_Result()); -+ return this->goal_acc->Get_Value(); - } - }; - diff -ruN --exclude=CVS /usr/ports/games/xarchon/pkg-descr ./pkg-descr --- /usr/ports/games/xarchon/pkg-descr 2002-11-24 14:33:47.000000000 +0100 +++ ./pkg-descr 2012-11-03 12:18:26.000000000 +0100 @@ -1,6 +1,11 @@ XArchon is a chess-like strategy game with battle options. It is modelled after the golden oldie Archon game created by -Freefall Associates and distributed by Electronic Arts. +Freefall Associates and distributed by Electronic Arts around 1985. + +In this game, the Light Side and Dark Side fight over control of a +chess-like board. Each side is composed of 18 fantastic creatures of +myth and legend, which are represented by images (or icons). While not +identical, the opposing sides are balanced in strength. WWW: http://xarchon.seul.org/ ===> Done --MP_/z.QpKcZcfn9Ub/mX8dfCGnS--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211041040.qA4Ae1XR035003>