# Copyright 1999-2004 Gentoo Foundion # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="BricsCad IntelliCAD is a clone of the widely used AutoCAD(r). It uses DWG as it's native format and is able to read DWG up to version 2004." HOMEPAGE="http://www.bricscad.com/" RESTRICT="fetch" SRC_URI="intellicad-4.1.0027-2.i386.rpm" LICENSE="commercial" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=app-arch/rpm2targz-9.0-r2" RDEPEND=">=app-emulation/wine-20040408-r1" pkg_nofetch() { einfo "Please download ${SRC_URI} from ttp://www.bricscad.com/about/download/downloadForm.jsp?product=B4L and place it in ${DISTDIR}" } src_unpack() { rpm2targz ${DISTDIR}/${A} tar zxvf intellicad-4.1.0027-2.i386.tar.gz } src_install() { mkdir -p ${D}/opt/intellicad tar zxvf ${WORKDIR}/tmp/intellicad.tgz -C ${D}/opt mkdir -p ${D}/opt/bin echo wine /opt/intellicad/icad > ${D}/opt/bin/bicad.sh chmod +x ${D}/opt/bin/bicad.sh chmod a+r ${D}/opt/intellicad chmod a+r ${D}/opt/intellicad/* mkdir -p ${D}/usr/lib/wine/lib/wine mv ${D}/opt/intellicad/glu32.dll.so ${D}/usr/lib/wine/lib/wine } pkg_postinst() { echo "The release information is available in the file" echo "/opt/intellicad/release.txt" }