Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/argyllcms/
Date: Tue, 28 May 2019 21:48:41
Message-Id: 1559079968.90a57bfbceed01b75a1a63139eba38d414ca14c8.voyageur@gentoo
1 commit: 90a57bfbceed01b75a1a63139eba38d414ca14c8
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 28 21:46:08 2019 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Tue May 28 21:46:08 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90a57bfb
7
8 media-gfx/argyllcms: support libressl builds
9
10 Thanks steils for testing
11
12 Package-Manager: Portage-2.3.67, Repoman-2.3.13
13 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
14
15 media-gfx/argyllcms/argyllcms-2.1.1-r1.ebuild | 91 +++++++++++++++++++++++++++
16 1 file changed, 91 insertions(+)
17
18 diff --git a/media-gfx/argyllcms/argyllcms-2.1.1-r1.ebuild b/media-gfx/argyllcms/argyllcms-2.1.1-r1.ebuild
19 new file mode 100644
20 index 00000000000..276ade08556
21 --- /dev/null
22 +++ b/media-gfx/argyllcms/argyllcms-2.1.1-r1.ebuild
23 @@ -0,0 +1,91 @@
24 +# Copyright 1999-2019 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +inherit flag-o-matic multiprocessing toolchain-funcs udev
30 +
31 +MY_P="Argyll_V${PV}"
32 +
33 +DESCRIPTION="Open source, ICC compatible color management system"
34 +HOMEPAGE="http://www.argyllcms.com/"
35 +SRC_URI="http://www.argyllcms.com/${MY_P}_src.zip"
36 +
37 +LICENSE="AGPL-3"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~arm64 ~hppa ~x86"
40 +IUSE="doc libressl"
41 +
42 +RDEPEND="
43 + media-libs/tiff:0
44 + sys-libs/zlib
45 + virtual/jpeg:0
46 + x11-libs/libX11
47 + x11-libs/libXau
48 + x11-libs/libXdmcp
49 + x11-libs/libXext
50 + x11-libs/libXinerama
51 + x11-libs/libXrandr
52 + x11-libs/libXxf86vm
53 + x11-libs/libXScrnSaver
54 + !libressl? ( dev-libs/openssl:0= )
55 + libressl? ( dev-libs/libressl:0= )"
56 +DEPEND="${RDEPEND}
57 + app-arch/unzip
58 + dev-util/ftjam"
59 +
60 +S="${WORKDIR}/${MY_P}"
61 +
62 +src_compile() {
63 + # Make it respect LDFLAGS
64 + echo "LINKFLAGS += ${LDFLAGS} ;" >> Jamtop
65 +
66 + # Evil hack to get --as-needed working. The build system unfortunately lists all
67 + # the shared libraries by default on the command line _before_ the object to be built...
68 + echo "STDLIBS += -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss -ltiff -ljpeg ;" >> Jamtop
69 +
70 + append-cflags -DUNIX -D_THREAD_SAFE
71 +
72 + sed \
73 + -e 's:CCFLAGS:CFLAGS:g' \
74 + -e "s:ar rusc:$(tc-getAR) rusc:g" \
75 + -i Jambase || die
76 +
77 + tc-export CC RANLIB
78 +
79 + jam -dx -fJambase "-j$(makeopts_jobs)" || die
80 +}
81 +
82 +src_install() {
83 + jam -dx -fJambase install || die
84 +
85 + rm bin/License.txt || die
86 +
87 + pushd bin > /dev/null
88 + local binname
89 + for binname in * ; do
90 + newbin ${binname} argyll-${binname}
91 + done
92 + popd > /dev/null
93 +
94 + dodoc log.txt Readme.txt ttbd.txt notes.txt
95 + if use doc; then
96 + docinto html
97 + dodoc doc/*html doc/*jpg doc/*gif
98 + fi
99 +
100 + insinto /usr/share/${PN}
101 + doins -r ref
102 +
103 + udev_dorules usb/55-Argyll.rules
104 +}
105 +
106 +pkg_postinst() {
107 + elog "If you have a Spyder2 you need to extract the firmware"
108 + elog "from the CVSpyder.dll of the windows driver package"
109 + elog "and store it as /usr/share/color/spyd2PLD.bin"
110 + echo
111 + elog "For further info on setting up instrument access read"
112 + elog "http://www.argyllcms.com/doc/Installing_Linux.html"
113 + echo
114 +}