/[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.8 - (hide annotations) (download)
Sun Sep 30 17:57:40 2012 UTC (6 years ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -2 lines
Drop alpha keywords

(Portage version: 2.1.11.16/cvs/Linux ia64)

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 armin76 1.8 # $Header: /var/cvsroot/gentoo-x86/x11-libs/gl2ps/gl2ps-1.3.6.ebuild,v 1.7 2012/05/20 17:03:21 mgorny 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 armin76 1.8 KEYWORDS="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 mgorny 1.7 x11-libs/libXmu
20 bicatali 1.1 png? ( media-libs/libpng )
21 jlec 1.3 doc? (
22     dev-tex/tth
23     dev-texlive/texlive-latex
24     dev-texlive/texlive-latexrecommended )
25 bicatali 1.1 zlib? ( sys-libs/zlib )"
26     RDEPEND="${DEPEND}"
27    
28     S=${WORKDIR}/${P}-source
29    
30     PATCHES=( "${FILESDIR}"/${P}-CMakeLists.patch )
31    
32     src_configure() {
33     local mycmakeargs=(
34     $(cmake-utils_use_enable png PNG)
35     $(cmake-utils_use_enable zlib ZLIB)
36     $(cmake-utils_use_enable doc DOC)
37     )
38     cmake-utils_src_configure
39     }
40    
41     src_install() {
42     cmake-utils_src_install
43     if [[ ${CHOST} == *-darwin* ]] ; then
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