Gentoo Archives: gentoo-commits

From: Aaron Swenson <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/fossil/
Date: Fri, 27 Apr 2018 19:58:22
Message-Id: 1524859072.80481b2b69b56c5908f4383b8407c79df4874a5a.titanofold@gentoo
1 commit: 80481b2b69b56c5908f4383b8407c79df4874a5a
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 27 19:57:52 2018 +0000
4 Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 27 19:57:52 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80481b2b
7
8 dev-vcs/fossil: Bump to 2.5
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 dev-vcs/fossil/Manifest | 1 +
13 dev-vcs/fossil/fossil-2.5.ebuild | 57 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 58 insertions(+)
15
16 diff --git a/dev-vcs/fossil/Manifest b/dev-vcs/fossil/Manifest
17 index f7ff8e852af..a5845d2c69a 100644
18 --- a/dev-vcs/fossil/Manifest
19 +++ b/dev-vcs/fossil/Manifest
20 @@ -1 +1,2 @@
21 DIST fossil-src-2.4.tar.gz 4919205 BLAKE2B 35009cffc757b6ea153faf89525cae4463a2169dace090183b9dd6955a615a04363576295e4b24652ebec7f20772ef9d83c6b9af29f68bd5695c56b88cbf77cb SHA512 de7f2321677df7f6dc2a3a20e58f456602d938f40125ef33d401f28cdaa93e38d3db10e109547df269bc95a2ac8669ade05b6fd6fad39e6633f15ffdd91c499f
22 +DIST fossil-src-2.5.tar.gz 5036719 BLAKE2B b25067ee79793343a017dee28d3ee2b5eb257118a1e334932c6413971f83517ea0cfe570008c35ac4318b52982cb1129ab91eb3380a7f491f09c29cac46a756e SHA512 ee5d8708c91457b7b4d4bada15504e27016a096f0527a81c983c493531d226beb8e4b7aa84b0d764a5404342b8fd2c4dc3196426c9fc8b9c612e1940dd8bde1f
23
24 diff --git a/dev-vcs/fossil/fossil-2.5.ebuild b/dev-vcs/fossil/fossil-2.5.ebuild
25 new file mode 100644
26 index 00000000000..dbba71f4ebb
27 --- /dev/null
28 +++ b/dev-vcs/fossil/fossil-2.5.ebuild
29 @@ -0,0 +1,57 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit toolchain-funcs
36 +
37 +DESCRIPTION="Simple, high-reliability, source control management, and more"
38 +HOMEPAGE="http://www.fossil-scm.org/"
39 +SRC_URI="http://www.fossil-scm.org/index.html/uv/fossil-src-${PV}.tar.gz"
40 +
41 +LICENSE="BSD-2"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
44 +IUSE="debug fusefs json -legacy-mv-rm -miniz system-sqlite +ssl static
45 + tcl tcl-stubs tcl-private-stubs th1-docs th1-hooks"
46 +
47 +REQUIRED_USE="ssl? ( !miniz )"
48 +
49 +DEPEND="
50 + sys-libs/zlib
51 + || ( sys-libs/readline:0 dev-libs/libedit )
52 + system-sqlite? ( >=dev-db/sqlite-3.22.0:3 )
53 + ssl? ( dev-libs/openssl:0 )
54 + tcl? ( dev-lang/tcl:0= )
55 +"
56 +RDEPEND="${DEPEND}"
57 +
58 +# Tests can't be run from the build directory
59 +RESTRICT="test"
60 +
61 +src_configure() {
62 + # this is not an autotools situation so don't make it seem like one
63 + # --with-tcl: works
64 + # --without-tcl: dies
65 + local myconf="--with-openssl=$(usex ssl auto none)"
66 + use debug && myconf+=' --fossil-debug'
67 + use json && myconf+=' --json'
68 + use system-sqlite && myconf+=' --disable-internal-sqlite'
69 + use static && myconf+=' --static'
70 + use tcl && myconf+=' --with-tcl=1'
71 + use fusefs || myconf+=' --disable-fusefs'
72 +
73 + local u useflags
74 + useflags=( legacy-mv-rm miniz tcl-stubs tcl-private-stubs
75 + th1-docs th1-hooks )
76 + for u in ${useflags[@]} ; do
77 + use ${u} && myconf+=" --with-${u}"
78 + done
79 +
80 + tc-export CC
81 + ./configure ${myconf} || die
82 +}
83 +
84 +src_install() {
85 + dobin fossil
86 +}