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