/[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.1 - (hide annotations) (download)
Sun Nov 27 05:33:45 2011 UTC (6 years, 11 months ago) by bicatali
Branch: MAIN
Version bump

(Portage version: 2.1.10.37/cvs/Linux x86_64)

1 bicatali 1.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=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