summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2010-01-18 12:22:47 +0000
committerFabian Groffen <grobian@gentoo.org>2010-01-18 12:22:47 +0000
commit036bda74e51f7904918adf85d53f3c2567a18dd8 (patch)
treefd9df73d89c85d7a6b79a9ca9e9459c7302c8818 /x11-libs/gl2ps
parentTransfer Prefix Keywords (diff)
downloadgentoo-2-036bda74e51f7904918adf85d53f3c2567a18dd8.tar.gz
gentoo-2-036bda74e51f7904918adf85d53f3c2567a18dd8.tar.bz2
gentoo-2-036bda74e51f7904918adf85d53f3c2567a18dd8.zip
Work around CMake nuisance, make sure we get a correct install_name on Darwin
(Portage version: 2.2.00.15200-prefix/cvs/Darwin powerpc)
Diffstat (limited to 'x11-libs/gl2ps')
-rw-r--r--x11-libs/gl2ps/ChangeLog6
-rw-r--r--x11-libs/gl2ps/gl2ps-1.3.5.ebuild12
2 files changed, 15 insertions, 3 deletions
diff --git a/x11-libs/gl2ps/ChangeLog b/x11-libs/gl2ps/ChangeLog
index 27fbdffc6954..c862cd68fbfe 100644
--- a/x11-libs/gl2ps/ChangeLog
+++ b/x11-libs/gl2ps/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for x11-libs/gl2ps
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gl2ps/ChangeLog,v 1.5 2010/01/15 21:38:48 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gl2ps/ChangeLog,v 1.6 2010/01/18 12:22:47 grobian Exp $
+
+ 18 Jan 2010; Fabian Groffen <grobian@gentoo.org> gl2ps-1.3.5.ebuild:
+ Work around CMake nuisance, make sure we get a correct install_name on
+ Darwin
15 Jan 2010; Christian Faulhammer <fauli@gentoo.org> gl2ps-1.3.5.ebuild:
Transfer Prefix keywords
diff --git a/x11-libs/gl2ps/gl2ps-1.3.5.ebuild b/x11-libs/gl2ps/gl2ps-1.3.5.ebuild
index 200d312a96d5..4735439f149a 100644
--- a/x11-libs/gl2ps/gl2ps-1.3.5.ebuild
+++ b/x11-libs/gl2ps/gl2ps-1.3.5.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gl2ps/gl2ps-1.3.5.ebuild,v 1.4 2010/01/15 21:38:48 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gl2ps/gl2ps-1.3.5.ebuild,v 1.5 2010/01/18 12:22:47 grobian Exp $
EAPI=2
-inherit cmake-utils
+inherit cmake-utils multilib
DESCRIPTION="OpenGL to PostScript printing library"
HOMEPAGE="http://www.geuz.org/gl2ps/"
@@ -32,4 +32,12 @@ src_configure() {
src_install() {
cmake-utils_src_install
prepalldocs
+
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ # CMake produces an invalid dylib here, but I have no clue how to fix it
+ # hmm, it's also unversioned :(
+ install_name_tool \
+ -id "${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib \
+ "${D%/}${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib || die
+ fi
}