From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6E4C2138330 for ; Sat, 17 Sep 2016 13:52:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5094EE0983; Sat, 17 Sep 2016 13:52:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D2C2BE0994 for ; Sat, 17 Sep 2016 13:51:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D9F5E340BDE for ; Sat, 17 Sep 2016 13:51:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9AF8C2488 for ; Sat, 17 Sep 2016 13:51:56 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1474119656.f97f565b70170920946c61715ab67c728e5d62de.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/colord/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-misc/colord/Manifest x11-misc/colord/colord-1.3.3.ebuild X-VCS-Directories: x11-misc/colord/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: f97f565b70170920946c61715ab67c728e5d62de X-VCS-Branch: master Date: Sat, 17 Sep 2016 13:51:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: aad2bbf4-c0af-4af9-b183-f85e79db3996 X-Archives-Hash: bdfaf04c2b92bc28ad8dc4f93052bb5c commit: f97f565b70170920946c61715ab67c728e5d62de Author: Pacho Ramos gentoo org> AuthorDate: Sat Sep 17 13:40:56 2016 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Sat Sep 17 13:40:56 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f97f565b x11-misc/colord: Version bump Package-Manager: portage-2.3.0 x11-misc/colord/Manifest | 1 + x11-misc/colord/colord-1.3.3.ebuild | 162 ++++++++++++++++++++++++++++++++++++ 2 files changed, 163 insertions(+) diff --git a/x11-misc/colord/Manifest b/x11-misc/colord/Manifest index 71e0dd5..057fa23 100644 --- a/x11-misc/colord/Manifest +++ b/x11-misc/colord/Manifest @@ -1,2 +1,3 @@ DIST colord-1.2.12.tar.xz 1214992 SHA256 d5241864c16a37f9e40d38d5009255456495a67f170ce0dc9250774442d68c3a SHA512 5ce8f4fd10b92ec0cb54a05017ab050753381663a43e40d959606bb5f71ddce5456a3d67f8ce0538a2c945136834c66615f3615fdfb3e1eaaf5f5ca7a9e9c4eb WHIRLPOOL 5b04acfc8de34758252f0215371f75b9ccab8f80194a9624d6b4c3651929266032f3e9e1e05b48fb82572891e93d6082739c022b2624978b0f8ece7e323e1b48 DIST colord-1.3.2.tar.xz 1235968 SHA256 d4ab3f11ec5e98d1079242fda7ad0a84a51da93572405561362a6ce2c274b8f5 SHA512 c45780a70ce71009536a2ed51fc0b063b81d31e6168e8ce42a5d0b0d2bcf596558aa909ae247b12d6d92c1cdeb3fd0d69ea497ca1dc4717bce90eb87c2dfafeb WHIRLPOOL 473365bd595d3f425a678f0b11dc198592206fdcb4781e1bd3454a3c6d5c645c145ee3f39ebaa7844b3ac56e200d758f98434f8655f260e2b6bfa81c6c2db9c7 +DIST colord-1.3.3.tar.xz 1240104 SHA256 d1848e797106a036b0d6ebed99a789a6ae07d60f1d9cc59be5b257efe7ec31a4 SHA512 12ebeec00e5a5fd43fbcd97cb2cd725f300843b3c12559fbf0d41f50fc4a80e89c1b5814502c60d92b09a3fb5b0ada9c76a723f89640262a511448085199fb8d WHIRLPOOL 18385812f9fc1f0dcf54c447ba82bf67eececbeda1f1aa15b1fe6792bc1ff1fd8787f9af31530119765518cd20633c4b2574b4d37eb44638ad02a3944b8390d1 diff --git a/x11-misc/colord/colord-1.3.3.ebuild b/x11-misc/colord/colord-1.3.3.ebuild new file mode 100644 index 00000000..f47f44a --- /dev/null +++ b/x11-misc/colord/colord-1.3.3.ebuild @@ -0,0 +1,162 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +GNOME2_LA_PUNT="yes" +VALA_USE_DEPEND="vapigen" + +inherit autotools bash-completion-r1 check-reqs gnome2 user systemd udev vala multilib-minimal + +DESCRIPTION="System service to accurately color manage input and output devices" +HOMEPAGE="https://www.freedesktop.org/software/colord/" +SRC_URI="https://www.freedesktop.org/software/colord/releases/${P}.tar.xz" + +LICENSE="GPL-2+" +SLOT="0/2" # subslot = libcolord soname version +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" + +# We prefer policykit enabled by default, bug #448058 +IUSE="argyllcms examples extra-print-profiles +gusb +introspection +policykit scanner systemd +udev vala" +REQUIRED_USE=" + gusb? ( udev ) + scanner? ( udev ) + vala? ( introspection ) +" + +COMMON_DEPEND=" + dev-db/sqlite:3=[${MULTILIB_USEDEP}] + >=dev-libs/glib-2.44.0:2[${MULTILIB_USEDEP}] + >=media-libs/lcms-2.6:2=[${MULTILIB_USEDEP}] + argyllcms? ( media-gfx/argyllcms ) + gusb? ( >=dev-libs/libgusb-0.2.7[introspection?,${MULTILIB_USEDEP}] ) + introspection? ( >=dev-libs/gobject-introspection-0.9.8:= ) + policykit? ( >=sys-auth/polkit-0.104 ) + scanner? ( + media-gfx/sane-backends + sys-apps/dbus ) + systemd? ( >=sys-apps/systemd-44:0= ) + udev? ( + virtual/udev + virtual/libgudev:=[${MULTILIB_USEDEP}] + virtual/libudev:=[${MULTILIB_USEDEP}] + ) +" +RDEPEND="${COMMON_DEPEND} + !media-gfx/shared-color-profiles + !<=media-gfx/colorhug-client-0.1.13 +" +DEPEND="${COMMON_DEPEND} + dev-libs/libxslt + >=dev-util/gtk-doc-am-1.9 + >=dev-util/intltool-0.35 + >=sys-devel/gettext-0.17 + virtual/pkgconfig[${MULTILIB_USEDEP}] + extra-print-profiles? ( media-gfx/argyllcms ) + vala? ( $(vala_depend) ) +" + +# FIXME: needs pre-installed dbus service files +RESTRICT="test" + +# According to upstream comment in colord.spec.in, building the extra print +# profiles requires >=4G of memory +CHECKREQS_MEMORY="4G" + +pkg_pretend() { + use extra-print-profiles && check-reqs_pkg_pretend +} + +pkg_setup() { + use extra-print-profiles && check-reqs_pkg_setup + enewgroup colord + enewuser colord -1 -1 /var/lib/colord colord +} + +src_prepare() { + # Adapt to Gentoo paths + sed -i -e 's/spotread/argyll-spotread/' \ + src/sensors/cd-sensor-argyll.c \ + configure.ac || die + + eautoreconf + use vala && vala_src_prepare + gnome2_src_prepare + multilib_copy_sources +} + +multilib_src_configure() { + # Reverse tools require gusb + # bash-completion test does not work on gentoo + local myconf=( + --disable-bash-completion + --disable-examples + --disable-static + --enable-libcolordcompat + --with-daemon-user=colord + --localstatedir="${EPREFIX}"/var + $(multilib_native_use_enable argyllcms argyllcms-sensor) + $(multilib_native_use_enable extra-print-profiles print-profiles) + $(multilib_native_usex extra-print-profiles COLPROF="$(type -P argyll-colprof)" "") + $(use_enable gusb) + $(multilib_native_use_enable gusb reverse) + $(multilib_native_use_enable introspection) + $(multilib_native_use_enable policykit polkit) + $(multilib_native_use_enable scanner sane) + $(multilib_native_use_enable systemd systemd-login) + $(use_enable udev) + --with-udevrulesdir="$(get_udevdir)"/rules.d + $(multilib_native_use_enable vala) + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" + ) + + ECONF_SOURCE=${S} \ + gnome2_src_configure "${myconf[@]}" +} + +multilib_src_compile() { + if multilib_is_native_abi; then + gnome2_src_compile + else + emake -C lib/colord + use gusb && emake -C lib/colorhug + emake -C lib/compat + fi +} + +multilib_src_test() { + if multilib_is_native_abi; then + default + else + emake -C lib/colord check + use gusb && emake -C lib/colorhug check + emake -C lib/compat check + fi +} + +multilib_src_install() { + if multilib_is_native_abi; then + gnome2_src_install + else + gnome2_src_install -j1 -C lib/colord + use gusb && gnome2_src_install -j1 -C lib/colorhug + gnome2_src_install -j1 -C lib/compat + gnome2_src_install -j1 -C contrib/session-helper install-libcolord_includeHEADERS + fi +} + +multilib_src_install_all() { + einstalldocs + + newbashcomp data/colormgr colormgr + + # Ensure config and profile directories exist and /var/lib/colord/* + # is writable by colord user + keepdir /var/lib/color{,d}/icc + fowners colord:colord /var/lib/colord{,/icc} + + if use examples; then + docinto examples + dodoc examples/*.c + fi +}