1 |
commit: 576109f306103f091f6c2c6d57b0a4ea10c91ab8 |
2 |
Author: Marty E. Plummer <hanetzer <AT> protonmail <DOT> com> |
3 |
AuthorDate: Wed Jul 12 03:15:43 2017 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 25 19:54:32 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=576109f3 |
7 |
|
8 |
dev-games/physfs: add live mercurial ebuild |
9 |
|
10 |
Mostly for personal use, but others could make use of it and |
11 |
it preps for the next official release. |
12 |
|
13 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
14 |
Signed-off-by: Marty E. Plummer <hanetzer <AT> protonmail.com> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/5093 |
16 |
|
17 |
dev-games/physfs/physfs-9999.ebuild | 63 +++++++++++++++++++++++++++++++++++++ |
18 |
1 file changed, 63 insertions(+) |
19 |
|
20 |
diff --git a/dev-games/physfs/physfs-9999.ebuild b/dev-games/physfs/physfs-9999.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..174aa4f1c98 |
23 |
--- /dev/null |
24 |
+++ b/dev-games/physfs/physfs-9999.ebuild |
25 |
@@ -0,0 +1,63 @@ |
26 |
+# Copyright 1999-2017 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=6 |
30 |
+inherit cmake-multilib |
31 |
+ |
32 |
+DESCRIPTION="Abstraction layer for filesystem and archive access" |
33 |
+HOMEPAGE="http://icculus.org/physfs/" |
34 |
+if [[ ${PV} == *9999* ]]; then |
35 |
+ EHG_REPO_URI="https://hg.icculus.org/icculus/physfs" |
36 |
+ inherit mercurial |
37 |
+else |
38 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc64 ~x86 ~x86-fbsd" |
39 |
+ SRC_URI="http://icculus.org/physfs/downloads/${P}.tar.bz2" |
40 |
+fi |
41 |
+ |
42 |
+LICENSE="ZLIB" |
43 |
+SLOT="0" |
44 |
+IUSE="doc grp hog mvl qpak static-libs wad +zip" |
45 |
+ |
46 |
+RDEPEND="" |
47 |
+DEPEND="doc? ( app-doc/doxygen )" |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ default |
51 |
+ sed -i -e 's:-Werror::' CMakeLists.txt || die |
52 |
+ # make sure these libs aren't used |
53 |
+ rm -rf lzma zlib* |
54 |
+} |
55 |
+ |
56 |
+src_configure() { |
57 |
+ local mycmakeargs=( |
58 |
+ -DPHYSFS_ARCHIVE_7Z=OFF |
59 |
+ -DPHYSFS_BUILD_SHARED=ON |
60 |
+ -DPHYSFS_BUILD_TEST=OFF |
61 |
+ -DPHYSFS_BUILD_WX_TEST=OFF |
62 |
+ -DPHYSFS_INTERNAL_ZLIB=OFF |
63 |
+ -DPHYSFS_BUILD_STATIC="$(usex static-libs)" |
64 |
+ -DPHYSFS_ARCHIVE_GRP="$(usex grp)" |
65 |
+ -DPHYSFS_ARCHIVE_HOG="$(usex hog)" |
66 |
+ -DPHYSFS_ARCHIVE_MVL="$(usex mvl)" |
67 |
+ -DPHYSFS_ARCHIVE_WAD="$(usex wad)" |
68 |
+ -DPHYSFS_ARCHIVE_QPAK="$(usex qpak)" |
69 |
+ -DPHYSFS_ARCHIVE_ZIP="$(usex zip)" |
70 |
+ ) |
71 |
+ |
72 |
+ cmake-multilib_src_configure |
73 |
+} |
74 |
+ |
75 |
+src_compile() { |
76 |
+ cmake-multilib_src_compile |
77 |
+ |
78 |
+ if multilib_is_native_abi && use doc ; then |
79 |
+ doxygen || die "doxygen failed" |
80 |
+ fi |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ local DOCS=( docs/CHANGELOG.txt docs/CREDITS.txt docs/TODO.txt ) |
85 |
+ local HTML_DOCS=$(usex doc 'docs/html/*' '') |
86 |
+ |
87 |
+ cmake-multilib_src_install |
88 |
+} |