1 |
commit: 10515a7623557e60bf0a68749c8d8bba6c333085 |
2 |
Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 28 10:57:19 2020 +0000 |
4 |
Commit: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 28 10:57:19 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10515a76 |
7 |
|
8 |
dev-vcs/fossil: Bump to 2.13 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/761118 |
11 |
Signed-off-by: Aaron W. Swenson <titanofold <AT> gentoo.org> |
12 |
|
13 |
dev-vcs/fossil/Manifest | 1 + |
14 |
dev-vcs/fossil/fossil-2.13.ebuild | 71 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 72 insertions(+) |
16 |
|
17 |
diff --git a/dev-vcs/fossil/Manifest b/dev-vcs/fossil/Manifest |
18 |
index 90af46f42af..8214bd1968a 100644 |
19 |
--- a/dev-vcs/fossil/Manifest |
20 |
+++ b/dev-vcs/fossil/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST fossil-src-2.12.1.tar.gz 6011181 BLAKE2B f9437c4fb20314706bbbec70efbb6a53e2ac7760986baf88ea72505f03877a5d1069d0d2828aa2bfefac96c1358e4c8f824405d61fd24d490442fa8b768711e9 SHA512 08b7fef5a3071e968dedbc645aebf2e873ecf80049b5986d38f851a407b2b8b0c854cfcdfa5ec80eac5bc1b158c5fac3bb4b263d1adb8be470529e67dc6e8cee |
23 |
+DIST fossil-src-2.13.tar.gz 6121223 BLAKE2B 41bb83b40faf05d38ccbcc13bde858ee31ab0182193631d738a6e287414b2a93bc49bfa5ed0a16aabbc26190c1a3cd993ce9f1706ecd05b214461313b13c1086 SHA512 bd756aaac2f39005b690230c5a4ef4d618a3200a8eb499aa964285050c247edfb0abfa5db5522269e0a5ee2737c71393a523dc2d7e37eae076364185137964f8 |
24 |
|
25 |
diff --git a/dev-vcs/fossil/fossil-2.13.ebuild b/dev-vcs/fossil/fossil-2.13.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..54c775762c0 |
28 |
--- /dev/null |
29 |
+++ b/dev-vcs/fossil/fossil-2.13.ebuild |
30 |
@@ -0,0 +1,71 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit toolchain-funcs |
37 |
+ |
38 |
+DESCRIPTION="Simple, high-reliability, source control management, and more" |
39 |
+HOMEPAGE="https://www.fossil-scm.org/" |
40 |
+SRC_URI="https://fossil-scm.org/home/uv/fossil-src-${PV}.tar.gz" |
41 |
+ |
42 |
+LICENSE="BSD-2" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="amd64 arm ppc ppc64 x86" |
45 |
+IUSE="debug fusefs json -miniz system-sqlite +ssl static tcl tcl-stubs |
46 |
+ tcl-private-stubs th1-docs th1-hooks" |
47 |
+ |
48 |
+REQUIRED_USE="ssl? ( !miniz )" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ sys-libs/zlib |
52 |
+ || ( |
53 |
+ sys-libs/readline:0 |
54 |
+ dev-libs/libedit |
55 |
+ ) |
56 |
+ system-sqlite? ( >=dev-db/sqlite-3.34.0:3 ) |
57 |
+ ssl? ( dev-libs/openssl:0 ) |
58 |
+ tcl? ( dev-lang/tcl:0= ) |
59 |
+" |
60 |
+ |
61 |
+# Either tcl or jimtcl need to be present to build Fossil (Bug #675778) |
62 |
+DEPEND="${RDEPEND} |
63 |
+ !tcl? ( |
64 |
+ || ( |
65 |
+ dev-lang/tcl:* |
66 |
+ dev-lang/jimtcl:* |
67 |
+ ) |
68 |
+ ) |
69 |
+" |
70 |
+ |
71 |
+# Tests can't be run from the build directory |
72 |
+RESTRICT="test" |
73 |
+ |
74 |
+# fossil-2.10-check-lib64-for-tcl.patch: Bug 690828 |
75 |
+PATCHES=( "${FILESDIR}"/fossil-2.10-check-lib64-for-tcl.patch ) |
76 |
+ |
77 |
+src_configure() { |
78 |
+ # this is not an autotools situation so don't make it seem like one |
79 |
+ # --with-tcl: works |
80 |
+ # --without-tcl: dies |
81 |
+ local myconf="--with-openssl=$(usex ssl auto none)" |
82 |
+ use debug && myconf+=' --fossil-debug' |
83 |
+ use json && myconf+=' --json' |
84 |
+ use system-sqlite && myconf+=' --disable-internal-sqlite' |
85 |
+ use static && myconf+=' --static' |
86 |
+ use tcl && myconf+=' --with-tcl=1' |
87 |
+ use fusefs || myconf+=' --disable-fusefs' |
88 |
+ |
89 |
+ local u useflags |
90 |
+ useflags=( miniz tcl-stubs tcl-private-stubs th1-docs th1-hooks ) |
91 |
+ for u in ${useflags[@]} ; do |
92 |
+ use ${u} && myconf+=" --with-${u}" |
93 |
+ done |
94 |
+ |
95 |
+ tc-export CC CXX |
96 |
+ CC_FOR_BUILD=${CC} ./configure ${myconf} || die |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ dobin fossil |
101 |
+} |