* [gentoo-commits] repo/gentoo:master commit in: dev-games/physfs/files/, dev-games/physfs/
@ 2017-01-27 1:16 Lars Wendler
0 siblings, 0 replies; 4+ messages in thread
From: Lars Wendler @ 2017-01-27 1:16 UTC (permalink / raw
To: gentoo-commits
commit: 9b91b03948c710ae7f93a71151548714821077ca
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 27 01:15:55 2017 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Fri Jan 27 01:16:08 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b91b039
dev-games/physfs: Revbump to fix an issue with >=sys-libs/zlib-1.2.9
(see http://icculus.org/pipermail/physfs/2017-January/001217.html)
Big thank you to Andrei Karas (games-rpg/manaplus developer) for
pointing me in the right direction and providing a patch.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
dev-games/physfs/files/physfs-2.0.3-zip_seek.diff | 15 ++++++
dev-games/physfs/physfs-2.0.3-r2.ebuild | 63 +++++++++++++++++++++++
2 files changed, 78 insertions(+)
diff --git a/dev-games/physfs/files/physfs-2.0.3-zip_seek.diff b/dev-games/physfs/files/physfs-2.0.3-zip_seek.diff
new file mode 100644
index 00000000..eaab07e
--- /dev/null
+++ b/dev-games/physfs/files/physfs-2.0.3-zip_seek.diff
@@ -0,0 +1,15 @@
+http://icculus.org/pipermail/physfs/2017-January/001217.html
+
+diff -r 34ebe997c5c0 archivers/zip.c
+--- a/archivers/zip.c Fri Jan 01 12:53:41 2016 -0500
++++ b/archivers/zip.c Wed Jan 25 20:56:26 2017 +0300
+@@ -327,7 +327,8 @@
+ return(0);
+
+ inflateEnd(&finfo->stream);
+- memcpy(&finfo->stream, &str, sizeof (z_stream));
++ inflateCopy(&finfo->stream, &str);
++ inflateEnd(&str);
+ finfo->uncompressed_position = finfo->compressed_position = 0;
+ } /* if */
+
diff --git a/dev-games/physfs/physfs-2.0.3-r2.ebuild b/dev-games/physfs/physfs-2.0.3-r2.ebuild
new file mode 100644
index 00000000..999e09e
--- /dev/null
+++ b/dev-games/physfs/physfs-2.0.3-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="doc grp hog mvl qpak static-libs wad +zip"
+
+RDEPEND=""
+DEPEND="doc? ( app-doc/doxygen )"
+
+PATCHES=(
+ "${FILESDIR}/${P}-zip_seek.diff"
+)
+
+src_prepare() {
+ default
+ sed -i -e 's:-Werror::' CMakeLists.txt || die
+ # 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_TEST=OFF
+ -DPHYSFS_BUILD_WX_TEST=OFF
+ -DPHYSFS_INTERNAL_ZLIB=OFF
+ -DPHYSFS_BUILD_STATIC="$(usex static-libs)"
+ -DPHYSFS_ARCHIVE_GRP="$(usex grp)"
+ -DPHYSFS_ARCHIVE_HOG="$(usex hog)"
+ -DPHYSFS_ARCHIVE_MVL="$(usex mvl)"
+ -DPHYSFS_ARCHIVE_WAD="$(usex wad)"
+ -DPHYSFS_ARCHIVE_QPAK="$(usex qpak)"
+ -DPHYSFS_ARCHIVE_ZIP="$(usex zip)"
+ )
+
+ cmake-multilib_src_configure
+}
+
+src_compile() {
+ cmake-multilib_src_compile
+
+ if multilib_is_native_abi && use doc ; then
+ doxygen || die "doxygen failed"
+ fi
+}
+
+src_install() {
+ local DOCS=( CHANGELOG.txt CREDITS.txt TODO.txt )
+ local HTML_DOCS=$(usex doc 'docs/html/*' '')
+
+ cmake-multilib_src_install
+}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-games/physfs/files/, dev-games/physfs/
@ 2019-03-04 20:49 James Le Cuirot
0 siblings, 0 replies; 4+ messages in thread
From: James Le Cuirot @ 2019-03-04 20:49 UTC (permalink / raw
To: gentoo-commits
commit: 248251bc5b1dfbcec32db163495310f15c0b9d9f
Author: Stefan Strogin <stefan.strogin <AT> gmail <DOT> com>
AuthorDate: Sun Mar 3 15:19:47 2019 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Mar 4 20:48:48 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=248251bc
dev-games/physfs: backport patch to fix PHYSFS_setWriteDir
There was a bug in PHYSFS_setWriteDir() that caused creating an empty
file "$HOME/.lincity-ng" instead of a directory on the first run of
lincity-ng:
https://github.com/lincity-ng/lincity-ng/issues/25
The upstream patch is added to <stable-3.0> branch but no release is
made so far. Backport it.
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Stefan Strogin <stefan.strogin <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/11231
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
.../physfs/files/physfs-3.0.1-setwritedir.patch | 40 ++++++++++++++++++++++
...ysfs-3.0.1-r1.ebuild => physfs-3.0.1-r2.ebuild} | 4 ++-
2 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/dev-games/physfs/files/physfs-3.0.1-setwritedir.patch b/dev-games/physfs/files/physfs-3.0.1-setwritedir.patch
new file mode 100644
index 00000000000..9673e12a2b2
--- /dev/null
+++ b/dev-games/physfs/files/physfs-3.0.1-setwritedir.patch
@@ -0,0 +1,40 @@
+Upstream-Status: Backport
+[https://hg.icculus.org/icculus/physfs/rev/a29fef4a20fd]
+
+# HG changeset patch
+# User Ryan C. Gordon <icculus@icculus.org>
+# Date 1526514891 14400
+# Node ID a29fef4a20fd79ead82998c91dc4828ed5061cb5
+# Parent db8f944df5c56f0244229813203fb5b24e8d9968
+PHYSFS_setWriteDir() shouldn't create an empty file if the dir doesn't exist.
+(transplanted from 2653b3bc19c9ba7d1e6bf53566719e4e30935382)
+
+diff -r db8f944df5c5 -r a29fef4a20fd src/physfs.c
+--- a/src/physfs.c Thu Apr 19 10:06:38 2018 -0400
++++ b/src/physfs.c Wed May 16 19:54:51 2018 -0400
+@@ -879,13 +879,20 @@
+
+ if (io == NULL)
+ {
++ /* file doesn't exist, etc? Just fail out. */
++ PHYSFS_Stat statbuf;
++ BAIL_IF_ERRPASS(!__PHYSFS_platformStat(d, &statbuf, 1), NULL);
++
+ /* DIR gets first shot (unlike the rest, it doesn't deal with files). */
+- retval = tryOpenDir(io, &__PHYSFS_Archiver_DIR, d, forWriting, &claimed);
+- if (retval || claimed)
+- return retval;
++ if (statbuf.filetype == PHYSFS_FILETYPE_DIRECTORY)
++ {
++ retval = tryOpenDir(io, &__PHYSFS_Archiver_DIR, d, forWriting, &claimed);
++ if (retval || claimed)
++ return retval;
++ } /* if */
+
+ io = __PHYSFS_createNativeIo(d, forWriting ? 'w' : 'r');
+- BAIL_IF_ERRPASS(!io, 0);
++ BAIL_IF_ERRPASS(!io, NULL);
+ created_io = 1;
+ } /* if */
+
+
diff --git a/dev-games/physfs/physfs-3.0.1-r1.ebuild b/dev-games/physfs/physfs-3.0.1-r2.ebuild
similarity index 93%
rename from dev-games/physfs/physfs-3.0.1-r1.ebuild
rename to dev-games/physfs/physfs-3.0.1-r2.ebuild
index 237ccc12699..79ee475a7b8 100644
--- a/dev-games/physfs/physfs-3.0.1-r1.ebuild
+++ b/dev-games/physfs/physfs-3.0.1-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -17,6 +17,8 @@ DEPEND="doc? ( app-doc/doxygen )"
DOCS=( docs/CHANGELOG.txt docs/CREDITS.txt docs/TODO.txt )
+PATCHES=( "${FILESDIR}/${P}-setwritedir.patch" )
+
multilib_src_configure() {
local mycmakeargs=(
-DPHYSFS_BUILD_SHARED=ON
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-games/physfs/files/, dev-games/physfs/
@ 2019-05-13 0:18 Andreas Sturmlechner
0 siblings, 0 replies; 4+ messages in thread
From: Andreas Sturmlechner @ 2019-05-13 0:18 UTC (permalink / raw
To: gentoo-commits
commit: a6d7711951a8c8636464baf48d951889ac0e6cf9
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun May 12 22:40:48 2019 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon May 13 00:17:45 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6d77119
dev-games/physfs: Drop 3.0.1-r2
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
dev-games/physfs/Manifest | 1 -
.../physfs/files/physfs-3.0.1-setwritedir.patch | 40 ---------------
dev-games/physfs/physfs-3.0.1-r2.ebuild | 58 ----------------------
3 files changed, 99 deletions(-)
diff --git a/dev-games/physfs/Manifest b/dev-games/physfs/Manifest
index d80736dbad1..bad255dab36 100644
--- a/dev-games/physfs/Manifest
+++ b/dev-games/physfs/Manifest
@@ -1,3 +1,2 @@
DIST physfs-2.0.3.tar.bz2 560628 BLAKE2B 8e3e8497463886678aaa671269133513f08aab1e49a6397f61cd44a5139030326ae0889e795401a967b0641f680f353dfaa39d7102502c2b8e0680c0a5d158b5 SHA512 47eff0c81b8dc3bb526766b0a8ad2437d2951867880116d6e6e8f2ec1490e263541fb741867fed6517cc3fa8a9c5651b36e3e02a499f19cfdc5c7261c9707e80
-DIST physfs-3.0.1.tar.bz2 194638 BLAKE2B a95e599ad5c8c5aafcd9b6569c8b7762bdd0fcdbf9502f8fda61f5068b25c8cf651ce6127a1f139b20baa93bd9ab001d2527aedc0180c3b60246410ab0d35acb SHA512 ddf3b075ccb506da5e9a1ce96001be402752b9b777c2e816a85d48aff3626ff0886ea43eb07bd300fe3a9f59b9a002f54d822c51d483a4ee94b38378534c1879
DIST physfs-3.0.2.tar.bz2 194888 BLAKE2B 67b6b04e3822c2528a31a2c60345238cb5f25ad031e32a6c3416b91bad6347af9f02dcfb8dc29a71c2bfc2b7cec7f0749ffbbd0dcadbc35703576ad895f568d9 SHA512 4024b6c3348e0b6fc1036aac330192112dfe17de3e3d14773be9f06e9a062df5a1006869f21162b4e0b584989f463788a35e64186b1913225c073fea62754472
diff --git a/dev-games/physfs/files/physfs-3.0.1-setwritedir.patch b/dev-games/physfs/files/physfs-3.0.1-setwritedir.patch
deleted file mode 100644
index 9673e12a2b2..00000000000
--- a/dev-games/physfs/files/physfs-3.0.1-setwritedir.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-Upstream-Status: Backport
-[https://hg.icculus.org/icculus/physfs/rev/a29fef4a20fd]
-
-# HG changeset patch
-# User Ryan C. Gordon <icculus@icculus.org>
-# Date 1526514891 14400
-# Node ID a29fef4a20fd79ead82998c91dc4828ed5061cb5
-# Parent db8f944df5c56f0244229813203fb5b24e8d9968
-PHYSFS_setWriteDir() shouldn't create an empty file if the dir doesn't exist.
-(transplanted from 2653b3bc19c9ba7d1e6bf53566719e4e30935382)
-
-diff -r db8f944df5c5 -r a29fef4a20fd src/physfs.c
---- a/src/physfs.c Thu Apr 19 10:06:38 2018 -0400
-+++ b/src/physfs.c Wed May 16 19:54:51 2018 -0400
-@@ -879,13 +879,20 @@
-
- if (io == NULL)
- {
-+ /* file doesn't exist, etc? Just fail out. */
-+ PHYSFS_Stat statbuf;
-+ BAIL_IF_ERRPASS(!__PHYSFS_platformStat(d, &statbuf, 1), NULL);
-+
- /* DIR gets first shot (unlike the rest, it doesn't deal with files). */
-- retval = tryOpenDir(io, &__PHYSFS_Archiver_DIR, d, forWriting, &claimed);
-- if (retval || claimed)
-- return retval;
-+ if (statbuf.filetype == PHYSFS_FILETYPE_DIRECTORY)
-+ {
-+ retval = tryOpenDir(io, &__PHYSFS_Archiver_DIR, d, forWriting, &claimed);
-+ if (retval || claimed)
-+ return retval;
-+ } /* if */
-
- io = __PHYSFS_createNativeIo(d, forWriting ? 'w' : 'r');
-- BAIL_IF_ERRPASS(!io, 0);
-+ BAIL_IF_ERRPASS(!io, NULL);
- created_io = 1;
- } /* if */
-
-
diff --git a/dev-games/physfs/physfs-3.0.1-r2.ebuild b/dev-games/physfs/physfs-3.0.1-r2.ebuild
deleted file mode 100644
index fe097f9f54e..00000000000
--- a/dev-games/physfs/physfs-3.0.1-r2.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-inherit cmake-multilib
-
-DESCRIPTION="Abstraction layer for filesystem and archive access"
-HOMEPAGE="https://icculus.org/physfs/"
-
-if [[ ${PV} == *9999* ]]; then
- EHG_REPO_URI="https://hg.icculus.org/icculus/physfs"
- inherit mercurial
-else
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc64 ~x86 ~x86-fbsd"
- SRC_URI="https://icculus.org/physfs/downloads/${P}.tar.bz2"
-fi
-
-LICENSE="ZLIB"
-SLOT="0"
-IUSE="7zip doc grp hog iso mvl qpak slb static-libs vdf wad +zip"
-
-BDEPEND="doc? ( app-doc/doxygen )"
-
-DOCS=( docs/CHANGELOG.txt docs/CREDITS.txt docs/TODO.txt )
-
-PATCHES=( "${FILESDIR}/${P}-setwritedir.patch" )
-
-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
-}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-games/physfs/files/, dev-games/physfs/
@ 2021-07-17 7:55 James Le Cuirot
0 siblings, 0 replies; 4+ messages in thread
From: James Le Cuirot @ 2021-07-17 7:55 UTC (permalink / raw
To: gentoo-commits
commit: 53ed21af3a713116e76bc67013ad056d02953374
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 17 07:54:45 2021 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Jul 17 07:54:45 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53ed21af
dev-games/physfs: Patch to fix pkg-config libdir entry
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
dev-games/physfs/files/GNUInstallDirs.patch | 74 +++++++++++++++++++++++++++++
dev-games/physfs/physfs-3.0.2-r1.ebuild | 58 ++++++++++++++++++++++
2 files changed, 132 insertions(+)
diff --git a/dev-games/physfs/files/GNUInstallDirs.patch b/dev-games/physfs/files/GNUInstallDirs.patch
new file mode 100644
index 00000000000..ef7bb5d1f14
--- /dev/null
+++ b/dev-games/physfs/files/GNUInstallDirs.patch
@@ -0,0 +1,74 @@
+From 727d7a5265ad856fd473ad1c621d6c03dd306d6d Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <chewi@gentoo.org>
+Date: Sat, 10 Jul 2021 22:55:53 +0100
+Subject: [PATCH] Use the GNUInstallDirs CMake module to respect installation
+ locations
+
+Apparently use of LIB_SUFFIX is now discouraged. GNUInstallDirs does a
+better job of setting a default.
+
+The libdir of ${prefix}/lib in the pkg-config file caused warnings,
+and possibly even failures, when linking on multilib systems where
+/usr/lib is for 32-bit libraries rather than 64-bit libraries.
+---
+ CMakeLists.txt | 15 ++++++++-------
+ extras/physfs.pc.in | 6 +++---
+ 2 files changed, 11 insertions(+), 10 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4a67c27..6c26cb1 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -14,6 +14,8 @@ cmake_minimum_required(VERSION 2.8.4)
+ project(PhysicsFS)
+ set(PHYSFS_VERSION 3.0.2)
+
++include(GNUInstallDirs)
++
+ # Increment this if/when we break backwards compatibility.
+ set(PHYSFS_SOVERSION 1)
+
+@@ -213,11 +215,11 @@ if(PHYSFS_BUILD_TEST)
+ set(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";test_physfs")
+ endif()
+
+-install(TARGETS ${PHYSFS_INSTALL_TARGETS}
+- RUNTIME DESTINATION bin
+- LIBRARY DESTINATION lib${LIB_SUFFIX}
+- ARCHIVE DESTINATION lib${LIB_SUFFIX})
+-install(FILES src/physfs.h DESTINATION include)
++install(TARGETS ${PHYSFS_INSTALL_TARGETS} EXPORT PhysFSExport
++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(FILES src/physfs.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+
+ find_package(Doxygen)
+ if(DOXYGEN_FOUND)
+@@ -271,7 +273,7 @@ if(NOT MSVC)
+ )
+ install(
+ FILES "${CMAKE_CURRENT_BINARY_DIR}/extras/physfs.pc"
+- DESTINATION "lib${LIB_SUFFIX}/pkgconfig"
++ DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
+ )
+ endif()
+
+diff --git a/extras/physfs.pc.in b/extras/physfs.pc.in
+index 6cd0972..f7e0307 100644
+--- a/extras/physfs.pc.in
++++ b/extras/physfs.pc.in
+@@ -1,7 +1,7 @@
+ prefix=@CMAKE_INSTALL_PREFIX@
+-exec_prefix=${prefix}
+-libdir=${exec_prefix}/lib
+-includedir=${prefix}/include
++exec_prefix=@CMAKE_INSTALL_PREFIX@
++libdir=@CMAKE_INSTALL_FULL_LIBDIR@
++includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
+
+ Name: PhysicsFS
+ Description: PhysicsFS is a library to provide abstract access to various archives.
+--
+2.31.1
+
diff --git a/dev-games/physfs/physfs-3.0.2-r1.ebuild b/dev-games/physfs/physfs-3.0.2-r1.ebuild
new file mode 100644
index 00000000000..0d225b66a06
--- /dev/null
+++ b/dev-games/physfs/physfs-3.0.2-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+CMAKE_ECLASS=cmake
+inherit cmake-multilib
+
+DESCRIPTION="Abstraction layer for filesystem and archive access"
+HOMEPAGE="https://icculus.org/physfs/"
+
+if [[ ${PV} == *9999* ]]; then
+ EHG_REPO_URI="https://hg.icculus.org/icculus/physfs"
+ inherit mercurial
+else
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc64 ~x86"
+ SRC_URI="https://icculus.org/physfs/downloads/${P}.tar.bz2"
+fi
+
+LICENSE="ZLIB"
+SLOT="0"
+IUSE="7zip doc grp hog iso mvl qpak slb static-libs vdf wad +zip"
+
+BDEPEND="doc? ( app-doc/doxygen )"
+
+PATCHES=(
+ "${FILESDIR}"/GNUInstallDirs.patch
+)
+
+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_src_configure
+}
+
+multilib_src_compile() {
+ cmake_src_compile
+
+ if multilib_is_native_abi && use doc; then
+ cmake_src_compile docs
+ HTML_DOCS=( "${BUILD_DIR}"/docs/html/. )
+ fi
+}
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-07-17 7:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-13 0:18 [gentoo-commits] repo/gentoo:master commit in: dev-games/physfs/files/, dev-games/physfs/ Andreas Sturmlechner
-- strict thread matches above, loose matches on Subject: below --
2021-07-17 7:55 James Le Cuirot
2019-03-04 20:49 James Le Cuirot
2017-01-27 1:16 Lars Wendler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox