summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2009-05-24 22:50:07 +0000
committerTristan Heaven <nyhm@gentoo.org>2009-05-24 22:50:07 +0000
commit70b1de1b6e5c6acab9652369d716049da50a3fb3 (patch)
treed4b6daa517a5d7ff478ed671948503e43116321a /dev-games
parentAdd dependencies for building atm programs. Thanks to Status. (diff)
downloadgentoo-2-70b1de1b6e5c6acab9652369d716049da50a3fb3.tar.gz
gentoo-2-70b1de1b6e5c6acab9652369d716049da50a3fb3.tar.bz2
gentoo-2-70b1de1b6e5c6acab9652369d716049da50a3fb3.zip
Version bump
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'dev-games')
-rw-r--r--dev-games/physfs/ChangeLog8
-rw-r--r--dev-games/physfs/metadata.xml8
-rw-r--r--dev-games/physfs/physfs-2.0.0.ebuild56
3 files changed, 71 insertions, 1 deletions
diff --git a/dev-games/physfs/ChangeLog b/dev-games/physfs/ChangeLog
index ff9a75e96be2..f6a312b2fa64 100644
--- a/dev-games/physfs/ChangeLog
+++ b/dev-games/physfs/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-games/physfs
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-games/physfs/ChangeLog,v 1.20 2009/04/12 16:33:55 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-games/physfs/ChangeLog,v 1.21 2009/05/24 22:50:07 nyhm Exp $
+
+*physfs-2.0.0 (24 May 2009)
+
+ 24 May 2009; Tristan Heaven <nyhm@gentoo.org> +physfs-2.0.0.ebuild,
+ metadata.xml:
+ Version bump
*physfs-1.0.2 (12 Apr 2009)
diff --git a/dev-games/physfs/metadata.xml b/dev-games/physfs/metadata.xml
index 410bd1073a8c..e67532100d47 100644
--- a/dev-games/physfs/metadata.xml
+++ b/dev-games/physfs/metadata.xml
@@ -19,4 +19,12 @@ PhysicsFS gives you platform-abstracted means to determine if CD-ROMs are availa
the user's home directory, where in the real filesystem your program is running,
etc.
</longdescription>
+<use>
+<flag name="grp">Enable Build Engine GRP archive support</flag>
+<flag name="hog">Enable Descent I/II HOG archive support</flag>
+<flag name="mvl">Enable Descent I/II MVL archive support</flag>
+<flag name="wad">Enable Doom WAD archive support</flag>
+<flag name="qpak">Enable Quake I/II QPAK archive support</flag>
+<flag name="zip">Enable ZIP archive support</flag>
+</use>
</pkgmetadata>
diff --git a/dev-games/physfs/physfs-2.0.0.ebuild b/dev-games/physfs/physfs-2.0.0.ebuild
new file mode 100644
index 000000000000..1206adb911d2
--- /dev/null
+++ b/dev-games/physfs/physfs-2.0.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-games/physfs/physfs-2.0.0.ebuild,v 1.1 2009/05/24 22:50:07 nyhm Exp $
+
+EAPI=2
+inherit cmake-utils
+
+DESCRIPTION="Abstraction layer for filesystem and archive access"
+HOMEPAGE="http://icculus.org/physfs/"
+SRC_URI="http://icculus.org/physfs/downloads/${P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="doc grp hog mvl wad qpak +zip"
+
+RDEPEND=""
+DEPEND="doc? ( app-doc/doxygen )"
+
+src_prepare() {
+ # make sure these libs aren't used
+ rm -rf lzma zlib*
+}
+
+src_configure() {
+ local mycmakeargs="
+ -DPHYSFS_ARCHIVE_7Z=OFF
+ -DPHYSFS_BUILD_SHARED=ON
+ -DPHYSFS_BUILD_STATIC=ON
+ -DPHYSFS_BUILD_TEST=OFF
+ -DPHYSFS_BUILD_WX_TEST=OFF
+ -DPHYSFS_INTERNAL_ZLIB=OFF
+ $(cmake-utils_use grp PHYSFS_ARCHIVE_GRP)
+ $(cmake-utils_use hog PHYSFS_ARCHIVE_HOG)
+ $(cmake-utils_use mvl PHYSFS_ARCHIVE_MVL)
+ $(cmake-utils_use wad PHYSFS_ARCHIVE_WAD)
+ $(cmake-utils_use qpak PHYSFS_ARCHIVE_QPAK)
+ $(cmake-utils_use zip PHYSFS_ARCHIVE_ZIP)"
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc ; then
+ doxygen || die "doxygen failed"
+ fi
+}
+
+src_install() {
+ local DOCS="CHANGELOG.txt CREDITS.txt TODO.txt"
+ local HTML_DOCS=$(use doc && echo docs/html/*)
+
+ cmake-utils_src_install
+}