37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/media-gfx/dpic/dpic-20090713.ebuild,v 1.4 2013/04/20 09:14:16 ulm Exp $
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="Converts PIC plots into pstricks, PGF/TikZ, PostScript, MetaPost and TeX"
|
|
HOMEPAGE="http://ece.uwaterloo.ca/~aplevich/dpic"
|
|
SRC_URI="mirror://gentoo/${P}.tar.gz"
|
|
|
|
LICENSE="free-noncomm"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
IUSE="examples"
|
|
|
|
DEPEND=""
|
|
RDEPEND=""
|
|
|
|
S="${WORKDIR}/${PN}"
|
|
|
|
src_compile () {
|
|
# Instead of patching the makefile, we just create a new one that will use
|
|
# cflags, ldflags & friends
|
|
echo "LDLIBS=-lm" > Makefile
|
|
echo "dpic: dpic.o dpic2.o p2clib.o" >> Makefile
|
|
tc-export CC
|
|
emake || die "emake failed"
|
|
}
|
|
|
|
src_install () {
|
|
dobin dpic || die "installing dpic failed"
|
|
dodoc README doc/dpicdoc.pdf doc/gpic.ps.gz || die "installing docs failed"
|
|
if use examples; then
|
|
insinto /usr/share/doc/${PF}/examples
|
|
doins doc/examples/README doc/examples/Examples.txt doc/examples/sources/* || die "installing examples failed"
|
|
fi
|
|
}
|