Initial import of games-strategy/daneel-ai ebuild (with
authorAaron Mavrinac <mavrinac@gmail.com>
Wed, 21 Jan 2009 14:59:04 +0000 (09:59 -0500)
committerAaron Mavrinac <mavrinac@gmail.com>
Wed, 21 Jan 2009 14:59:04 +0000 (09:59 -0500)
dev-python/logilab-constraint).

12 files changed:
dev-python/logilab-constraint/ChangeLog [new file with mode: 0644]
dev-python/logilab-constraint/Manifest [new file with mode: 0644]
dev-python/logilab-constraint/files/logilab-constraint-0.3.0-future.patch [new file with mode: 0644]
dev-python/logilab-constraint/logilab-constraint-0.3.0.ebuild [new file with mode: 0644]
dev-python/logilab-constraint/metadata.xml [new file with mode: 0644]
games-server/tpadmin-cpp/ChangeLog
games-server/tpadmin-cpp/Manifest
games-strategy/daneel-ai/ChangeLog [new file with mode: 0644]
games-strategy/daneel-ai/Manifest [new file with mode: 0644]
games-strategy/daneel-ai/daneel-ai-0.0.1.ebuild [new file with mode: 0644]
games-strategy/daneel-ai/files/daneel-ai [new file with mode: 0644]
games-strategy/daneel-ai/metadata.xml [new file with mode: 0644]

diff --git a/dev-python/logilab-constraint/ChangeLog b/dev-python/logilab-constraint/ChangeLog
new file mode 100644 (file)
index 0000000..8fb4d76
--- /dev/null
@@ -0,0 +1,8 @@
+# ChangeLog for dev-python/logilab-constraint
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*logilab-constraint-0.3.0 (21 Jan 2009)
+
+  21 Jan 2009; Aaron Mavrinac <mavrinac@gmail.com> logilab-constraint-0.3.0.ebuild:
+  Initial import
diff --git a/dev-python/logilab-constraint/Manifest b/dev-python/logilab-constraint/Manifest
new file mode 100644 (file)
index 0000000..216565f
--- /dev/null
@@ -0,0 +1,5 @@
+AUX logilab-constraint-0.3.0-future.patch 497 RMD160 b10f439878ece62ee267fbded0b2bfd5cedc58f3 SHA1 0885947687d29ac682558acf17946b8bf08247ae SHA256 302b7c8cf1a104894339422c8500d6ce643eab51f59b9b9e970bc405f6c65888
+DIST constraint-0.3.0.tar.gz 31073 RMD160 2ad758681addd572b94d08b04fcbe5dc5f28d29a SHA1 14fb4e627f0c5b15a0e4d1bc44d1ec11c6298025 SHA256 379082bf4b26e29a5a74d4b14462a6b316742cff7737e7da6187fed066b18d9d
+EBUILD logilab-constraint-0.3.0.ebuild 1167 RMD160 0fe9e69dbf310dcf7f74a911b4774ce42e9c5550 SHA1 8c0e011a911eee62c89999e2b361c69e1619a295 SHA256 6302131c672a36d30590738f778e073a9c78049b397cc285aec30dbfe99f93b4
+MISC ChangeLog 272 RMD160 b50f0b570e906a324cb8915775f197c5d9b474c5 SHA1 5a31a9459f68983120e1190df07572dc755db77e SHA256 ad5cb4ab9ec3904490d0c0174f5f2768e3a8c91d2d9720b359c39b588d7741ad
+MISC metadata.xml 354 RMD160 d40b4665fd01f0bdea2e07fc5531d716061b7418 SHA1 7d5a084373d98afbf1541a4b6638a76e18c90763 SHA256 7f263f36ed6360562e98954d179ab86c6885f1f462e06491bce2a6bb13a383cd
diff --git a/dev-python/logilab-constraint/files/logilab-constraint-0.3.0-future.patch b/dev-python/logilab-constraint/files/logilab-constraint-0.3.0-future.patch
new file mode 100644 (file)
index 0000000..5d6b3eb
--- /dev/null
@@ -0,0 +1,20 @@
+--- setup.py
++++ setup.py
+@@ -19,7 +19,6 @@
+ __revision__ = '$Id: setup.py,v 1.15 2005/01/03 18:43:53 alf Exp $'
+-from __future__ import nested_scopes
+ import os
+ import sys
+ import shutil
+--- propagation.py
++++ propagation.py
+@@ -18,7 +18,6 @@
+ __revision__ = '$Id: propagation.py,v 1.36 2005/07/13 08:48:22 ludal Exp $'
+-from __future__ import generators
+ from logilab.constraint.interfaces import DomainInterface, ConstraintInterface
+ import bisect, operator
+ from time import strftime
diff --git a/dev-python/logilab-constraint/logilab-constraint-0.3.0.ebuild b/dev-python/logilab-constraint/logilab-constraint-0.3.0.ebuild
new file mode 100644 (file)
index 0000000..ceb1161
--- /dev/null
@@ -0,0 +1,53 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit distutils
+
+MY_P=${P#logilab-}
+DESCRIPTION="A finite domain constraints solver written in 100% pure Python"
+HOMEPAGE="http://www.logilab.org/projects/constraint/"
+SRC_URI="http://ftp.logilab.org/pub/constraint/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="doc"
+
+DOCS="doc/CONTRIBUTORS"
+PYTHON_MODNAME="logilab/constraint"
+
+DEPEND=""
+RDEPEND=">=dev-python/logilab-common-0.12.0"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       epatch ${FILESDIR}/${P}-future.patch
+}
+
+src_install() {
+       distutils_src_install
+       
+       # avoid conflict with dev-python/logilab-common:
+       rm -f ${D}usr/$(get_libdir)/python*/site-packages/logilab/__init__.py
+
+       if use doc; then
+               dohtml doc/documentation.html
+               insinto /usr/share/doc/${PF}
+               doins -r examples
+       fi
+}
+
+pkg_postinst() {
+       distutils_pkg_postinst
+       if use x86 && ! has_version dev-python/psyco ; then
+               einfo ""
+               einfo "Although it is not required, you should consider installing"
+               einfo "\"dev-python/psyco\". It can speed up this module a lot."
+               einfo ""
+       fi
+}
diff --git a/dev-python/logilab-constraint/metadata.xml b/dev-python/logilab-constraint/metadata.xml
new file mode 100644 (file)
index 0000000..b45d892
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+<herd>games</herd>
+<maintainer>
+  <name>Aaron Mavrinac</name>
+  <email>mavrinac@gmail.com</email>
+</maintainer>
+<longdescription>A command-line administration utility for Thousand Parsec servers.</longdescription>
+</pkgmetadata>
index 1222cad..130acae 100644 (file)
@@ -2,9 +2,9 @@
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
-*tpadmin-cpp-0.1.0 (12 Jan 2008)
+*tpadmin-cpp-0.1.0 (12 Jan 2009)
 
-  12 Jan 2008; Aaron Mavrinac <mavrinac@gmail.com> tpadmin-cpp-0.1.0.ebuild:
+  12 Jan 2009; Aaron Mavrinac <mavrinac@gmail.com> tpadmin-cpp-0.1.0.ebuild:
   New version
 
   30 Sep 2008; Aaron Mavrinac <mavrinac@gmail.com> tpadmin-cpp-9999.ebuild: 
index 9c70ada..00af933 100644 (file)
@@ -1,5 +1,5 @@
 DIST tpadmin-cpp-0.1.0.tar.gz 159598 RMD160 523533de1dbac47847561abe825c7b4457a970b9 SHA1 2e5b31106c54a1d46f5d59833149175ab93c4626 SHA256 082aea8c60effd1728be13b7200c2e416ffc0da5ef9f6c45a77b864a2c66d4b6
 EBUILD tpadmin-cpp-0.1.0.ebuild 789 RMD160 de51cdea25129e456e00357c5eff59412b7f4238 SHA1 ede41032720650cecaebc780992ce4fbcbf25da7 SHA256 450a4f0493c2b86ec93810c9b2d34e983597c647fce7f4d464334a22aa673727
 EBUILD tpadmin-cpp-9999.ebuild 831 RMD160 bdcda4a69d4a940e074c3d25aa357336f671255f SHA1 a718185c07f958221e2fcc1dddd79af6aefece72 SHA256 d07535d14de606c768ceeef467a45e2b309ee020c01757a70b6217e70f9d5c0d
-MISC ChangeLog 376 RMD160 ad57571f8bf6f71783e599ac671c9ae7149aa89b SHA1 1e9ef4ffc3d1a67be8dba61e2e4209f4c4aebc6b SHA256 498a2700f37b89716ff9a2ecb6b9884b24659a9eafc8b9425ba27a632fdd2502
+MISC ChangeLog 376 RMD160 42a500616e8fdf56e32efafbabe8c25f84103338 SHA1 cec35eb35e0267aa1875995ec434ee3ed4893431 SHA256 4a42880c68b94636cc97258b96997c7ddf42d8f6af04fcc37fbd4c34a2d6468f
 MISC metadata.xml 354 RMD160 d40b4665fd01f0bdea2e07fc5531d716061b7418 SHA1 7d5a084373d98afbf1541a4b6638a76e18c90763 SHA256 7f263f36ed6360562e98954d179ab86c6885f1f462e06491bce2a6bb13a383cd
diff --git a/games-strategy/daneel-ai/ChangeLog b/games-strategy/daneel-ai/ChangeLog
new file mode 100644 (file)
index 0000000..6bbbd1b
--- /dev/null
@@ -0,0 +1,8 @@
+# ChangeLog for games-strategy/daneel-ai
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*daneel-ai-0.0.1 (21 Jan 2009)
+
+  21 Jan 2009; Aaron Mavrinac <mavrinac@gmail.com> daneel-ai-0.0.1.ebuild: 
+  Initial import
diff --git a/games-strategy/daneel-ai/Manifest b/games-strategy/daneel-ai/Manifest
new file mode 100644 (file)
index 0000000..d03a9b2
--- /dev/null
@@ -0,0 +1,5 @@
+AUX daneel-ai 39 RMD160 05ce631da57ca70db705f4392be946c552bbb2e1 SHA1 963f9e002358ecc2879b266bee10e717657fabb1 SHA256 d38023d0f258efd1915f149812de790ddb3c0eaabdee331bdb48c25ad4f36b74
+DIST daneel-ai-0.0.1.tar.bz2 26635 RMD160 de289a4e070fb7fff5bf710f7e5e4cef68f3e3b3 SHA1 71e0217fe1486a0fa36bdcc6db2f0944ed6fa0f6 SHA256 4ef24c673d83fe6f2209a67ae88c70c52badf552a22fbe409585f6e42a313377
+EBUILD daneel-ai-0.0.1.ebuild 1294 RMD160 db5ef49aa91f5a4f4556e2715684b7de8b9f1bc5 SHA1 31bc9a801f250a1a5af17542c163cc40949e730b SHA256 8aec0da21e1698cd9c8fb710f6f06e5be396cd35a5a9a9157404d9edae97bf2c
+MISC ChangeLog 250 RMD160 578fcf08b1d586826a2501d356a93be0ca2707a0 SHA1 1a00ac9f2e93770cbb7c632208f8555de2bdbe22 SHA256 2b2484f5e1c36a6ebc47a65ea103bbadb8ba86be98ea35331b15145c5eed57dc
+MISC metadata.xml 334 RMD160 8096c25a9bf6294c2237efdf06ba6c3fd7d86d00 SHA1 d0d088119890d7e1a770910f6ec48a87f687a276 SHA256 87ff1e2c137900f3f39644b37aa3639241e02c56284e55ab64cbf6388b03c91f
diff --git a/games-strategy/daneel-ai/daneel-ai-0.0.1.ebuild b/games-strategy/daneel-ai/daneel-ai-0.0.1.ebuild
new file mode 100644 (file)
index 0000000..2071cca
--- /dev/null
@@ -0,0 +1,57 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+NEED_PYTHON=2.3
+
+inherit distutils eutils python games
+
+DESCRIPTION="An advanced rule based AI for Thousand Parsec."
+HOMEPAGE="http://www.thousandparsec.net/tp/"
+SRC_URI="mirror://sourceforge/thousandparsec/${P}.tar.bz2
+               http://www.thousandparsec.net/tp/downloads/${PN}/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="virtual/python
+       dev-python/setuptools"
+RDEPEND="virtual/python
+       >=dev-games/libtpclient-py-0.3.1-r1
+       dev-python/logilab-constraint"
+
+pkg_setup() {
+       games_pkg_setup
+}
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       rm setup.py
+}
+
+src_install() {
+       exeinto "$(games_get_libdir)"/${PN}
+       doexe daneel-ai || die "doexe src failed"
+       insinto "$(games_get_libdir)"/${PN}
+       doins *.py || die "doins src failed"
+       insinto "$(games_get_libdir)"/${PN}/rules
+       doins rules/* || die "doins rules failed"
+
+       sed s%..CODEPATH..%"$(games_get_libdir)"/${PN}%g ${FILESDIR}/daneel-ai \
+       > ${WORKDIR}/daneel-ai
+       dogamesbin ${WORKDIR}/daneel-ai
+
+       dodoc AUTHORS README TODO
+       prepgamesdirs
+}
+
+pkg_postinst() {
+       games_pkg_postinst
+       python_mod_optimize "${ROOT}$(games_get_libdir)"/${PN}
+}
+
+pkg_postrm() {
+       python_mod_cleanup "${ROOT}$(games_get_libdir)"/${PN}
+}
diff --git a/games-strategy/daneel-ai/files/daneel-ai b/games-strategy/daneel-ai/files/daneel-ai
new file mode 100644 (file)
index 0000000..b715c64
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+..CODEPATH../daneel-ai $@
diff --git a/games-strategy/daneel-ai/metadata.xml b/games-strategy/daneel-ai/metadata.xml
new file mode 100644 (file)
index 0000000..786d926
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+<herd>games</herd>
+<maintainer>
+  <name>Aaron Mavrinac</name>
+  <email>mavrinac@gmail.com</email>
+</maintainer>
+<longdescription>An advanced rule-based AI for Thousand Parsec.</longdescription>
+</pkgmetadata>