/[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 - (show annotations) (download)
Sun Sep 30 17:57:40 2012 UTC (2 years, 2 months 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 # Copyright 1999-2012 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.6.ebuild,v 1.7 2012/05/20 17:03:21 mgorny Exp $
4
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 KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
15 IUSE="doc png zlib"
16
17 DEPEND="
18 media-libs/freeglut
19 x11-libs/libXmu
20 png? ( media-libs/libpng )
21 doc? (
22 dev-tex/tth
23 dev-texlive/texlive-latex
24 dev-texlive/texlive-latexrecommended )
25 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