From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 612D4138331 for ; Sun, 25 Mar 2018 19:52:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 84DABE0907; Sun, 25 Mar 2018 19:52:00 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4D23FE0907 for ; Sun, 25 Mar 2018 19:52:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 48874335C05 for ; Sun, 25 Mar 2018 19:51:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C3EAE258 for ; Sun, 25 Mar 2018 19:51:56 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1522007496.9fa283b13aa8846ede5af588ae3aebe2154c7c05.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-games/physfs/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-games/physfs/metadata.xml dev-games/physfs/physfs-3.0.1-r1.ebuild dev-games/physfs/physfs-9999.ebuild X-VCS-Directories: dev-games/physfs/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 9fa283b13aa8846ede5af588ae3aebe2154c7c05 X-VCS-Branch: master Date: Sun, 25 Mar 2018 19:51:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: caec1b9e-81f6-4ce7-8d08-5dc15d0428e9 X-Archives-Hash: f859a00b68037db9e006f22dc2d1d425 commit: 9fa283b13aa8846ede5af588ae3aebe2154c7c05 Author: Azamat H. Hackimov gmail com> AuthorDate: Wed Mar 21 11:55:26 2018 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sun Mar 25 19:51:36 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fa283b1 dev-games/physfs: added new USE-flags Added 7zip (Bug #381973), iso, vdf, slb file formats support, cleanup for outdated code (Bug #649456). Closes: https://bugs.gentoo.org/381973 Closes: https://bugs.gentoo.org/649456 Package-Manager: Portage-2.3.24, Repoman-2.3.6 Closes: https://github.com/gentoo/gentoo/pull/7532 dev-games/physfs/metadata.xml | 4 +++ dev-games/physfs/physfs-3.0.1-r1.ebuild | 50 +++++++++++++++++++++++++++++++++ dev-games/physfs/physfs-9999.ebuild | 35 +++++++++++++---------- 3 files changed, 74 insertions(+), 15 deletions(-) diff --git a/dev-games/physfs/metadata.xml b/dev-games/physfs/metadata.xml index 5bca86689c4..62272a610b6 100644 --- a/dev-games/physfs/metadata.xml +++ b/dev-games/physfs/metadata.xml @@ -23,9 +23,13 @@ the user's home directory, where in the real filesystem your program is running, etc. +Enable 7zip/lzma archive support Enable Build Engine GRP archive support Enable Descent I/II HOG archive support +Enable ISO9660 file support Enable Descent I/II MVL archive support +Enable Independence War SLB archive support +Enable Gothic/Gothic II VDF archive support Enable Doom WAD archive support Enable Quake I/II QPAK archive support Enable ZIP archive support diff --git a/dev-games/physfs/physfs-3.0.1-r1.ebuild b/dev-games/physfs/physfs-3.0.1-r1.ebuild new file mode 100644 index 00000000000..237ccc12699 --- /dev/null +++ b/dev-games/physfs/physfs-3.0.1-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-multilib + +DESCRIPTION="Abstraction layer for filesystem and archive access" +HOMEPAGE="http://icculus.org/physfs/" +SRC_URI="http://icculus.org/physfs/downloads/${P}.tar.bz2" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc64 ~x86 ~x86-fbsd" +IUSE="7zip doc grp hog iso mvl qpak slb static-libs vdf wad +zip" + +DEPEND="doc? ( app-doc/doxygen )" + +DOCS=( docs/CHANGELOG.txt docs/CREDITS.txt docs/TODO.txt ) + +multilib_src_configure() { + local mycmakeargs=( + -DPHYSFS_BUILD_SHARED=ON + -DPHYSFS_BUILD_TEST=OFF + -DPHYSFS_BUILD_STATIC="$(usex static-libs)" + -DPHYSFS_ARCHIVE_7Z="$(usex 7zip)" + -DPHYSFS_ARCHIVE_GRP="$(usex grp)" + -DPHYSFS_ARCHIVE_HOG="$(usex hog)" + -DPHYSFS_ARCHIVE_ISO9660="$(usex iso)" + -DPHYSFS_ARCHIVE_MVL="$(usex mvl)" + -DPHYSFS_ARCHIVE_SLB="$(usex slb)" + -DPHYSFS_ARCHIVE_VDF="$(usex vdf)" + -DPHYSFS_ARCHIVE_WAD="$(usex wad)" + -DPHYSFS_ARCHIVE_QPAK="$(usex qpak)" + -DPHYSFS_ARCHIVE_ZIP="$(usex zip)" + ) + cmake-utils_src_configure +} + +multilib_src_compile() { + cmake-utils_src_compile + multilib_is_native_abi && use doc && cmake-utils_src_compile docs +} + +multilib_src_install_all() { + einstalldocs + if use doc ; then + docinto html + dodoc -r "${CMAKE_BUILD_DIR}"/docs/html/* + fi +} diff --git a/dev-games/physfs/physfs-9999.ebuild b/dev-games/physfs/physfs-9999.ebuild index a3cfee4fd57..d001542c16e 100644 --- a/dev-games/physfs/physfs-9999.ebuild +++ b/dev-games/physfs/physfs-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -16,36 +16,41 @@ fi LICENSE="ZLIB" SLOT="0" -IUSE="grp hog mvl qpak static-libs wad +zip" +IUSE="7zip doc grp hog iso mvl qpak slb static-libs vdf wad +zip" RDEPEND="" DEPEND="" DOCS=( docs/CHANGELOG.txt docs/CREDITS.txt docs/TODO.txt ) -src_prepare() { - cmake-utils_src_prepare - - sed -i -e 's:-Werror::' CMakeLists.txt || die - # make sure these libs aren't used - rm -rf lzma zlib* -} - -src_configure() { +multilib_src_configure() { local mycmakeargs=( - -DPHYSFS_ARCHIVE_7Z=OFF -DPHYSFS_BUILD_SHARED=ON -DPHYSFS_BUILD_TEST=OFF - -DPHYSFS_BUILD_WX_TEST=OFF - -DPHYSFS_INTERNAL_ZLIB=OFF -DPHYSFS_BUILD_STATIC="$(usex static-libs)" + -DPHYSFS_ARCHIVE_7Z="$(usex 7zip)" -DPHYSFS_ARCHIVE_GRP="$(usex grp)" -DPHYSFS_ARCHIVE_HOG="$(usex hog)" + -DPHYSFS_ARCHIVE_ISO9660="$(usex iso)" -DPHYSFS_ARCHIVE_MVL="$(usex mvl)" + -DPHYSFS_ARCHIVE_SLB="$(usex slb)" + -DPHYSFS_ARCHIVE_VDF="$(usex vdf)" -DPHYSFS_ARCHIVE_WAD="$(usex wad)" -DPHYSFS_ARCHIVE_QPAK="$(usex qpak)" -DPHYSFS_ARCHIVE_ZIP="$(usex zip)" ) + cmake-utils_src_configure +} + +multilib_src_compile() { + cmake-utils_src_compile + multilib_is_native_abi && use doc && cmake-utils_src_compile docs +} - cmake-multilib_src_configure +multilib_src_install_all() { + einstalldocs + if use doc ; then + docinto html + dodoc -r "${CMAKE_BUILD_DIR}"/docs/html/* + fi }