summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-12-14 08:54:19 +0000
committerJustin Lecher <jlec@gentoo.org>2012-12-14 08:54:19 +0000
commit416cec7c1273b932bf51773c6eb9d33944ea79ec (patch)
treef5f34d05992954dc9cf57960d0896034af5a5808 /media-gfx/argyllcms
parentFix incomplete previous commit (diff)
downloadgentoo-2-416cec7c1273b932bf51773c6eb9d33944ea79ec.tar.gz
gentoo-2-416cec7c1273b932bf51773c6eb9d33944ea79ec.tar.bz2
gentoo-2-416cec7c1273b932bf51773c6eb9d33944ea79ec.zip
media-gfx/argyllcms: Be verbose in build, #445522; Respect CFLAGS, CC, AR, RANLIB
(Portage version: 2.2.0_alpha148/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)
Diffstat (limited to 'media-gfx/argyllcms')
-rw-r--r--media-gfx/argyllcms/ChangeLog7
-rw-r--r--media-gfx/argyllcms/argyllcms-1.4.0-r2.ebuild97
2 files changed, 103 insertions, 1 deletions
diff --git a/media-gfx/argyllcms/ChangeLog b/media-gfx/argyllcms/ChangeLog
index 79872aa1e82a..64944ed04762 100644
--- a/media-gfx/argyllcms/ChangeLog
+++ b/media-gfx/argyllcms/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-gfx/argyllcms
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/argyllcms/ChangeLog,v 1.31 2012/12/14 08:31:25 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/argyllcms/ChangeLog,v 1.32 2012/12/14 08:54:19 jlec Exp $
+
+*argyllcms-1.4.0-r2 (14 Dec 2012)
+
+ 14 Dec 2012; Justin Lecher <jlec@gentoo.org> +argyllcms-1.4.0-r2.ebuild:
+ Be verbose in build, #445522; Respect CFLAGS, CC, AR, RANLIB
14 Dec 2012; Justin Lecher <jlec@gentoo.org> -argyllcms-1.4.0.ebuild,
metadata.xml:
diff --git a/media-gfx/argyllcms/argyllcms-1.4.0-r2.ebuild b/media-gfx/argyllcms/argyllcms-1.4.0-r2.ebuild
new file mode 100644
index 000000000000..1df7d16797a8
--- /dev/null
+++ b/media-gfx/argyllcms/argyllcms-1.4.0-r2.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/argyllcms/argyllcms-1.4.0-r2.ebuild,v 1.1 2012/12/14 08:54:19 jlec Exp $
+
+EAPI=5
+
+inherit base flag-o-matic toolchain-funcs udev
+
+MY_P="Argyll_V${PV}"
+
+DESCRIPTION="Open source, ICC compatible color management system"
+HOMEPAGE="http://www.argyllcms.com/"
+SRC_URI="http://www.argyllcms.com/${MY_P}_src.zip"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+RDEPEND="
+ media-libs/tiff
+ sys-libs/zlib
+ virtual/jpeg
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ x11-libs/libXxf86vm
+ x11-libs/libXScrnSaver"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-util/ftjam
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.4.0-jpeg.patch"
+ "${FILESDIR}/${PN}-1.4.0-CVE-2012-4405.patch"
+ )
+
+src_compile() {
+ # Make it respect LDFLAGS
+ echo "LINKFLAGS += ${LDFLAGS} ;" >> Jamtop
+
+ # Evil hack to get --as-needed working. The build system unfortunately lists all
+ # the shared libraries by default on the command line _before_ the object to be built...
+ echo "STDLIBS += -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss -ltiff -ljpeg ;" >> Jamtop
+
+ local jobnumber=$(echo "${MAKEOPTS}" | sed -ne "/-j/ { s/.*\(-j[[:space:]]*[0-9]\+\).*/\1/; p }")
+ [ ${jobnumber} ] || jobnumber=-j1
+
+ append-cflags -DUNIX -D_THREAD_SAFE
+
+ sed \
+ -e 's:CCFLAGS:CFLAGS:g' \
+ -e "s:ar rusc:$(tc-getAR) rusc:g" \
+ -i Jambase || die
+
+ tc-export CC RANLIB
+
+ jam -dx -fJambase ${jobnumber} || die
+}
+
+src_install() {
+ jam -dx -fJambase install || die
+
+ rm bin/License.txt || die
+
+ pushd bin > /dev/null
+ local binname
+ for binname in * ; do
+ newbin ${binname} argyll-${binname}
+ done
+ popd > /dev/null
+
+ use doc && dohtml doc/*
+
+ dodoc log.txt Readme.txt ttbd.txt notes.txt
+
+ insinto /usr/share/${PN}
+ doins -r ref
+
+ udev_dorules libusb/55-Argyll.rules
+}
+
+pkg_postinst() {
+ elog "If you have a Spyder2 you need to extract the firmware"
+ elog "from the CVSpyder.dll of the windows driver package"
+ elog "and store it as /usr/share/color/spyd2PLD.bin"
+ echo
+ elog "For further info on setting up instrument access read"
+ elog "http://www.argyllcms.com/doc/Installing_Linux.html"
+ echo
+}