From: "Alessandro Barbieri" <lssndrbarbieri@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-libs/skia/
Date: Thu, 30 Apr 2020 19:17:26 +0000 (UTC) [thread overview]
Message-ID: <1588274242.64def23e2b8cf1b4c810b6e2d95936f0c8bf803e.Alessandro-Barbieri@gentoo> (raw)
commit: 64def23e2b8cf1b4c810b6e2d95936f0c8bf803e
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Wed Apr 29 14:47:50 2020 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Thu Apr 30 19:17:22 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=64def23e
media-libs/skia: lift some restrictions
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
media-libs/skia/skia-80_p20191220-r1.ebuild | 157 ++++++++++++++++++++++++++++
1 file changed, 157 insertions(+)
diff --git a/media-libs/skia/skia-80_p20191220-r1.ebuild b/media-libs/skia/skia-80_p20191220-r1.ebuild
new file mode 100644
index 0000000..708bfe3
--- /dev/null
+++ b/media-libs/skia/skia-80_p20191220-r1.ebuild
@@ -0,0 +1,157 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit ninja-utils python-any-r1
+
+#https://github.com/google/skia/blob/master/include/core/SkMilestone.h
+COMMIT="1c9ebb50024f80f3bf289838298e15185d8f6966"
+
+SRC_URI="https://github.com/google/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+DESCRIPTION="A complete 2D graphic library for drawing Text, Geometries, and Images"
+HOMEPAGE="
+ https://skia.org
+ https://github.com/google/skia
+"
+LICENSE="BSD"
+SLOT="0"
+IUSE=""
+#IUSE="dawn expat gif jpeg png pdf webp zlib"
+#TODO: find out how to enable and link: angle egl ffmpeg fontconfig freetype gl harfbuzz heif icu lua opencl piex sfntly wuffs vulkan xps s
+
+#TODO: find out which deps are needed for gl/egl/vulkan/X/gif/xps
+# ffmpeg? ( virtual/ffmpeg )
+# heif? ( media-libs/libheif )
+# icu? ( dev-libs/icu )
+# virtual/opengl
+# lua? ( dev-lang/lua )
+# opencl? ( virtual/opencl )
+RDEPEND="
+ app-arch/bzip2
+ dev-libs/expat
+ dev-libs/libbsd
+ dev-libs/libpcre
+ media-gfx/graphite2
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/harfbuzz
+ media-libs/libglvnd
+ media-libs/libjpeg-turbo
+ media-libs/libpng
+ media-libs/libwebp
+ sys-apps/util-linux
+ sys-libs/zlib
+ x11-libs/libxcb
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+"
+DEPEND="
+ ${PYTHON_DEPS}
+ ${RDEPEND}
+"
+BDEPEND="
+ dev-util/gn
+"
+
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+src_prepare() {
+ default
+ # https://chromium.googlesource.com/chromium/src/third_party/zlib
+ # https://github.com/jtkukunas/zlib
+ sed \
+ -e '/:zlib_x86/d' \
+ -e '/third_party("zlib_x86/,/^}/d' \
+ -i third_party/zlib/BUILD.gn
+
+ #remove questionable cflags
+ sed -i 's|-O3||g' gn/BUILD.gn || die
+ sed -i 's|-ffunction-sections||g' gn/BUILD.gn || die
+ sed -i 's|-fdata-sections||g' gn/BUILD.gn || die
+}
+
+src_configure() {
+ python_setup
+ tc-export AR CC CXX
+
+ local myconf_gn=()
+ passflags() {
+ local _f _x
+ _f=( ${1} )
+ _x="[$(printf '"%s", ' "${_f[@]}")]"
+ myconf_gn+=( extra_${2}="${_x}" )
+ }
+ passflags "${CFLAGS}" cflags_c
+ passflags "${CXXFLAGS}" cflags_cc
+ passflags "${CFLAGS}" ldflags
+
+ myconf_gn+=(
+ ar=\"${AR}\"
+ cc=\"${CC}\"
+ cxx=\"${CXX}\"
+ is_component_build=true
+ is_official_build=true
+ skia_use_dng_sdk=false
+ skia_use_metal=false
+ skia_use_sfntly=false
+ )
+# skia_enable_pdf=$(usex pdf true false)
+#
+# skia_use_dawn=$(usex dawn true false)
+# skia_use_expat=$(usex expat true false)
+# skia_use_libgifcodec=$(usex gif true false)
+# skia_use_libjpeg_turbo_decode=$(usex jpeg true false)
+# skia_use_libjpeg_turbo_encode=$(usex jpeg true false)
+# skia_use_libpng_decode=$(usex png true false)
+# skia_use_libpng_encode=$(usex png true false)
+# skia_use_libwebp_decode=$(usex webp true false)
+# skia_use_libwebp_encode=$(usex webp true false)
+# skia_use_zlib=$(usex zlib true false)
+
+# skia_use_angle=$(usex angle true false)
+# skia_use_egl=$(usex egl true false)
+# skia_use_fontconfig=$(usex fontconfig true false)
+# skia_use_freetype=$(usex freetype true false)
+# skia_use_ffmpeg=$(usex ffmpeg true false)
+# skia_use_gl=$(usex gl true false)
+# skia_use_harfbuzz=$(usex harfbuzz true false)
+# skia_use_icu=$(usex icu true false)
+# skia_use_libheif=$(usex heif true false)
+# skia_use_lua=$(usex lua true false)
+# skia_use_opencl=$(usex opencl true false)
+# skia_use_vulkan=$(usex vulkan true false)
+# skia_use_x11=$(usex X true false)
+# skia_use_xps=$(usex xps true false)
+# skia_use_piex=$(usex piex true false)
+# skia_use_sfntly=$(usex sfntly true false)
+# skia_use_wuffs=$(usex wuffs true false)
+
+# use freetype && myconf_gn+=( skia_use_system_freetype2=true )
+# use harfbuzz && myconf_gn+=( skia_use_system_harfbuzz=true )
+# use icu && myconf_gn+=( skia_use_system_icu=true )
+# use jpeg && myconf_gn+=( skia_use_system_libjpeg_turbo=true )
+# use lua && myconf_gn+=( skia_use_system_lua=true )
+# use png && myconf_gn+=( skia_use_system_libpng=true )
+# use webp && myconf_gn+=( skia_use_system_libwebp=true )
+# use zlib && myconf_gn+=( skia_use_system_zlib=true )
+
+ myconf_gn="${myconf_gn[@]} ${EXTRA_GN}"
+ set -- gn gen --args="${myconf_gn% }" out/Release
+ echo "$@"
+ "$@" || die
+}
+
+src_compile() {
+ eninja -C out/Release
+}
+
+src_install() {
+ dolib.so out/Release/*.so
+ insinto "/usr/include/${PN}"
+ doins -r include/.
+}
next reply other threads:[~2020-04-30 19:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-30 19:17 Alessandro Barbieri [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-05-29 21:04 [gentoo-commits] repo/proj/guru:dev commit in: media-libs/skia/ Alessandro Barbieri
2022-05-29 21:04 Alessandro Barbieri
2022-05-29 21:04 Alessandro Barbieri
2022-03-10 18:23 Alessandro Barbieri
2021-10-09 9:30 Theo Anderson
2021-05-05 7:32 Alessandro Barbieri
2021-04-24 18:51 Alessandro Barbieri
2021-04-15 12:51 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-04-15 12:44 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-04-15 12:44 Andrew Ammerlaan
2020-12-23 8:22 Theo Anderson
2020-11-23 23:54 Theo Anderson
2020-04-26 20:38 Alessandro Barbieri
2020-04-25 0:37 Alessandro Barbieri
2020-04-25 0:37 Alessandro Barbieri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1588274242.64def23e2b8cf1b4c810b6e2d95936f0c8bf803e.Alessandro-Barbieri@gentoo \
--to=lssndrbarbieri@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox