blob: 732533fdf531c5206cf77afdca91450ebf60ddcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-sci/qcad/qcad-2.0.1.0.ebuild,v 1.6 2004/03/26 12:24:59 phosphan Exp $
inherit kde-functions eutils
MY_P=${P}-1.src
S=${WORKDIR}/${MY_P}
DESCRIPTION="A 2D CAD package based upon Qt."
SRC_URI="http://www.ribbonsoft.com/archives/qcad/${MY_P}.tar.gz"
HOMEPAGE="http://www.ribbonsoft.com/qcad.html"
LICENSE="GPL-2"
IUSE=""
SLOT="0"
KEYWORDS="x86 ppc"
need-qt 3
DEPEND="${DEPEND}
>=sys-apps/sed-4"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${MY_P}-gentoo.patch
cd ${S}/scripts
sed -i -e 's/^make/make ${MAKEOPTS}/' build_qcad.sh
sed -i -e 's/^\.\/configure/.\/configure --host=${CHOST}/' build_qcad.sh
# 2.0.1.0 sets QTDIR, I guess by accident
sed -i -e 's:^export QTDIR=.*::' build_qcad.sh
}
src_compile() {
cd scripts
sh build_qcad.sh || die "build failed"
}
src_install () {
cd qcad
mv qcad qcad.bin
dobin qcad.bin
echo -e "#!/bin/sh\ncd /usr/share/${P}\nqcad.bin" > qcad
chmod ugo+rx qcad
dobin qcad
dodir /usr/share/${P}
cp -a patterns examples fonts scripts qm ${D}/usr/share/${P}
cd ..
dodoc README
}
|