Diff tup-0.7.11 with a tup-9999

/usr/portage/dev-util/tup/tup-9999.ebuild 2023-10-09 14:52:31.008368388 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
......
6 6
inherit linux-info toolchain-funcs
7 7

  
8 8
DESCRIPTION="File-based build system"
9
HOMEPAGE="https://gittup.org/tup/ https://github.com/gittup/tup"
9
HOMEPAGE="https://gittup.org/tup/"
10 10
# Tup itself is GPLv2, but it bundles differently licensed software:
11 11
# - lua: MIT
12 12
# - sqlite (unused in this ebuild): public domain
......
21 21
	inherit git-r3
22 22
else
23 23
	SRC_URI="https://github.com/gittup/tup/archive/v${PV}.tar.gz -> ${P}.tar.gz"
24
	KEYWORDS="amd64"
24
	KEYWORDS="~amd64"
25 25
fi
26 26

  
27 27
DEPEND="
28
	dev-db/sqlite
29
	dev-libs/libpcre
30
	sys-fs/fuse:3
28
	dev-db/sqlite:=
29
	dev-libs/libpcre:=
30
	sys-fs/fuse:=
31 31
"
32 32
RDEPEND="${DEPEND}"
33
BDEPEND="virtual/pkgconfig"
34 33

  
35 34
CONFIG_CHECK="~FUSE_FS ~NAMESPACES"
36 35
WARNING_FUSE_FS="CONFIG_FUSE_FS is required for tup to work"
......
39 38
src_prepare() {
40 39
	# Use our toolchain
41 40
	sed -i Tuprules.tup \
42
		-e "s|CC = gcc|CC = $(tc-getCC) ${CFLAGS} ${LDFLAGS}|" \
43
		-e "s|ar crs|$(tc-getAR) crs|" || die
41
		-e "s:CC = gcc:CC = $(tc-getCC) ${CFLAGS} ${LDFLAGS}:" \
42
		-e "s:ar crs:$(tc-getAR) crs:"
44 43

  
45 44
	if [[ ${PV} != 9999 ]]; then
46 45
		# Avoid invoking `git` to find version, use ours
47 46
		sed -i src/tup/link.sh \
48
			-e 's|`git describe`|v'"${PV}|" || die
47
			-e 's;`git describe`;v'"${PV};"
49 48
	fi
50 49

  
51
	echo "CONFIG_TUP_USE_SYSTEM_SQLITE=y" >> tup.config
52

  
53 50
	default
54 51
}
55 52

  
53
src_configure() {
54
	echo "CONFIG_TUP_USE_SYSTEM_SQLITE=y" >> tup.config
55
}
56

  
56 57
src_compile() {
57 58
	# Disabling namespacing because it leads to accessing /proc/<pid>/setgroups
58 59
	# which violates sandboxing.
......
79 80

  
80 81
	# Skip tests which require namespacing or root privileges.
81 82
	pushd test || die
82
	rm -v t2150-lua-tupdefault.sh \
83
		t2172-lua-relativedir.sh \
84
		t2187-tupdefault.sh \
85
		t2197-tupdefault-ghost.sh \
86
		t2220-lua-open-external.sh \
87
		t4062-full-deps.sh \
88
		t4063-full-deps2.sh \
89
		t4064-full-deps3.sh \
90
		t4065-full-deps-proc.sh \
91
		t4067-full-deps5.sh \
92
		t4069-gcc-coverage.sh \
93
		t4072-proc-self.sh \
94
		t4074-getpwd.sh \
95
		t4131-proc-self-exe.sh \
96
		t4132-proc-meminfo.sh \
97
		t4171-dev-null.sh \
98
		t4200-ccache.sh \
99
		t4201-ccache2.sh \
100
		t4202-clang.sh \
101
		t4205-full-deps6.sh \
102
		t4206-full-deps7.sh \
103
		t4207-full-deps8.sh \
104
		t4208-full-deps-external.sh \
105
		t4209-full-deps-external2.sh \
106
		t4210-full-deps-getaddrinfo.sh \
107
		t4215-full-deps-get-nprocs.sh \
108
		t5083-symlink-fullpath.sh \
109
		t5084-symlink-fullpath2.sh \
110
		t5103-python-sh.sh \
111
		t7048-full-deps.sh \
112
		t8105-variant-parse-progress.sh || die
83
	rm -v ./*full-deps*.sh
84
	SKIPPED_TESTS=(
85
	t4069-gcc-coverage.sh
86
	t4072-proc-self.sh
87
	t4074-getpwd.sh
88
	t4131-proc-self-exe.sh
89
	t4132-proc-meminfo.sh
90
	t4171-dev-null.sh
91
	t4202-clang.sh
92
	t4200-ccache.sh
93
	t5083-symlink-fullpath.sh
94
	t5084-symlink-fullpath2.sh
95
	)
96
	rm ${SKIPPED_TESTS[@]} || die
113 97
	./test.sh || die
114 98
	popd || die
115 99

  
Thank you!