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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Thu Feb 2 08:36:18 2012 UTC (6 years, 7 months ago) by tomka
Branch: MAIN
Changes since 1.3: +2 -2 lines
x86 stable per bug 398421

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 ago 1.2 # Copyright 1999-2012 Gentoo Foundation
2 bicatali 1.1 # Distributed under the terms of the GNU General Public License v2
3 tomka 1.4 # $Header: /var/cvsroot/gentoo-x86/x11-libs/gl2ps/gl2ps-1.3.6.ebuild,v 1.3 2012/02/02 07:41:27 jlec Exp $
4 bicatali 1.1
5     EAPI=4
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 tomka 1.4 KEYWORDS="~alpha amd64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
15 bicatali 1.1 IUSE="doc png zlib"
16    
17     DEPEND="
18     media-libs/freeglut
19     png? ( media-libs/libpng )
20 jlec 1.3 doc? (
21     dev-tex/tth
22     dev-texlive/texlive-latex
23     dev-texlive/texlive-latexrecommended )
24 bicatali 1.1 zlib? ( sys-libs/zlib )"
25     RDEPEND="${DEPEND}"
26    
27     S=${WORKDIR}/${P}-source
28    
29     PATCHES=( "${FILESDIR}"/${P}-CMakeLists.patch )
30    
31     src_configure() {
32     local mycmakeargs=(
33     $(cmake-utils_use_enable png PNG)
34     $(cmake-utils_use_enable zlib ZLIB)
35     $(cmake-utils_use_enable doc DOC)
36     )
37     cmake-utils_src_configure
38     }
39    
40     src_install() {
41     cmake-utils_src_install
42     if [[ ${CHOST} == *-darwin* ]] ; then
43     install_name_tool \
44     -id "${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib \
45     "${D%/}${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib || die
46     fi
47     }

  ViewVC Help
Powered by ViewVC 1.1.20