Bug 116246 - [UPDATE] games/crafty-open-medium
Summary: [UPDATE] games/crafty-open-medium
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-10 03:20 UTC by shoemaker
Modified: 2007-09-10 05:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shoemaker 2007-09-10 03:20:01 UTC
	Since the crafty port has been updated, there are
inconsistencies in the opening book ports now.  Since the maintainer's
email bounces, I'll volunteer to maintain these as well.  The port has
been updated so that it'll actually be seen by crafty, and has been
made accessible for the learning function to work.

Fix: 

----------------------------------------------------------------------
Finally - A spam blocker that actually works.
http://www.bluebottle.com/tag/4--YzhwYGdhRYpvjBVJNF1ajx1C7V6gWup86rbObYAD2HZZmwA8
Content-Type: text/plain; name="file.shar"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.shar"

# 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:
#
#	crafty-open-medium
#	crafty-open-medium/files
#	crafty-open-medium/files/book-building
#	crafty-open-medium/Makefile
#	crafty-open-medium/distinfo
#	crafty-open-medium/pkg-descr
#	crafty-open-medium/pkg-plist
#
echo c - crafty-open-medium
mkdir -p crafty-open-medium > /dev/null 2>&1
echo c - crafty-open-medium/files
mkdir -p crafty-open-medium/files > /dev/null 2>&1
echo x - crafty-open-medium/files/book-building
sed 's/^X//' >crafty-open-medium/files/book-building << 'END-of-crafty-open-medium/files/book-building'
Xbook create book.txt 60 2 50
Xquit
END-of-crafty-open-medium/files/book-building
echo x - crafty-open-medium/Makefile
sed 's/^X//' >crafty-open-medium/Makefile << 'END-of-crafty-open-medium/Makefile'
X# New ports collection makefile for:	crafty-open-medium
X# Date created:				1 June 1998
X# Whom:					Stefan Eggers <seggers@semyam.dinoco.de>
X#
X# $FreeBSD: ports/games/crafty-open-medium/Makefile,v 1.9 2004/11/07 10:52:14 dd Exp $
X#
X
XPORTNAME=	crafty-open-medium
XPORTVERSION=	2
XCATEGORIES=	games
XMASTER_SITES=	${MASTER_SITE_LOCAL}
XMASTER_SITE_SUBDIR=	dd/crafty
XDISTNAME=	medium
X
XMAINTAINER=	shoemaker@bluebottle.com
XCOMMENT=	The medium opening book (about 1.9 MByte) for crafty
X
XBUILD_DEPENDS=	crafty:${PORTSDIR}/games/crafty
XRUN_DEPENDS=	crafty:${PORTSDIR}/games/crafty
X
XDIST_SUBDIR=		crafty
XUSE_ZIP=		yes
XNO_WRKSUBDIR=		yes
XCONFLICTS=	games/crafty-open-enormous-* games/crafty-open-large-*
X
X.include <bsd.port.pre.mk>
X
X.if ${ARCH} == "amd64"
XBROKEN=		"Coredump during build"
X.endif
X
Xdo-build:
X	@${ECHO_MSG} '================================================================'
X	@${ECHO_MSG} 'Ignore warnings about illegal moves.  These warnings are normal.'
X	@${ECHO_MSG} '================================================================'
X	(${CHOWN} nobody ${WRKDIR}; cd ${WRKDIR}; crafty <${FILESDIR}/book-building)
X
Xdo-install:
X	${MKDIR} ${PREFIX}/lib/crafty
X	${INSTALL_DATA} ${WRKDIR}/book.bin ${PREFIX}/lib/crafty/book.bin
X	${CHOWN} nobody:nogroup ${PREFIX}/lib/crafty/book.bin
X	${CHMOD} 664 ${PREFIX}/lib/crafty/book.bin
X
X.include <bsd.port.post.mk>
END-of-crafty-open-medium/Makefile
echo x - crafty-open-medium/distinfo
sed 's/^X//' >crafty-open-medium/distinfo << 'END-of-crafty-open-medium/distinfo'
XMD5 (crafty/medium.zip) = 6b4a61d15029811d7cdc34d6adae7a17
XSHA256 (crafty/medium.zip) = 5a509d00f99d8a4b8fc23e1e7f64a47733c85fc0a7e623eed6fb228101c4c45f
XSIZE (crafty/medium.zip) = 8714100
END-of-crafty-open-medium/distinfo
echo x - crafty-open-medium/pkg-descr
sed 's/^X//' >crafty-open-medium/pkg-descr << 'END-of-crafty-open-medium/pkg-descr'
XThis is the port of the medium opening book for crafty.  It consumes
Xabout 1.9 MByte.
X
XIt was created with "book create book.txt 60 2 50" (see the crafty
Xdocumentation and online help for a more thorough explanation of what
Xthis does)
END-of-crafty-open-medium/pkg-descr
echo x - crafty-open-medium/pkg-plist
sed 's/^X//' >crafty-open-medium/pkg-plist << 'END-of-crafty-open-medium/pkg-plist'
Xlib/crafty/book.bin
END-of-crafty-open-medium/pkg-plist
exit
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-09-10 03:20:11 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2007-09-10 03:29:50 UTC
State Changed
From-To: feedback->open

Maintainer was reset, therefor no approval requried.
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2007-09-10 04:54:33 UTC
State Changed
From-To: open->feedback

Can you please tell why you have changed the PORTVERSION from a 
date to a sequence number? 

And can you please submit the changes in "diff -u" format so we can 
easier see what has changed?
Comment 4 shoemaker 2007-09-10 05:24:07 UTC
>>>>> "edwin" == edwin  <edwin@FreeBSD.org> writes:

    edwin> Synopsis: [UPDATE] games/crafty-open-medium
    edwin> State-Changed-From-To: open->feedback State-Changed-By:
    edwin> edwin State-Changed-When: Mon Sep 10 03:54:33 UTC 2007
    edwin> State-Changed-Why: Can you please tell why you have changed
    edwin> the PORTVERSION from a date to a sequence number?

    edwin> And can you please submit the changes in "diff -u" format
    edwin> so we can easier see what has changed?

    edwin> http://www.freebsd.org/cgi/query-pr.cgi?pr=116246

        I guess I'm just used to sequences; dates are fine though, and
        it's been changed for the patch you requested, below.

--- crafty-open-medium/Makefile.orig	Sun Sep  9 22:11:48 2007
+++ crafty-open-medium/Makefile	Sun Sep  9 22:09:39 2007
@@ -2,17 +2,17 @@
 # Date created:				1 June 1998
 # Whom:					Stefan Eggers <seggers@semyam.dinoco.de>
 #
-# $FreeBSD: ports/games/crafty-open-medium/Makefile,v 1.10 2007/09/10 01:40:03 edwin Exp $
+# $FreeBSD: ports/games/crafty-open-medium/Makefile,v 1.9 2004/11/07 10:52:14 dd Exp $
 #
 
 PORTNAME=	crafty-open-medium
-PORTVERSION=	19960910
+PORTVERSION=	20070909
 CATEGORIES=	games
 MASTER_SITES=	${MASTER_SITE_LOCAL}
 MASTER_SITE_SUBDIR=	dd/crafty
 DISTNAME=	medium
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	shoemaker@bluebottle.com
 COMMENT=	The medium opening book (about 1.9 MByte) for crafty
 
 BUILD_DEPENDS=	crafty:${PORTSDIR}/games/crafty
@@ -21,6 +21,7 @@
 DIST_SUBDIR=		crafty
 USE_ZIP=		yes
 NO_WRKSUBDIR=		yes
+CONFLICTS=	games/crafty-open-enormous-* games/crafty-open-large-*
 
 .include <bsd.port.pre.mk>
 
@@ -32,10 +33,12 @@
 	@${ECHO_MSG} '================================================================'
 	@${ECHO_MSG} 'Ignore warnings about illegal moves.  These warnings are normal.'
 	@${ECHO_MSG} '================================================================'
-	(cd ${WRKDIR}; crafty <${FILESDIR}/book-building)
+	(${CHOWN} nobody ${WRKDIR}; cd ${WRKDIR}; crafty <${FILESDIR}/book-building)
 
 do-install:
 	${MKDIR} ${PREFIX}/lib/crafty
-	${INSTALL_DATA} ${WRKDIR}/book.bin ${PREFIX}/lib/crafty/medium-book.bin
+	${INSTALL_DATA} ${WRKDIR}/book.bin ${PREFIX}/lib/crafty/book.bin
+	${CHOWN} nobody:nogroup ${PREFIX}/lib/crafty/book.bin
+	${CHMOD} 664 ${PREFIX}/lib/crafty/book.bin
 
 .include <bsd.port.post.mk>

--- crafty-open-medium/pkg-descr.orig	Wed Jun  3 20:34:00 1998
+++ crafty-open-medium/pkg-descr	Sun Sep  9 20:07:38 2007
@@ -1,10 +1,6 @@
 This is the port of the medium opening book for crafty.  It consumes
 about 1.9 MByte.
 
-It was created with "book create book.txt 60 3" (see the crafty
+It was created with "book create book.txt 60 2 50" (see the crafty
 documentation and online help for a more thorough explanation of what
-this does) which discards all openings not played in at least three
-games which I expect to be a reasonable constant, but I am open to
-suggestions on this.
-
-- Stefan Eggers <seggers@semyam.dinoco.de>
+this does)

--- crafty-open-medium/pkg-plist.orig	Wed Jun  3 20:34:00 1998
+++ crafty-open-medium/pkg-plist	Sun Sep  9 20:07:51 2007
@@ -1,2 +1 @@
-lib/crafty/medium-book.bin
-@dirrm lib/crafty
+lib/crafty/book.bin

-- 
If only God would give me some clear sign!
Like making a large deposit in my name at a Swiss bank.
		-- Woody Allen, "Without Feathers"

----------------------------------------------------------------------
Get a free email address with REAL anti-spam protection.
http://www.bluebottle.com/tag/1
Comment 5 dfilter service freebsd_committer freebsd_triage 2007-09-10 05:40:46 UTC
edwin       2007-09-10 04:40:38 UTC

  FreeBSD ports repository

  Modified files:
    games/crafty-open-medium Makefile pkg-descr pkg-plist 
    games/crafty-open-medium/files book-building 
  Log:
  [UPDATE] games/crafty-open-medium
  
          Since the crafty port has been updated, there are inconsistencies
          in the opening book ports now. Since the maintainer's email
          bounces, I'll volunteer to maintain these as well. The port
          has been updated so that it'll actually be seen by crafty,
          and has been made accessible for the learning function to
          work.
  
  PR:             ports/116246
  Submitted by:   shoemaker@bluebottle.com (Jonathan Shoemaker)
  
  Revision  Changes    Path
  1.11      +11 -8     ports/games/crafty-open-medium/Makefile
  1.2       +1 -1      ports/games/crafty-open-medium/files/book-building
  1.2       +2 -6      ports/games/crafty-open-medium/pkg-descr
  1.2       +1 -2      ports/games/crafty-open-medium/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Edwin Groothuis freebsd_committer freebsd_triage 2007-09-10 05:41:04 UTC
State Changed
From-To: feedback->closed

Committed, thanks!
Comment 7 Edwin Groothuis freebsd_committer freebsd_triage 2007-09-10 05:41:04 UTC
State Changed
From-To: feedback->closed

Committed, thanks!