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: Sun, 07 Oct 2018 10:13:24
Message-Id: 1538907151.fbc138b43d00d65824f32bfef7fe085acc791f92.titanofold@gentoo
1 commit: fbc138b43d00d65824f32bfef7fe085acc791f92
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 7 10:11:48 2018 +0000
4 Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 7 10:12:31 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbc138b4
7
8 dev-vcs/fossil: Bump to 2.7
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11 Signed-off-by: Aaron Swenson <titanofold <AT> gentoo.org>
12
13 dev-vcs/fossil/Manifest | 1 +
14 dev-vcs/fossil/fossil-2.7.ebuild | 57 ++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 58 insertions(+)
16
17 diff --git a/dev-vcs/fossil/Manifest b/dev-vcs/fossil/Manifest
18 index 93cd33572d3..079655e7b6d 100644
19 --- a/dev-vcs/fossil/Manifest
20 +++ b/dev-vcs/fossil/Manifest
21 @@ -1 +1,2 @@
22 DIST fossil-src-2.6.tar.gz 5083119 BLAKE2B 7d5cbeb072c72574b9f4fcbc87f9aeaa1db7964f961aa206a04bf64d73782bd6d51f2a19973fa4125969c864031cf78790a67acd32c5e8f209fe1211410a6af4 SHA512 a4f3b2ee696a7f156a295672c17e8ec63737a85cee5d47b1f66a9d45a6011006ed0a075082b5e06e5d75d59babef493d1815ec45f8ae99f42ed1a1c7a2447b1c
23 +DIST fossil-src-2.7.tar.gz 5276161 BLAKE2B 7a8a81515075be6d3fc68dac7a293a1ed6b46c0ed2ecf180269d7215e6cc16d796206b648588ab5b6e04176c553cc89556deb5e47683de1eb26ab7469a8c75c9 SHA512 c1f52209bf14cb1b0a134b03fd02926c123bfd38d9b0d45f39d3137f3df2be13371f38611dc66d1d7df71d95c79baf26e66ccb845c769a57b9568629cdd52672
24
25 diff --git a/dev-vcs/fossil/fossil-2.7.ebuild b/dev-vcs/fossil/fossil-2.7.ebuild
26 new file mode 100644
27 index 00000000000..f41e164254f
28 --- /dev/null
29 +++ b/dev-vcs/fossil/fossil-2.7.ebuild
30 @@ -0,0 +1,57 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit toolchain-funcs
37 +
38 +DESCRIPTION="Simple, high-reliability, source control management, and more"
39 +HOMEPAGE="http://www.fossil-scm.org/"
40 +SRC_URI="http://www.fossil-scm.org/index.html/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 -legacy-mv-rm -miniz system-sqlite +ssl static
46 + tcl tcl-stubs tcl-private-stubs th1-docs th1-hooks"
47 +
48 +REQUIRED_USE="ssl? ( !miniz )"
49 +
50 +DEPEND="
51 + sys-libs/zlib
52 + || ( sys-libs/readline:0 dev-libs/libedit )
53 + system-sqlite? ( >=dev-db/sqlite-3.25.0:3 )
54 + ssl? ( dev-libs/openssl:0 )
55 + tcl? ( dev-lang/tcl:0= )
56 +"
57 +RDEPEND="${DEPEND}"
58 +
59 +# Tests can't be run from the build directory
60 +RESTRICT="test"
61 +
62 +src_configure() {
63 + # this is not an autotools situation so don't make it seem like one
64 + # --with-tcl: works
65 + # --without-tcl: dies
66 + local myconf="--with-openssl=$(usex ssl auto none)"
67 + use debug && myconf+=' --fossil-debug'
68 + use json && myconf+=' --json'
69 + use system-sqlite && myconf+=' --disable-internal-sqlite'
70 + use static && myconf+=' --static'
71 + use tcl && myconf+=' --with-tcl=1'
72 + use fusefs || myconf+=' --disable-fusefs'
73 +
74 + local u useflags
75 + useflags=( legacy-mv-rm miniz tcl-stubs tcl-private-stubs
76 + th1-docs th1-hooks )
77 + for u in ${useflags[@]} ; do
78 + use ${u} && myconf+=" --with-${u}"
79 + done
80 +
81 + tc-export CC
82 + ./configure ${myconf} || die
83 +}
84 +
85 +src_install() {
86 + dobin fossil
87 +}