diff options
author | Alessandro Barbieri <lssndrbarbieri@gmail.com> | 2021-10-26 05:47:55 +0200 |
---|---|---|
committer | Alessandro Barbieri <lssndrbarbieri@gmail.com> | 2021-10-26 18:35:06 +0200 |
commit | cb812abc4cf155294f54ce8abe30fde48247c4fd (patch) | |
tree | a54e94ae6db57ea3c77c22aacebfd216c97aa95f /media-libs | |
parent | dev-python/opentracing_instrumentation: pypi homepage (diff) | |
download | guru-cb812abc4cf155294f54ce8abe30fde48247c4fd.tar.gz guru-cb812abc4cf155294f54ce8abe30fde48247c4fd.tar.bz2 guru-cb812abc4cf155294f54ce8abe30fde48247c4fd.zip |
media-libs/skcms: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/skcms/Manifest | 1 | ||||
-rw-r--r-- | media-libs/skcms/metadata.xml | 8 | ||||
-rw-r--r-- | media-libs/skcms/skcms-0_pre20211006.ebuild | 42 |
3 files changed, 51 insertions, 0 deletions
diff --git a/media-libs/skcms/Manifest b/media-libs/skcms/Manifest new file mode 100644 index 000000000..d59e96c04 --- /dev/null +++ b/media-libs/skcms/Manifest @@ -0,0 +1 @@ +DIST skcms-0_pre20211006.tar.gz 9986356 BLAKE2B fc53659232cbdb4c994c805944c5c1560fc084b94a3ad016ec51346cfb0483f262d53ebe7001d86dbda250b231b935882c99bc648043a8a55c0f85d2bc927bf1 SHA512 9595c20fae2df23816e4e094fc92e8cd8bc361eb3af5a77b1647064ec63a59796828aa40e151a402b22e9aaef2b983e97020dd761e253872ab59927ddcb9154e diff --git a/media-libs/skcms/metadata.xml b/media-libs/skcms/metadata.xml new file mode 100644 index 000000000..f31aef408 --- /dev/null +++ b/media-libs/skcms/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>lssndrbarbieri@gmail.com</email> + <name>Alessandro Barbieri</name> + </maintainer> +</pkgmetadata> diff --git a/media-libs/skcms/skcms-0_pre20211006.ebuild b/media-libs/skcms/skcms-0_pre20211006.ebuild new file mode 100644 index 000000000..85bb09394 --- /dev/null +++ b/media-libs/skcms/skcms-0_pre20211006.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +COMMIT="0d549648032490dbdb091e9f1e31be56ea031599" + +inherit toolchain-funcs + +DESCRIPTION="A complete 2D graphic library for drawing Text, Geometries, and Images" +HOMEPAGE="https://skia.googlesource.com/skcms" +SRC_URI="https://skia.googlesource.com/skcms/+archive/${COMMIT}.tar.gz -> ${PF}.tar.gz" +S="${WORKDIR}" + +KEYWORDS="~amd64" +LICENSE="BSD" +SLOT="0" +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() { + ./tests || die +} |