1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="LeoCAD is a CAD program that uses bricks similar to those found in many toys."
10 HOMEPAGE="http://www.leocad.org"
12 ESVN_REPO_URI="http://svn.gerf.org/${PN}/trunk"
20 RDEPEND="virtual/opengl
22 jpeg? ( media-libs/jpeg )
23 zlib? ( sys-libs/zlib )
24 png? ( media-libs/libpng )"
33 -e "s:(test -s jpegtest); then :{(test -s jpegtest);} \&\& false; then :" \
34 config.mk || die "patching Makefile failed"
38 -e "s:(test -s ztest); then :{(test -s ztest);} \&\& false; then :" \
39 config.mk || die "patching Makefile failed"
43 -e "s:(test -s pngtest); then :{(test -s pngtest);} \&\& false; then :" \
44 config.mk || die "patching Makefile failed"
54 dobin bin/leocad || die
55 doman docs/leocad.1 || die
56 dodoc docs/*.txt || die
60 elog "Due to a missing release number, automatic fetching of the"
61 elog "pieces library is disabled. Please download it yourself:"
63 elog " wget http://www.leocad.org/files/pieces.zip"
65 elog "and unpack it with the following command:"
67 elog " unzip pieces.zip"