blob: 0321395e5d907a7a3c51cd845a90f8e0e581744e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="A complete 2D graphic library for drawing Text, Geometries, and Images"
HOMEPAGE="https://skia.googlesource.com/skcms"
SRC_URI="https://drive.google.com/uc?export=download&id=1BmWRhwDnribygNRsR2UwaxIMrAB7GZw4 -> ${PF}.tar.gz"
S="${WORKDIR}"
KEYWORDS="~amd64"
LICENSE="BSD"
SLOT="0/${PV}"
IUSE="test"
RDEPEND=""
DEPEND="${RDEPEND}"
RESTRICT="!test? ( test )"
src_compile() {
tc-export CC CXX
${CXX} ${CXXFLAGS} ${LDFLAGS} -fPIC -shared -I./src -Wl,-soname,libskcms.so skcms.cc -o libskcms.so || die
${CC} ${CFLAGS} -fPIC -I./src -c test_only.c || die
${CC} ${CFLAGS} ${LDFLAGS} -fPIE -I./src test_only.o iccdump.c -o iccdump -ldl -L. -lskcms || die
${CC} ${CFLAGS} ${LDFLAGS} -fPIE -I./src test_only.o tests.c -o tests -L. -lskcms || die
}
src_install() {
dolib.so libskcms.so
dobin iccdump
doheader skcms.h
}
src_test() {
LD_LIBRARY_PATH="./:${LD_LIBRARY_PATH}" ./tests || die
}
|