summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fisette <ribosome@gentoo.org>2005-08-30 00:29:35 +0000
committerOlivier Fisette <ribosome@gentoo.org>2005-08-30 00:29:35 +0000
commit436d2ff36e3d8eb6f4f42b9db7d1776254bc3f3b (patch)
tree8513cc48ad563e41aa29ece03aebb92d4d6a3d9c /sci-misc/qcad
parentMarked ~amd64 (diff)
downloadgentoo-2-436d2ff36e3d8eb6f4f42b9db7d1776254bc3f3b.tar.gz
gentoo-2-436d2ff36e3d8eb6f4f42b9db7d1776254bc3f3b.tar.bz2
gentoo-2-436d2ff36e3d8eb6f4f42b9db7d1776254bc3f3b.zip
Pass command-line arguments to the qcad binary.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'sci-misc/qcad')
-rw-r--r--sci-misc/qcad/ChangeLog9
-rw-r--r--sci-misc/qcad/Manifest2
-rw-r--r--sci-misc/qcad/files/digest-qcad-2.0.4.0-r22
-rw-r--r--sci-misc/qcad/qcad-2.0.4.0-r2.ebuild90
4 files changed, 102 insertions, 1 deletions
diff --git a/sci-misc/qcad/ChangeLog b/sci-misc/qcad/ChangeLog
index c0d865ce8c4f..f32b876c6675 100644
--- a/sci-misc/qcad/ChangeLog
+++ b/sci-misc/qcad/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-misc/qcad
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-misc/qcad/ChangeLog,v 1.9 2005/08/24 16:49:01 phosphan Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/qcad/ChangeLog,v 1.10 2005/08/30 00:29:35 ribosome Exp $
+
+*qcad-2.0.4.0-r2 (30 Aug 2005)
+
+ 30 Aug 2005; Olivier Fisette <ribosome@gentoo.org>
+ +qcad-2.0.4.0-r2.ebuild:
+ Pass command-line arguments to the qcad binary. Thanks to Phred
+ <phred@phred.org.uk> for the idea.
24 Aug 2005; Patrick Kursawe <phosphan@gentoo.org> qcad-2.0.4.0-r1.ebuild:
No longer using cp -a (bug #103487)
diff --git a/sci-misc/qcad/Manifest b/sci-misc/qcad/Manifest
index 3507ac34d321..3794cfa84b60 100644
--- a/sci-misc/qcad/Manifest
+++ b/sci-misc/qcad/Manifest
@@ -1,6 +1,8 @@
+MD5 cc458a8fbd975f5c50f7778eaad3c08f qcad-2.0.4.0-r2.ebuild 2679
MD5 4fd63a4dbba25a17f8dae3a383b837e1 qcad-2.0.4.0-r1.ebuild 2668
MD5 083656af94723d6fa09aa27707e42c4a ChangeLog 5857
MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
MD5 c79cda60b6383bbd7cd5c59e5975444e files/manual.patch-r1 841
MD5 03a389a58ed129eda4567585a4094a33 files/qcad-2.0.4.0-1.src-gentoo.patch 2177
MD5 4d37f63dec6f0a0937438c9308f232a7 files/digest-qcad-2.0.4.0-r1 143
+MD5 4d37f63dec6f0a0937438c9308f232a7 files/digest-qcad-2.0.4.0-r2 143
diff --git a/sci-misc/qcad/files/digest-qcad-2.0.4.0-r2 b/sci-misc/qcad/files/digest-qcad-2.0.4.0-r2
new file mode 100644
index 000000000000..e83bcbbf94dc
--- /dev/null
+++ b/sci-misc/qcad/files/digest-qcad-2.0.4.0-r2
@@ -0,0 +1,2 @@
+MD5 d99ae2855029af21f544e302a60d6840 qcad-2.0.4.0-1.src.tar.gz 3169984
+MD5 a8cd3682b9405c0de6d5bd77d50da0f2 qcad-manual-200404.tar.bz2 1648761
diff --git a/sci-misc/qcad/qcad-2.0.4.0-r2.ebuild b/sci-misc/qcad/qcad-2.0.4.0-r2.ebuild
new file mode 100644
index 000000000000..673d7a1eebb2
--- /dev/null
+++ b/sci-misc/qcad/qcad-2.0.4.0-r2.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/qcad/qcad-2.0.4.0-r2.ebuild,v 1.1 2005/08/30 00:29:35 ribosome Exp $
+
+inherit kde-functions eutils
+
+MY_PV=${PV}-1
+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
+ doc? ( mirror://gentoo/qcad-manual-200404.tar.bz2
+ http://dev.gentoo.org/~phosphan/qcad-manual-200404.tar.bz2 )"
+HOMEPAGE="http://www.ribbonsoft.com/qcad.html"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="doc"
+KEYWORDS="~x86 ~ppc ~amd64"
+
+need-qt 3.3
+
+DEPEND="${DEPEND}
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ unpack ${A}
+# mv doc ${S}/qcad/
+ cd ${S}
+ echo >> defs.pro "DEFINES += _REENTRANT QT_THREAD_SUPPORT"
+ echo >> defs.pro "CONFIG += thread release"
+ echo >> defs.pro "QMAKE_CFLAGS_RELEASE += ${CFLAGS}"
+ echo >> defs.pro "QMAKE_CXXFLAGS_RELEASE += ${CXXFLAGS}"
+ for file in */Makefile scripts/build_qcad.sh; do
+ sed -i -e 's~qmake~${QTDIR}/bin/qmake~g' $file || \
+ die "unable to correct path to qmake in $file"
+ done
+ epatch ${FILESDIR}/${MY_P}-gentoo.patch
+ epatch ${FILESDIR}/manual.patch-r1
+ cd ${S}/scripts
+ sed -i -e 's/^make/make ${MAKEOPTS}/' build_qcad.sh || \
+ die "unable to add MAKEOPTS"
+ sed -i -e 's/^\.\/configure/.\/configure --host=${CHOST}/' build_qcad.sh \
+ || die "unable to set CHOST"
+ cd ${S}/qcad/src
+ sed -i -e "s:FULLASSISTANTPATH:${QTDIR}/bin:" qc_applicationwindow.cpp \
+ || die "sed failed on assistant path"
+ sed -i -e "s:QCADDOCPATH:/usr/share/doc/${PF}:" \
+ qc_applicationwindow.cpp || die "sed failed on manual path"
+
+}
+
+
+src_compile() {
+ ### borrowed from kde.eclass #
+ #
+ # fix the sandbox errors "can't writ to .kde or .qt" problems.
+ # this is a fake homedir that is writeable under the sandbox, so that the build process
+ # can do anything it wants with it.
+ REALHOME="$HOME"
+ mkdir -p $T/fakehome/.kde
+ mkdir -p $T/fakehome/.qt
+ export HOME="$T/fakehome"
+ # things that should access the real homedir
+ [ -d "$REALHOME/.ccache" ] && ln -sf "$REALHOME/.ccache" "$HOME/"
+ cd scripts
+ sh build_qcad.sh || die "build failed"
+ if ! test -f ${S}/qcad/qcad; then
+ die "no binary created, build failed"
+ fi
+}
+
+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 -pPR patterns examples fonts qm ${D}/usr/share/${P}
+ cd ..
+ dodoc README
+ if use doc; then
+ insinto /usr/share/doc/${PF}/
+ cd ${WORKDIR}
+ cp -pPR qcaddoc.adp cad ${D}usr/share/doc/${PF}
+ fi
+ make_desktop_entry ${PN} ${PN} ${PN} Office
+}