/[gentoo-x86]/sci-misc/qcad/qcad-2.0.2.0.ebuild
Gentoo

Contents of /sci-misc/qcad/qcad-2.0.2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jun 26 03:19:08 2005 UTC (15 years, 5 months ago) by ribosome
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Removed obsolete versions.
(Portage version: 2.0.51.19)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-misc/qcad/qcad-2.0.2.0.ebuild,v 1.2 2005/01/10 07:27:36 phosphan Exp $
4
5 inherit kde-functions eutils
6
7 MY_P=${P}-1.src
8 S=${WORKDIR}/${MY_P}
9 DESCRIPTION="A 2D CAD package based upon Qt."
10 SRC_URI="http://www.ribbonsoft.com/archives/qcad/${MY_P}.tar.gz"
11 HOMEPAGE="http://www.ribbonsoft.com/qcad.html"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 IUSE=""
16 KEYWORDS="x86 ppc amd64"
17
18 need-qt 3
19
20 DEPEND="${DEPEND}
21 >=sys-apps/sed-4"
22
23 src_unpack() {
24 unpack ${A}
25 cd ${S}
26 epatch ${FILESDIR}/${MY_P}-gentoo.patch
27 cd ${S}/scripts
28 sed -i -e 's/^make/make ${MAKEOPTS}/' build_qcad.sh
29 sed -i -e 's/^\.\/configure/.\/configure --host=${CHOST}/' build_qcad.sh
30 }
31
32
33 src_compile() {
34 ### borrowed from kde.eclass #
35 #
36 # fix the sandbox errors "can't writ to .kde or .qt" problems.
37 # this is a fake homedir that is writeable under the sandbox, so that the build process
38 # can do anything it wants with it.
39 REALHOME="$HOME"
40 mkdir -p $T/fakehome/.kde
41 mkdir -p $T/fakehome/.qt
42 export HOME="$T/fakehome"
43 # things that should access the real homedir
44 [ -d "$REALHOME/.ccache" ] && ln -sf "$REALHOME/.ccache" "$HOME/"
45 cd scripts
46 sh build_qcad.sh || die "build failed"
47 }
48
49 src_install () {
50 cd qcad
51 mv qcad qcad.bin
52 dobin qcad.bin
53 echo -e "#!/bin/sh\ncd /usr/share/${P}\nqcad.bin" > qcad
54 chmod ugo+rx qcad
55 dobin qcad
56 dodir /usr/share/${P}
57 cp -a patterns examples fonts scripts qm ${D}/usr/share/${P}
58 cd ..
59 dodoc README
60 dohtml -r qcad/doc
61 }
62

  ViewVC Help
Powered by ViewVC 1.1.20