From 9ffab08e406e83d4a7ce89a67ff96d048390d5c0 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Mon, 13 May 2019 09:33:24 +0200 Subject: [PATCH] dev-games/physfs: Simplify USE=doc handling Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: David Seifert --- dev-games/physfs/metadata.xml | 64 ++++++++++++++-------------- dev-games/physfs/physfs-3.0.2.ebuild | 9 ++-- dev-games/physfs/physfs-9999.ebuild | 9 ++-- 3 files changed, 40 insertions(+), 42 deletions(-) diff --git a/dev-games/physfs/metadata.xml b/dev-games/physfs/metadata.xml index 4c12a220b846..2a68749c367a 100644 --- a/dev-games/physfs/metadata.xml +++ b/dev-games/physfs/metadata.xml @@ -1,36 +1,36 @@ - -games@gentoo.org -Gentoo Games Project - - -PhysicsFS is a library to provide abstract access to various archives. It is -intended for use in video games, and the design was somewhat inspired by Quake 3's -file subsystem. The programmer defines a "write directory" on the physical -filesystem. No file writing done through the PhysicsFS API can leave that write -directory, for security. For example, an embedded scripting language cannot write -outside of this path if it uses PhysFS for all of its I/O, which means that -untrusted scripts can run more safely. Symbolic links can be disabled as well, for -added safety. For file reading, the programmer lists directories and archives that -form a "search path". Once the search path is defined, it becomes a single, -transparent hierarchical filesystem. This makes for easy access to ZIP files in the -same way as you access a file directly on the disk, and it makes it easy to ship a -new archive that will override a previous archive on a per-file basis. Finally, -PhysicsFS gives you platform-abstracted means to determine if CD-ROMs are available, -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 - + + games@gentoo.org + Gentoo Games Project + + + PhysicsFS is a library to provide abstract access to various archives. It is + intended for use in video games, and the design was somewhat inspired by Quake 3's + file subsystem. The programmer defines a "write directory" on the physical + filesystem. No file writing done through the PhysicsFS API can leave that write + directory, for security. For example, an embedded scripting language cannot write + outside of this path if it uses PhysFS for all of its I/O, which means that + untrusted scripts can run more safely. Symbolic links can be disabled as well, for + added safety. For file reading, the programmer lists directories and archives that + form a "search path". Once the search path is defined, it becomes a single, + transparent hierarchical filesystem. This makes for easy access to ZIP files in the + same way as you access a file directly on the disk, and it makes it easy to ship a + new archive that will override a previous archive on a per-file basis. Finally, + PhysicsFS gives you platform-abstracted means to determine if CD-ROMs are available, + 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 + diff --git a/dev-games/physfs/physfs-3.0.2.ebuild b/dev-games/physfs/physfs-3.0.2.ebuild index 0880049c9f1c..91229a1b6d98 100644 --- a/dev-games/physfs/physfs-3.0.2.ebuild +++ b/dev-games/physfs/physfs-3.0.2.ebuild @@ -45,10 +45,9 @@ multilib_src_configure() { multilib_src_compile() { cmake-utils_src_compile - multilib_is_native_abi && use doc && cmake-utils_src_compile docs -} -multilib_src_install() { - multilib_is_native_abi && use doc && local HTML_DOCS=( "${BUILD_DIR}"/docs/html/. ) - cmake-utils_src_install + if multilib_is_native_abi && use doc; then + cmake-utils_src_compile docs + HTML_DOCS=( "${BUILD_DIR}"/docs/html/. ) + fi } diff --git a/dev-games/physfs/physfs-9999.ebuild b/dev-games/physfs/physfs-9999.ebuild index 0880049c9f1c..91229a1b6d98 100644 --- a/dev-games/physfs/physfs-9999.ebuild +++ b/dev-games/physfs/physfs-9999.ebuild @@ -45,10 +45,9 @@ multilib_src_configure() { multilib_src_compile() { cmake-utils_src_compile - multilib_is_native_abi && use doc && cmake-utils_src_compile docs -} -multilib_src_install() { - multilib_is_native_abi && use doc && local HTML_DOCS=( "${BUILD_DIR}"/docs/html/. ) - cmake-utils_src_install + if multilib_is_native_abi && use doc; then + cmake-utils_src_compile docs + HTML_DOCS=( "${BUILD_DIR}"/docs/html/. ) + fi } -- 2.26.2