/[gentoo-x86]/x11-libs/gl2ps/gl2ps-1.3.5.ebuild
Gentoo

Contents of /x11-libs/gl2ps/gl2ps-1.3.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun May 20 17:03:21 2012 UTC (2 years, 6 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Add a libXmu dep, drop old. Proxying for jlec.

(Portage version: 2.2.0_alpha107_p2/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-libs/gl2ps/gl2ps-1.3.5.ebuild,v 1.8 2011/05/17 09:53:51 jlec Exp $
4
5 EAPI=2
6 inherit cmake-utils multilib
7
8 DESCRIPTION="OpenGL to PostScript printing library"
9 HOMEPAGE="http://www.geuz.org/gl2ps/"
10 SRC_URI="http://geuz.org/${PN}/src/${P}.tgz"
11
12 LICENSE="LGPL-2"
13 SLOT="0"
14 KEYWORDS="~alpha amd64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
15 IUSE="png zlib"
16
17 DEPEND="
18 media-libs/freeglut
19 png? ( media-libs/libpng )
20 zlib? ( sys-libs/zlib )"
21 RDEPEND="${DEPEND}"
22
23 S=${WORKDIR}/${P}-source
24
25 PATCHES=( "${FILESDIR}/${P}-CMakeLists.patch" )
26
27 src_configure() {
28 mycmakeargs="${mycmakeargs}
29 $(cmake-utils_use_has png PNG)
30 $(cmake-utils_use_has zlib ZLIB)"
31 cmake-utils_src_configure
32 }
33
34 src_install() {
35 cmake-utils_src_install
36 prepalldocs
37
38 if [[ ${CHOST} == *-darwin* ]] ; then
39 # CMake produces an invalid dylib here, but I have no clue how to fix it
40 # hmm, it's also unversioned :(
41 install_name_tool \
42 -id "${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib \
43 "${D%/}${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib || die
44 fi
45 }

  ViewVC Help
Powered by ViewVC 1.1.20