/[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.2 - (show annotations) (download)
Wed Jan 11 11:38:30 2012 UTC (6 years, 11 months ago) by ago
Branch: MAIN
Changes since 1.1: +3 -3 lines
Stable for AMD64, wrt bug #398421

(Portage version: 2.1.10.41/cvs/Linux x86_64)

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.1 2011/11/27 05:33:45 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="~alpha 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 png? ( media-libs/libpng )
20 doc? ( dev-tex/tth dev-texlive/texlive-latex )
21 zlib? ( sys-libs/zlib )"
22 RDEPEND="${DEPEND}"
23
24 S=${WORKDIR}/${P}-source
25
26 PATCHES=( "${FILESDIR}"/${P}-CMakeLists.patch )
27
28 src_configure() {
29 local mycmakeargs=(
30 $(cmake-utils_use_enable png PNG)
31 $(cmake-utils_use_enable zlib ZLIB)
32 $(cmake-utils_use_enable doc DOC)
33 )
34 cmake-utils_src_configure
35 }
36
37 src_install() {
38 cmake-utils_src_install
39 if [[ ${CHOST} == *-darwin* ]] ; then
40 install_name_tool \
41 -id "${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib \
42 "${D%/}${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib || die
43 fi
44 }

  ViewVC Help
Powered by ViewVC 1.1.20