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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Mar 16 20:31:08 2011 UTC (3 years, 6 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Fixed build for doc automagic (bug #350982), remove static libraries building, added soname versioning

(Portage version: 2.1.9.43/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-r1.ebuild,v 1.5 2011/02/12 17:29:53 xarthisius Exp $
4
5 EAPI="3"
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="doc png zlib"
16
17 DEPEND="media-libs/freeglut
18 png? ( media-libs/libpng )
19 zlib? ( sys-libs/zlib )
20 doc? (
21 dev-tex/tth
22 dev-texlive/texlive-latex
23 )"
24
25 S=${WORKDIR}/${P}-source
26
27 PATCHES=( "${FILESDIR}/${P}-CMakeLists.patch" )
28
29 src_configure() {
30 mycmakeargs="${mycmakeargs}
31 $(cmake-utils_use_has png PNG)
32 $(cmake-utils_use_has zlib ZLIB)
33 $(cmake-utils_use_has doc DOC)"
34 cmake-utils_src_configure
35 }
36
37 src_install() {
38 cmake-utils_src_install
39 prepalldocs
40
41 if [[ ${CHOST} == *-darwin* ]] ; then
42 # CMake produces an invalid dylib here, but I have no clue how to fix it
43 # hmm, it's also unversioned :(
44 install_name_tool \
45 -id "${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib \
46 "${D%/}${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib || die
47 fi
48 }

  ViewVC Help
Powered by ViewVC 1.1.20