Сравнение crossguid-0.2.2_p20190529 с crossguid-0_pre20150817

/usr/portage/dev-libs/crossguid/crossguid-0_pre20150817.ebuild 2023-10-09 14:52:29.492368350 +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
EAPI=8
4
EAPI=7
5 5

  
6
inherit edo cmake
6
inherit toolchain-funcs
7 7

  
8
MY_COMMIT="ca1bf4b810e2d188d04cb6286f957008ee1b7681"
8
if [[ ${PV} == "9999" ]] ; then
9
	EGIT_REPO_URI="https://github.com/graeme-hill/crossguid.git"
10
	inherit git-r3
11
else
12
	EGIT_COMMIT="8f399e8bd4252be9952f3dfa8199924cc8487ca4"
13
	SRC_URI="https://github.com/graeme-hill/crossguid/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
14
	S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
15
fi
9 16

  
10 17
DESCRIPTION="Lightweight cross platform C++ GUID/UUID library"
11 18
HOMEPAGE="https://github.com/graeme-hill/crossguid"
12
SRC_URI="https://github.com/graeme-hill/crossguid/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
13
S="${WORKDIR}/${PN}-${MY_COMMIT}"
14 19

  
15 20
LICENSE="MIT"
16 21
SLOT="0"
17 22
KEYWORDS="amd64 ~arm arm64 ~riscv x86"
18
IUSE="test"
19
RESTRICT="!test? ( test )"
20 23

  
21 24
# We use libuuid from util-linux.
22 25
DEPEND="sys-apps/util-linux"
23 26
RDEPEND="${DEPEND}"
24 27

  
25
PATCHES=(
26
	"${FILESDIR}"/${PN}-0.2.2_p20190529-gcc-13.patch
27
)
28

  
29
src_prepare() {
30
	# https://github.com/graeme-hill/crossguid/pull/62
31
	sed -i -e 's:-Werror::' CMakeLists.txt || die
28
RESTRICT="test" #575544
32 29

  
33
	cmake_src_prepare
34
}
35

  
36
src_configure() {
37
	local mycmakeargs=(
38
		-DCROSSGUID_TESTS=$(usex test)
39
	)
30
e() { echo "$@"; "$@"; }
40 31

  
41
	cmake_src_configure
42
}
32
src_compile() {
33
	e $(tc-getCXX) \
34
		${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS} \
35
		-std=c++11 \
36
		-c guid.cpp -o guid.o \
37
		-DGUID_LIBUUID \
38
		|| die
43 39

  
44
src_test() {
45
	edo "${BUILD_DIR}"/crossguid-test
40
	e $(tc-getAR) rs libcrossguid.a guid.o || die
46 41
}
47 42

  
48 43
src_install() {
49
	cmake_src_install
50

  
51
	rm "${ED}"/usr/share/crossguid/LICENSE || die
44
	insinto /usr/include
45
	doins guid.h
46
	dolib.a libcrossguid.a
52 47
}
Спасибо!