commit: 576109f306103f091f6c2c6d57b0a4ea10c91ab8 Author: Marty E. Plummer <hanetzer <AT> protonmail <DOT> com> AuthorDate: Wed Jul 12 03:15:43 2017 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Fri Aug 25 19:54:32 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=576109f3
dev-games/physfs: add live mercurial ebuild Mostly for personal use, but others could make use of it and it preps for the next official release. Package-Manager: Portage-2.3.6, Repoman-2.3.2 Signed-off-by: Marty E. Plummer <hanetzer <AT> protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/5093 dev-games/physfs/physfs-9999.ebuild | 63 +++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/dev-games/physfs/physfs-9999.ebuild b/dev-games/physfs/physfs-9999.ebuild new file mode 100644 index 00000000000..174aa4f1c98 --- /dev/null +++ b/dev-games/physfs/physfs-9999.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 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/" +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="http://icculus.org/physfs/downloads/${P}.tar.bz2" +fi + +LICENSE="ZLIB" +SLOT="0" +IUSE="doc grp hog mvl qpak static-libs wad +zip" + +RDEPEND="" +DEPEND="doc? ( app-doc/doxygen )" + +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=( docs/CHANGELOG.txt docs/CREDITS.txt docs/TODO.txt ) + local HTML_DOCS=$(usex doc 'docs/html/*' '') + + cmake-multilib_src_install +}
