/[gentoo-x86]/dev-tex/sketch/sketch-0.3.7.ebuild
Gentoo

Contents of /dev-tex/sketch/sketch-0.3.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Thu Mar 1 11:50:51 2012 UTC (6 years, 6 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
version bump

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

1 aballier 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/dev-tex/sketch/sketch-0.3.2.ebuild,v 1.1 2011/04/18 20:12:31 aballier Exp $
4    
5     inherit eutils toolchain-funcs
6    
7     DESCRIPTION="Produces drawings of two- or three-dimensional solid objects and scenes for TeX"
8     HOMEPAGE="http://www.frontiernet.net/~eugene.ressler/"
9     SRC_URI="http://www.frontiernet.net/~eugene.ressler/${P}.tgz"
10     LICENSE="GPL-3"
11    
12     SLOT="0"
13     KEYWORDS="~amd64 ~ppc64 ~x86"
14     IUSE="doc examples"
15    
16     DEPEND="dev-lang/perl"
17     RDEPEND=""
18    
19     src_unpack() {
20     unpack ${A}
21    
22     cd "${S}"
23     sed -i -e "s:\$(CC):\$(CC) \$(LDFLAGS):" makefile
24     }
25    
26     src_compile() {
27     emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" || die "emake failed"
28     }
29    
30     src_install() {
31     dobin sketch || die
32     edos2unix Doc/sketch.info
33     doinfo Doc/sketch.info || die
34     dohtml updates.htm || die
35     if use doc ; then
36     insinto /usr/share/doc/${PF}
37     doins Doc/sketch.pdf || die
38     dohtml Doc/sketch/* || die
39     fi
40     if use examples ; then
41     insinto /usr/share/doc/${PF}/examples
42     doins Data/* || die "Failed to install examples"
43     fi
44     }

  ViewVC Help
Powered by ViewVC 1.1.20