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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Sep 30 17:57:40 2012 UTC (18 months, 2 weeks ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +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.7.ebuild,v 1.1 2012/09/17 21:04:42 bicatali 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 RDEPEND="
18 media-libs/freeglut
19 x11-libs/libXmu
20 png? ( media-libs/libpng )
21 zlib? ( sys-libs/zlib )"
22 DEPEND="${RDEPEND}
23 doc? (
24 dev-tex/tth
25 dev-texlive/texlive-latex
26 dev-texlive/texlive-latexrecommended )"
27
28 S=${WORKDIR}/${P}-source
29
30 PATCHES=( "${FILESDIR}"/${P}-cmake.patch )
31
32 src_configure() {
33 local mycmakeargs=(
34 -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}"
35 $(cmake-utils_use_enable png PNG)
36 $(cmake-utils_use_enable zlib ZLIB)
37 $(cmake-utils_use_enable doc DOC)
38 )
39 cmake-utils_src_configure
40 }
41
42 src_install() {
43 cmake-utils_src_install
44 if [[ ${CHOST} == *-darwin* ]] ; then
45 install_name_tool \
46 -id "${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib \
47 "${D%/}${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib || die
48 fi
49 }

  ViewVC Help
Powered by ViewVC 1.1.20