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

Contents of /x11-libs/gl2ps/gl2ps-1.3.5-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun May 20 17:03:21 2012 UTC (2 years, 7 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Add a libXmu dep, drop old. Proxying for jlec.

(Portage version: 2.2.0_alpha107_p2/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.5-r2.ebuild,v 1.2 2011/05/17 09:53:51 jlec Exp $
4
5 EAPI=3
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=(
27 "${FILESDIR}"/${P}-CMakeLists.patch
28 "${FILESDIR}"/${P}-soversion.patch )
29
30 src_configure() {
31 local mycmakeargs=(
32 $(cmake-utils_use_enable png PNG)
33 $(cmake-utils_use_enable zlib ZLIB)
34 $(cmake-utils_use_enable doc DOC)
35 )
36 cmake-utils_src_configure
37 }
38
39 src_install() {
40 cmake-utils_src_install
41 if [[ ${CHOST} == *-darwin* ]] ; then
42 install_name_tool \
43 -id "${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib \
44 "${D%/}${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib || die
45 fi
46 }

  ViewVC Help
Powered by ViewVC 1.1.20