1183867SrajSUMMARY="Portable uuid C library"
2183867SrajDESCRIPTION="A universally unique identifier (UUID) is an identifier standard \
3183867Srajused in software construction, standardized by the Open Software Foundation \
4183867Sraj(OSF) as part of the Distributed Computing Environment (DCE).
5183867Sraj
6183867SrajThe intent of UUIDs is to enable distributed systems to uniquely identify \
7183867Srajinformation without significant central coordination. In this context the word \
8183867Srajunique should be taken to mean \"practically unique\" rather than \"guaranteed \
9183867Srajunique\"."
10183867SrajHOMEPAGE="https://gitlab.com/kallisti5/libuuid"
11183867SrajCOPYRIGHT="2013-2014 Ralph B��hme"
12183867SrajLICENSE="BSD (3-clause)"
13183867SrajREVISION="2"
14183867SrajSOURCE_URI="https://gitlab.com/kallisti5/libuuid/-/archive/v${portVersion}/libuuid-v${portVersion}.tar.gz"
15183867SrajSOURCE_DIR="libuuid-v${portVersion}"
16183867SrajCHECKSUM_SHA256="e83f37022a895ebd55c7e1fe0c3c5dc2028a52ddcf157f9b5fdcd14e004c11f8"
17183867Sraj
18183867SrajARCHITECTURES="all"
19183867SrajSECONDARY_ARCHITECTURES="x86_gcc2 x86"
20183867Sraj
21183867SrajPROVIDES="
22183867Sraj	libuuid$secondaryArchSuffix = $portVersion
23183867Sraj	lib:libuuid$secondaryArchSuffix = 1.3.0 compat >= 1.3
24183867Sraj	"
25183867SrajREQUIRES="
26183867Sraj	haiku$secondaryArchSuffix
27183867Sraj	"
28183867SrajCONFLICTS="
29183867Sraj	lib:libuuid$secondaryArchSuffix
30183867Sraj	"
31183867Sraj
32183867SrajPROVIDES_devel="
33183867Sraj	libuuid${secondaryArchSuffix}_devel = $portVersion
34183867Sraj	devel:libuuid$secondaryArchSuffix = 1.3.0 compat >= 1.3
35183867Sraj	"
36183867SrajREQUIRES_devel="
37183867Sraj	libuuid$secondaryArchSuffix == $portVersion base
38183867Sraj	"
39183867Sraj
40183867SrajBUILD_REQUIRES="
41183867Sraj	haiku${secondaryArchSuffix}_devel
42183867Sraj	"
43183867SrajBUILD_PREREQUIRES="
44183867Sraj	cmd:gcc$secondaryArchSuffix
45183867Sraj	cmd:scons
46183867Sraj	"
47183867Sraj
48183867SrajBUILD()
49183867Sraj{
50183867Sraj	scons --prefix=$prefix --lib-dir=$libDir --exec-prefix=$libExecDir --inc-dir=$includeDir --man-dir=$manDir $jobArgs
51183867Sraj}
52183867Sraj
53183867SrajINSTALL()
54183867Sraj{
55183867Sraj	scons --prefix=$prefix --lib-dir=$libDir --exec-prefix=$libExecDir --inc-dir=$includeDir --man-dir=$manDir install
56183867Sraj
57183867Sraj	fixPkgconfig
58183867Sraj
59183867Sraj	prepareInstalledDevelLib libuuid
60183867Sraj	packageEntries devel $developDir
61183867Sraj}
62183867Sraj
63183867SrajTEST()
64183867Sraj{
65183867Sraj	scons
66183867Sraj	./src/test_uuid
67183867Sraj}
68183867Sraj