summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2011-02-09 23:40:26 +0000
committerAndreas K. Hüttel <dilfridge@gentoo.org>2011-02-09 23:40:26 +0000
commitafb4187f5447dcaa310a902b65091303193f8c0a (patch)
tree4aee281b12efe85776386850b0845f5c2ccde353 /media-gfx/argyllcms
parentfix keywords again (diff)
downloadgentoo-2-afb4187f5447dcaa310a902b65091303193f8c0a.tar.gz
gentoo-2-afb4187f5447dcaa310a902b65091303193f8c0a.tar.bz2
gentoo-2-afb4187f5447dcaa310a902b65091303193f8c0a.zip
Rename binaries to avoid file collisions (bug 350016)
(Portage version: 2.1.9.39/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/argyllcms')
-rw-r--r--media-gfx/argyllcms/ChangeLog10
-rw-r--r--media-gfx/argyllcms/argyllcms-1.3.2-r1.ebuild83
2 files changed, 91 insertions, 2 deletions
diff --git a/media-gfx/argyllcms/ChangeLog b/media-gfx/argyllcms/ChangeLog
index e5749646c741..540b99666175 100644
--- a/media-gfx/argyllcms/ChangeLog
+++ b/media-gfx/argyllcms/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-gfx/argyllcms
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/argyllcms/ChangeLog,v 1.7 2010/11/08 21:26:21 dilfridge Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/argyllcms/ChangeLog,v 1.8 2011/02/09 23:40:26 dilfridge Exp $
+
+*argyllcms-1.3.2-r1 (09 Feb 2011)
+
+ 09 Feb 2011; Andreas K. Huettel <dilfridge@gentoo.org>
+ +argyllcms-1.3.2-r1.ebuild:
+ Rename binaries to avoid file collisions (bug 350016)
08 Nov 2010; Andreas K. Huettel <dilfridge@gentoo.org>
argyllcms-1.3.2.ebuild:
diff --git a/media-gfx/argyllcms/argyllcms-1.3.2-r1.ebuild b/media-gfx/argyllcms/argyllcms-1.3.2-r1.ebuild
new file mode 100644
index 000000000000..c2acb183ac29
--- /dev/null
+++ b/media-gfx/argyllcms/argyllcms-1.3.2-r1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/argyllcms/argyllcms-1.3.2-r1.ebuild,v 1.1 2011/02/09 23:40:26 dilfridge Exp $
+
+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
+ virtual/jpeg
+ sys-libs/zlib
+ 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"
+
+S="${WORKDIR}/${MY_P}"
+
+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 ;" >> Jamtop
+
+ local jobnumber=$(echo "${MAKEOPTS}" | sed -ne "/-j/ { s/.*\(-j[[:space:]]*[0-9]\+\).*/\1/; p }")
+ [ ${jobnumber} ] || jobnumber=-j1
+
+ jam -q -fJambase ${jobnumber} || die
+}
+
+src_install() {
+ jam -q -fJambase install || die
+
+ rm bin/License.txt || die
+
+ cd bin || die
+ local binname
+ for binname in * ; do
+ newbin ${binname} argyll-${binname} || die
+ done
+ cd .. || die
+
+ if use doc; then
+ dohtml doc/* || die
+ fi
+
+ dodoc log.txt Readme.txt ttbd.txt notes.txt || die
+
+ insinto /usr/share/${PN}/ref
+ doins ref/* || die
+
+ insinto /etc/udev/rules.d
+ doins libusb/55-Argyll.rules || die
+}
+
+pkg_postinst() {
+ elog "To avoid file collisions, all binary names have been prefixed"
+ elog "with \"argyll-\". E.g., the \"refine\" program is now called"
+ elog "\"argyll-refine\"."
+ elog
+ elog "If you have a Spyder2 you need to extract the firmware"
+ elog "from the spyder2_setup.exe (ColorVision CD)"
+ elog "and store it as /usr/bin/spyd2PLD.bin"
+ elog
+ elog "For further info on setting up instrument access read"
+ elog "http://www.argyllcms.com/doc/Installing_Linux.html"
+ elog
+}